Wiki – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (improved contrast of disamb)
m (Add DISAMB documentation)
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|{{#switch:{{uc:{{{1|}}}}}
<includeonly>{{#if:{{{1|}}}|{{#switch:{{uc:{{{1|}}}}}
|DELETE= {{Messagebox|'''This article has been submitted for''' <big>deletion</big>'''.'''{{#if:{{{2|}}}|<nowiki> </nowiki>'''The reason given was:''' {{{2}}}}}|🗙|#F00}}{{TemplateCase||[[Category:Deletion requests]]}}
|DELETE= {{Messagebox|'''This article has been submitted for''' <big>deletion</big>'''.'''{{#if:{{{2|}}}|<nowiki> </nowiki>'''The reason given was:''' {{{2}}}}}|🗙|#F00}}{{TemplateCase||[[Category:Deletion requests]]}}
|DISAMB
|DISAMBIG= {{Messagebox|This [[:Category:Disambiguation Pages|disambiguation page]] lists articles associated with the same title.|{{Icon|disamb|35}}|burlyWood}}{{TemplateCase||[[Category:Disambiguation Pages]]}}
|MERGE= {{Messagebox|This article has been proposed to merge with {{#if:{{{2|}}}|[[{{{2}}}]]|'''-no article provided-'''}}.{{#if:{{{3|}}}|<nowiki/> Reason: {{{3}}}}}|<div style{{=}}"font-size: .75em; line-height: .6em">↘<br>↗</div><!--↣-->|blueviolet}}{{TemplateCase||[[Category:Merge Requests]]}}
|MERGE= {{Messagebox|This article has been proposed to merge with {{#if:{{{2|}}}|[[{{{2}}}]]|'''-no article provided-'''}}.{{#if:{{{3|}}}|<nowiki/> Reason: {{{3}}}}}|<div style{{=}}"font-size: .75em; line-height: .6em">↘<br>↗</div><!--↣-->|blueviolet}}{{TemplateCase||[[Category:Merge Requests]]}}
|PLACEHOLDER= {{Messagebox|Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]].|🏗|DarkGray}}{{TemplateCase||[[Category:Description needed]]}}
|PLACEHOLDER= {{Messagebox|Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]].|🏗|DarkGray}}{{TemplateCase||[[Category:Description needed]]}}
Line 6: Line 8:
|TODO= {{Messagebox|'''TODO:''' {{{2|this must be updated.}}}|🚧|#96C}}{{TemplateCase||[[Category:To-do]]}}
|TODO= {{Messagebox|'''TODO:''' {{{2|this must be updated.}}}|🚧|#96C}}{{TemplateCase||[[Category:To-do]]}}
|WIP= {{Messagebox|This article is a '''[[:Category:WIP|work in progress]]'''!|🏗|dodgerblue}}{{TemplateCase||[[Category:WIP]]}}
|WIP= {{Messagebox|This article is a '''[[:Category:WIP|work in progress]]'''!|🏗|dodgerblue}}{{TemplateCase||[[Category:WIP]]}}
|DISAMB= {{Messagebox|This disambiguation page lists articles associated with the same title.|{{Icon|disamb|35}}|burlyWood}}{{TemplateCase||[[Category:Disambiguation Pages]]}}
|#default= -wrong wiki option ("{{{1}}}") defined-
|#default= -wrong wiki option ("{{{1}}}") defined-
}}
}}
Line 18: Line 19:
** delete: a [[:Category:Deletion requests|Deletion request]]
** delete: a [[:Category:Deletion requests|Deletion request]]
*** argument1: deletion request reason
*** argument1: deletion request reason
** disamb: a [[:Category:Disambiguation Pages|Disambiguation]] page
** merge: a [[:Category:Merge Requests|Merge request]]
** merge: a [[:Category:Merge Requests|Merge request]]
*** argument1: destination page
*** argument1: destination page
Line 43: Line 45:
| <nowiki>{{Wiki|delete|Why not?}}</nowiki>
| <nowiki>{{Wiki|delete|Why not?}}</nowiki>
| {{Wiki|delete|Why not?}}
| {{Wiki|delete|Why not?}}
|-
| <nowiki>{{Wiki|disamb}}</nowiki>
| {{Wiki|disamb}}
|-
|-
| <nowiki>{{Wiki|merge}}</nowiki>
| <nowiki>{{Wiki|merge}}</nowiki>
Line 67: Line 72:
| <nowiki>{{Wiki|WIP}}</nowiki>
| <nowiki>{{Wiki|WIP}}</nowiki>
| {{Wiki|WIP}}
| {{Wiki|WIP}}
|-
| <nowiki>{{Wiki|DISAMB}}</nowiki>
| {{Wiki|DISAMB}}
|}
|}


[[Category:Templates|{{uc:{{PAGENAME}}}}]]</noinclude>
[[Category:Templates|{{uc:{{PAGENAME}}}}]]</noinclude>

Revision as of 16:13, 7 February 2021

This template serves as a toolbox for wiki editors. It contains most useful templates, and automatically categorises pages.

Usage

{{Wiki|type|arguments}}

  • type: (case-insensitive) messagebox type, can be:
    • delete: a Deletion request
      • argument1: deletion request reason
    • disamb: a Disambiguation page
    • merge: a Merge request
      • argument1: destination page
      • argument2: merge reason
    • placeholder: a placeholder mark, meaning the Function page has a basic header documentation
    • stub: a Stub mark, meaning the page/section can be expanded
    • TODO: a To-Do mark, meaning the page/section must be (re)written soon
    • WIP: a work in progress page - a wiki editor is currently working on it
  • argument: (Optional) argument, depends on type
Examples
Code Result
{{Wiki}} -no wiki option defined!-
{{Wiki|Hello there!}} -wrong wiki option ("Hello there!") defined-
{{Wiki|delete}}
🗙
This article has been submitted for deletion.
{{Wiki|delete|Why not?}}
🗙
This article has been submitted for deletion. The reason given was: Why not?
{{Wiki|disamb}}
Disambiguation
This disambiguation page lists articles associated with the same title.
{{Wiki|merge}}

This article has been proposed to merge with -no article provided-.
{{Wiki|merge|Main Page}}

This article has been proposed to merge with Main Page.
{{Wiki|merge|Main Page|Why not?}}

This article has been proposed to merge with Main Page. Reason: Why not?
{{Wiki|placeholder}}
🏗
Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki.
{{Wiki|stub}}
{{Wiki|todo}}
🚧
TODO: this must be updated.
{{Wiki|todo|message}}
🚧
TODO: message
{{Wiki|WIP}}
🏗
This article is a work in progress!