Template:Merge: Difference between revisions

From PZwiki
m (minor)
(add error template)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{Documentation/sandbox|doc =
{{Documentation/sandbox|doc =
this template should be added to articles that are not lengthy enough to be deemed their own page and therefore should be incorporated into the linked article.
This template should be added to articles that are not lengthy enough to be deemed their own page, and therefore should be incorporated into the linked article.


This will add the page to the "{{ll|:Category:Articles to be merged|Articles to be merged}}" category.
This will add the page to the "{{ll|:Category:Articles to be merged|Articles to be merged}}" category.
Line 26: Line 26:
| title = It has been suggested that this {{{3}}} be merged with {{{2}}}.
| title = It has been suggested that this {{{3}}} be merged with {{{2}}}.
| reason = Reason
| reason = Reason
| #default = [[Category:Incorrect template usage]]
| #default = {{Error|translation}}
}}
}}
</syntaxhighlight>}}
</syntaxhighlight>}}
Line 38: Line 38:
| sign = [[File:Furniture Pickup.png|link=Template:Merge{{lcs}}]]
| sign = [[File:Furniture Pickup.png|link=Template:Merge{{lcs}}]]
| title = {{tt|name=Merge
| title = {{tt|name=Merge
   | default = It has been suggested that this {{Page ns|{{{section|}}}}} be merged with {{#if:{{{1|}}}|{{ll|{{{1}}}}}|[[Category:Incorrect template usage]]}}.
   | default = It has been suggested that this {{Page ns|{{{section|}}}}} be merged with {{#if:{{{1|}}}|{{ll|{{{1}}}}}|{{Error|param_empty|hidecat={{{hidecat|}}}}}}}.
   | arg1 = title
   | arg1 = title
   | arg2 = {{#if:{{{1|}}}|{{ll|{{{1}}}}}|[[Category:Incorrect template usage]]}}
   | arg2 = {{#if:{{{1|}}}|{{ll|{{{1}}}}}|{{Error|param_empty|hidecat={{{hidecat|}}}}}}}
   | arg3 = {{Page ns|{{{section|}}}}}
   | arg3 = {{Page ns|{{{section|}}}}}
   }}
   }}

Latest revision as of 13:00, 7 March 2024

Notebook.pngTemplate Documentation

This template should be added to articles that are not lengthy enough to be deemed their own page, and therefore should be incorporated into the linked article.

This will add the page to the "Articles to be merged" category.

Usage

Parameters

1 Required
The name of the article to be merged with. Although not required, adding a reason is highly recommended, so others can better understand the reasoning.
2
The reason for the merge.
section
If set to true, will display "section" instead of "article" in the title.
hidecat
If set to true, it will not add the page to the "Articles to be merged" category.

Examples

Furniture Pickup.png
It has been suggested that this template be merged with PZwiki:Mboxes.
  • {{Merge|PZwiki:Mboxes|This article doesn't contain sufficient notable information to deserve its own page}} - Provide reason.
Furniture Pickup.png
It has been suggested that this template be merged with PZwiki:Mboxes.
Reason: This article doesn't contain sufficient notable information to deserve its own page.

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 merged with {{{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.

See also

Editors can experiment in this template's sandbox.