Template:Merge: Difference between revisions

From PZwiki
m (added merge/tr)
(new layout)
Line 1: Line 1:
<noinclude>
<noinclude>
  {{Languages}}
{{Documentation/sandbox|doc =
  {{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 <code>reason</code> parameter should be used to provide a reason for the change, if necessary.
  [[Category:Maintenance templates]]
 
  [[Category:Mbox templates]]
Adds articles to the {{ll|:Category:Articles to be merged|articles to be merged}} category.
</noinclude><!--
 
--><includeonly><!--
==Usage==
  -->{{NoticeBox
This template should contain the page it is to be merged with, separated by a pipe <code>{{!}}</code>.
    | type = move
 
    | text = {{#switch: {{Subpage|slash=false}}
===Examples===
      <!-- Example: |es={{Template:merge/es|{{{1}}}|reason={{{reason|}}}}} -->
For the basic functionality: {{Tlx|Merge|Example}}
      | nl = {{Template:merge/nl|{{{1}}}|reason={{{reason|}}}}}
 
      | zh-hans = {{Template:merge/zh-hans|{{{1}}}|reason={{{reason|}}}}}
'''This will produce:'''
      | tr = {{Template:merge/tr|{{{1}}}|reason={{{reason|}}}}}
{{Merge|Example|hidecat=true}}
      | en | #default = <span style="font-size:120%">It has been suggested that this article be '''merged''' with '''[[{{{1}}}]]'''.</span>{{#if:{{{reason|}}}|<br>Reason: {{{reason|}}} }} ([[talk:{{PAGENAME}}|Discuss]])
 
    }}
Although not required, adding a reason is highly recommended, so others can better understand the reasoning.
    <!-- checks if pagename = subpagename in language code registry then returns null, else add subpagename -->
 
    | cat = [[Category:Articles to be merged{{#ifeq:{{Language code|{{Subpage|slash=false}}}}|true|{{Subpage}}|}}]]
{{Tlx|Merge|Example|This article doesn't contain sufficient notable information to deserve its own page.}}
    | hidecat = {{{hidecat|}}}
 
  }}<!--
:'''Produces:'''
--></includeonly>
{{Merge|Example|This article doesn't contain sufficient notable information to deserve its own page.|hidecat=true}}
 
{{Translation guide|<syntaxhighlight lang="html">
{{#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]]
}}
</syntaxhighlight>}}
}}
{{ll|Category:Maintenance templates}}
{{ll|Category:Mbox templates}}
</noinclude><includeonly>{{Mbox
| color = #9932cc
| sign = [[File:Furniture Pickup.png|link=Template:Merge{{#ifeq:{{Language code}}|true|{{Subpage}}|}}]]
| title = {{tt
  | name = Merge
  | default = It has been suggested that this article be merged{{#if:{{{1|}}}|&nbsp;with {{ll|{{{1}}}}}}}.
  | arg1 = title
  | arg2 = {{{1|}}}
  }}
| content = {{tt
  | name = Merge
  | default = Reason
  | arg1 = reason
  }}: {{#if:{{{2|}}}|{{{2}}}|...}}
| id = mbox-merge
| collapsed = {{#if:{{{2|}}}||true}}
}}</includeonly>

Revision as of 15:01, 28 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

This template should contain the page it is to be merged with, separated by a pipe |.

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.
Editors can experiment in this template's sandbox.