Wiki – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Fix list) |
Lou Montana (talk | contribs) (Add Merge) |
||
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}}}''' | |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]]}} | ||
|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]]}} | |||
|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]]}} | ||
|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]]}} | ||
Line 6: | Line 12: | ||
}} | }} | ||
|-no wiki option defined!-}} | |-no wiki option defined!-}} | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
This template serves as a toolbox for wiki editors. It contains most useful templates, and automatically categorises pages. | |||
| | |||
== Usage == | |||
{{<nowiki/>Wiki|'''''type'''''|'''''arguments'''''}} | |||
* type: (case-insensitive) messagebox type, can be: | |||
** delete | ** delete | ||
*** argument1: deletion request reason | |||
** merge | |||
*** argument1: destination page | |||
*** argument2: merge reason | |||
** stub | ** stub | ||
** wip | ** wip | ||
* argument: (Optional) argument, depends on ''type'' | |||
| | {| class="wikitable" | ||
| | |+ Examples | ||
| | ! Code | ||
| | ! Result | ||
| | |- | ||
| | | <nowiki>{{Wiki}}</nowiki> | ||
| | | {{Wiki}} | ||
| | |- | ||
| | | <nowiki>{{Wiki|Hello there!}}</nowiki> | ||
| | | {{Wiki|Hello there!}} | ||
}}</noinclude> | |- | ||
| <nowiki>{{Wiki|delete}}</nowiki> | |||
| {{Wiki|delete}} | |||
|- | |||
| <nowiki>{{Wiki|delete|Why not?}}</nowiki> | |||
| {{Wiki|delete|Why not?}} | |||
|- | |||
| <nowiki>{{Wiki|merge}}</nowiki> | |||
| {{Wiki|merge}} | |||
|- | |||
| <nowiki>{{Wiki|merge|Main Page}}</nowiki> | |||
| {{Wiki|merge|Main Page}} | |||
|- | |||
| <nowiki>{{Wiki|merge|Main Page|Why not?}}</nowiki> | |||
| {{Wiki|merge|Main Page|Why not?}} | |||
|- | |||
| <nowiki>{{Wiki|stub}}</nowiki> | |||
| {{Wiki|stub}} | |||
|- | |||
| <nowiki>{{Wiki|wip}}</nowiki> | |||
| {{Wiki|wip}} | |||
|} | |||
[[Category:Templates|{{uc:{{PAGENAME}}}}]]</noinclude> |
Revision as of 19:52, 6 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
- argument1: deletion request reason
- merge
- argument1: destination page
- argument2: merge reason
- stub
- wip
- delete
- argument: (Optional) argument, depends on type
Code | Result |
---|---|
{{Wiki}} | -no wiki option defined!- |
{{Wiki|Hello there!}} | -wrong wiki option ("Hello there!") defined- |
{{Wiki|delete}} | |
{{Wiki|delete|Why not?}} | |
{{Wiki|merge}} | |
{{Wiki|merge|Main Page}} | |
{{Wiki|merge|Main Page|Why not?}} | |
{{Wiki|stub}} | |
{{Wiki|wip}} |