Template:Merge: Difference between revisions

From PZwiki
(Change … to ''Not given.'', add period automatically.)
(add error template)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{Documentation/sandbox|doc =
{{Documentation/sandbox|doc =
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.
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.


Adds articles 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.


==Usage==
==Usage==
===Parameters===
===Parameters===
;<code>1</code>
;<code>1</code> {{sup|required}}
:The name of the article to be merged with.
: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.
;<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 set to <code>true</code>, it will not add the page to the "{{ll|:Category:Articles to be merged|Articles to be merged}}" category.


==Examples==
==Examples==
*{{tll|Merge|Example}}
*{{tll|Merge|PZwiki:Mboxes}}
{{Merge|Example|hidecat=true}}
{{Merge|PZwiki:Mboxes|hidecat=true}}
 
*{{tll|Merge|PZwiki:Mboxes|This article doesn't contain sufficient notable information to deserve its own page}} - Provide reason.
Although not required, adding a reason is highly recommended, so others can better understand the reasoning.
{{Merge|PZwiki:Mboxes|This article doesn't contain sufficient notable information to deserve its own page.|hidecat=true}}
*{{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}}


{{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 with {{{2}}}.
| reason = Reason
| reason = Reason
| #default = [[Category:Incorrect template usage]]
| #default = {{Error|translation}}
}}
}}
</syntaxhighlight>}}
</syntaxhighlight>}}
Line 37: Line 37:
| 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 with {{#if:{{{1|}}}|{{ll|{{{1}}}}}|{{Error|param_empty|hidecat={{{hidecat|}}}}}}}.
   | arg1 = title
   | arg1 = title
   | arg2 = {{{1|}}}
   | arg2 = {{#if:{{{1|}}}|{{ll|{{{1}}}}}|{{Error|param_empty|hidecat={{{hidecat|}}}}}}}
  | arg3 = {{Page ns|{{{section|}}}}}
   }}
   }}
| content = {{tt|name = Merge
| content = {{#if:{{{2|}}}|{{tt|name=Merge
   | default = Reason
   | default = Reason
   | arg1 = reason
   | arg1 = reason
   }}: {{#if:{{{2|}}}|{{{2}}}.|''Not given.''}}
   }}: {{{2}}}}}
| cat = {{#if:{{{hidecat|}}}||Articles to be merged{{lcs}}}}
| cat = {{yesno|{{{hidecat|}}}|yes=|no=Articles to be merged{{lcs}}}}
| id = mbox-merge
| id = merge
| collapsed = {{#if:{{{2|}}}||true}}
| collapsed = {{#if:{{{2|}}}||true}}
}}</includeonly>
}}</includeonly>

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.