Template:Move: Difference between revisions
mNo edit summary |
(add error template) |
||
(19 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
< | <noinclude> | ||
| | {{Documentation/sandbox|doc= | ||
| | Added to articles that do not have an appropriate page name and therefore should moved to the linked location. | ||
|cat= | |||
| | Adds articles to the "{{ll|:Category:Articles to be moved|Articles to be moved}}" category. | ||
}}</includeonly | |||
==Usage== | |||
===Parameters=== | |||
;<code>1</code> {{sup|required}} | |||
:The name of the article to move the article to. | |||
;<code>2</code> | |||
:The reason for the move. Although not required, adding a reason is highly recommended, so others can better understand the reasoning. | |||
;<code>section</code> | |||
:If set to <code>true</code>, will display "section" instead of "article" in the title. | |||
;<code>hidecat</code> | |||
:If set to <code>true</code>, the page will not be added to the "{{ll|:Category:Articles to be moved|Articles to be moved}}" category. | |||
==Examples== | |||
*{{tll|Move|PZwiki:Mboxes}} | |||
{{Move|PZwiki:Mboxes|hidecat=true}} | |||
*{{tll|Move|PZwiki:Mboxes|This is the item's in-game name.}} | |||
{{Move|PZwiki:Mboxes|This is the item's in-game name.|hidecat=true}} | |||
{{Translation guide|<syntaxhighlight lang="html"> | |||
{{#switch: {{{1|}}} | |||
| title = It has been suggested that this {{{3}}} be moved to {{{2}}}. | |||
| reason = Reason | |||
| #default = {{Error|translation}} | |||
}} | |||
</syntaxhighlight>}} | |||
==See also== | |||
*{{ll|PZwiki:Mboxes}} | |||
}} | |||
{{ll|Category:Mbox}} | |||
</noinclude><includeonly>{{Mbox | |||
| color = #9932cc | |||
| sign = [[File:Furniture Pickup.png|link=Template:Move{{lcs}}]] | |||
| title = {{tt|name=Move | |||
| default = It has been suggested that this {{Page ns|{{{section|}}}}} be moved to {{#if:{{{1|}}}|{{ll|{{{1}}}}}|{{Error|param_empty|hidecat={{{hidecat|}}}}}}}. | |||
| arg1 = title | |||
| arg2 = {{#if:{{{1|}}}|{{ll|{{{1}}}}}|{{Error|param_empty|hidecat={{{hidecat|}}}}}}} | |||
| arg3 = {{Page ns|{{{section|}}}}} | |||
}} | |||
| content = {{#if:{{{2|}}}|{{tt|name=Move | |||
| default = Reason | |||
| arg1 = reason | |||
}}: {{{2}}}}} | |||
| cat = {{yesno|{{{hidecat|}}}|yes=|no=Articles to be moved{{lcs}}}} | |||
| id = move | |||
| collapsed = {{#if:{{{2|}}}||true}} | |||
}}</includeonly> |
Latest revision as of 12:59, 7 March 2024
Added to articles that do not have an appropriate page name and therefore should moved to the linked location.
Adds articles to the "Articles to be moved" category.
Usage
Parameters
1
Required- The name of the article to move the article to.
2
- The reason for the move. Although not required, adding a reason is highly recommended, so others can better understand the reasoning.
section
- If set to
true
, will display "section" instead of "article" in the title. hidecat
- If set to
true
, the page will not be added to the "Articles to be moved" category.
Examples
{{Move|PZwiki:Mboxes}}
{{Move|PZwiki:Mboxes|This is the item's in-game name.}}
How to translate
This template is translatable.
Template code
Paste the following code into the <includeonly>
tag of the translated template and translate the text after each =
sign (except for #default =
).
{{#switch: {{{1|}}}
| title = It has been suggested that this {{{3}}} be moved to {{{2}}}.
| reason = Reason
| #default = {{Error|translation}}
}}
Template documentation
Copy the code wrapped in the <noinclude>
tag in this template and translate the text after doc =
in the {{Documentation}}
template.
{{Translation guide}}
template should be removed from the translated documentation.