Difference between revisions of "Template:Wiki"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix doc + alphabetical order)
m (fixed to-do category)
Line 4: Line 4:
Β 
|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]]}}
Β 
|STUB= <div class="notice metadata" id="stub">''This article is a [[:Category:Stubs|Stub]]. You can help BI Community Wiki by <span class="plainlinks">[{{fullurl:{{FULLPAGENAME}}|action=edit}} expanding it]</span>.''</div>{{TemplateCase||[[Category:Stubs]]}}
Β 
|STUB= <div class="notice metadata" id="stub">''This article is a [[:Category:Stubs|Stub]]. You can help BI Community Wiki by <span class="plainlinks">[{{fullurl:{{FULLPAGENAME}}|action=edit}} expanding it]</span>.''</div>{{TemplateCase||[[Category:Stubs]]}}
βˆ’
|TODO= {{Messagebox|'''TODO:''' {{{2|this must be updated.}}}|🚧|#96C}}{{TemplateCase||[[Category:Maintenance]]}}
+
|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]]}}
Β 
|#default= -wrong wiki option ("{{{1}}}") defined-
Β 
|#default= -wrong wiki option ("{{{1}}}") defined-

Revision as of 15:01, 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
    • 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|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!