Template:Merge: Difference between revisions
m (added merge/tr) |
(new layout) |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{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 <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. | |||
< | |||
==Usage== | |||
This template should contain the page it is to be merged with, separated by a pipe <code>{{!}}</code>. | |||
===Examples=== | |||
For the basic functionality: {{Tlx|Merge|Example}} | |||
'''This will produce:''' | |||
{{Merge|Example|hidecat=true}} | |||
Although not required, adding a reason is highly recommended, so others can better understand the reasoning. | |||
{{Tlx|Merge|Example|This article doesn't contain sufficient notable information to deserve its own page.}} | |||
:'''Produces:''' | |||
{{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|}}}| 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|}}}| 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
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:
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:
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|}}}| 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.