Template:Merge: Difference between revisions

From PZwiki
(Change … to ''Not given.'', add period automatically.)
(add "section" field with Template:Page ns)
Line 11: Line 11:
;<code>2</code>
;<code>2</code>
:The reason for the merge.
:The reason for the merge.
;<code>section</code>
:If set to <code>true</code>, will display "section" instead of "article" in the title.
;<code>hidecat</code>
;<code>hidecat</code>
:If not empty, the article will not be added to the "{{ll|:Category:Articles to be merged|Articles to be merged}}" category.
:If not empty, the article will not be added to the "{{ll|:Category:Articles to be merged|Articles to be merged}}" category.
Line 19: Line 21:


Although not required, adding a reason is highly recommended, so others can better understand the reasoning.
Although not required, adding a reason is highly recommended, so others can better understand the reasoning.
*{{tll|Merge|Example|This article doesn't contain sufficient notable information to deserve its own page.}}
*{{tll|Merge|Example|This article doesn't contain sufficient notable information to deserve its own page}}
{{Merge|Example|This article doesn't contain sufficient notable information to deserve its own page.|hidecat=true}}
{{Merge|Example|This article doesn't contain sufficient notable information to deserve its own page.|hidecat=true}}


{{Translation guide|<syntaxhighlight lang="html">
{{Translation guide|<syntaxhighlight lang="html">
{{#switch: {{{1|}}}
{{#switch: {{{1|}}}
| title = It has been suggested that this article be merged{{#if:{{{1|}}}|&nbsp;with {{ll|{{{1}}}}}}}.
| title = It has been suggested that this {{{3}}} be merged{{#if:{{{2|}}}|&nbsp;with {{ll|{{{2}}}}}}}.
| reason = Reason
| reason = Reason
| #default = [[Category:Incorrect template usage]]
| #default = [[Category:Incorrect template usage]]
Line 37: Line 39:
| color = #9932cc
| color = #9932cc
| 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 article be merged{{#if:{{{1|}}}|&nbsp;with {{ll|{{{1}}}}}}}.
   | default = It has been suggested that this {{Page ns|{{{section|}}}}} be merged{{#if:{{{1|}}}|&nbsp;with {{ll|{{{1}}}}}}}.
   | arg1 = title
   | arg1 = title
   | arg2 = {{{1|}}}
   | arg2 = {{{1|}}}
  | arg3 = {{Page ns|{{{section|}}}}}
   }}
   }}
| content = {{tt|name = Merge
| content = {{tt|name=Merge
   | default = Reason
   | default = Reason
   | arg1 = reason
   | arg1 = reason
   }}: {{#if:{{{2|}}}|{{{2}}}.|''Not given.''}}
   }}: {{#if:{{{2|}}}|{{{2}}}.|''Not given.''}}
| cat = {{#if:{{{hidecat|}}}||Articles to be merged{{lcs}}}}
| cat = {{#if:{{{hidecat|}}}||Articles to be merged{{lcs}}}}
| id = mbox-merge
| id = merge
| collapsed = {{#if:{{{2|}}}||true}}
| collapsed = {{#if:{{{2|}}}||true}}
}}</includeonly>
}}</includeonly>

Revision as of 03:37, 12 January 2024

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 second 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
The name of the article to be merged with.
2
The reason for the merge.
section
If set to true, will display "section" instead of "article" in the title.
hidecat
If not empty, the article will not be added to the "Articles to be merged" category.

Examples

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

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}}
Furniture Pickup.png
It has been suggested that this template 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 {{{3}}} be merged{{#if:{{{2|}}}|&nbsp;with {{ll|{{{2}}}}}}}.
| 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.