Template:Merge: Difference between revisions

From PZwiki
m (minor)
(update doc)
Line 3: Line 3:
Added to articles that are not lengthy enough to be deemed their own page and therefore should be incorporated into the linked article. The <code>reason</code> parameter should be used to provide a reason for the change, if necessary.
Added to articles that are not lengthy enough to be deemed their own page and therefore should be incorporated into the linked article. The <code>reason</code> parameter should be used to provide a reason for the change, if necessary.


Adds articles to the {{ll|:Category:Articles to be merged|articles to be merged}} category.
Adds articles to the "{{ll|:Category:Articles to be merged|Articles to be merged}}" category.


==Usage==
==Usage==
This template should contain the page it is to be merged with, separated by a pipe <code>{{!}}</code>.
===Parameters===
;<code>1</code>
:Name of the article to be merged with.
;<code>2</code>
:Reason for the merge.
;<code>hidecat</code>
:If not empty, the category will not be added to the {{ll|:Category:Articles to be merged|Articles to be merged}} category.


===Examples===
===Examples===
Line 28: Line 34:
}}
}}
</syntaxhighlight>}}
</syntaxhighlight>}}
==See also==
*{{ll|PZwiki:Mboxes}}
}}
}}
{{ll|Category:Maintenance templates}}
{{ll|Category:Mbox templates}}
{{ll|Category:Mbox templates}}
</noinclude><includeonly>{{Mbox
</noinclude><includeonly>{{Mbox

Revision as of 06:30, 29 December 2023

Notebook.pngTemplate Documentation

Added to articles that are not lengthy enough to be deemed their own page and therefore should be incorporated into the linked article. The reason parameter should be used to provide a reason for the change, if necessary.

Adds articles to the "Articles to be merged" category.

Usage

Parameters

1
Name of the article to be merged with.
2
Reason for the merge.
hidecat
If not empty, the category will not be added to the Articles to be merged category.

Examples

For the basic functionality: {{Merge|Example}}

This will produce:

Furniture Pickup.png
It has been suggested that this article be merged with Example.
Reason: ...

Although not required, adding a reason is highly recommended, so others can better understand the reasoning.

{{Merge|Example|This article doesn't contain sufficient notable information to deserve its own page.}}

Produces:
Furniture Pickup.png
It has been suggested that this article be merged with Example.
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 article be merged{{#if:{{{1|}}}|&nbsp;with {{ll|{{{1}}}}}}}.
| reason = Reason
| #default = [[Category:Incorrect template usage]]
}}

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.