Template:Merge: Difference between revisions
m (quote to be consistent) |
(add error template) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{Documentation/sandbox|doc = | {{Documentation/sandbox|doc = | ||
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 "{{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 | :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| | *{{tll|Merge|PZwiki:Mboxes}} | ||
{{Merge| | {{Merge|PZwiki:Mboxes|hidecat=true}} | ||
*{{tll|Merge|PZwiki:Mboxes|This article doesn't contain sufficient notable information to deserve its own page}} - Provide reason. | |||
{{Merge|PZwiki:Mboxes|This article doesn't contain sufficient notable information to deserve its own page.|hidecat=true}} | |||
*{{tll|Merge| | |||
{{Merge| | |||
{{Translation guide|<syntaxhighlight lang="html"> | {{Translation guide|<syntaxhighlight lang="html"> | ||
{{#switch: {{{1|}}} | {{#switch: {{{1|}}} | ||
| title = It has been suggested that this | | title = It has been suggested that this {{{3}}} be merged with {{{2}}}. | ||
| reason = Reason | | reason = Reason | ||
| #default = | | #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 | | 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 | ||
}} | }}: {{{2}}}}} | ||
| cat = {{ | | cat = {{yesno|{{{hidecat|}}}|yes=|no=Articles to be merged{{lcs}}}} | ||
| id = | | id = merge | ||
| collapsed = {{#if:{{{2|}}}||true}} | | collapsed = {{#if:{{{2|}}}||true}} | ||
}}</includeonly> | }}</includeonly> |
Latest revision as of 13:00, 7 March 2024
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
{{Merge|PZwiki:Mboxes}}
{{Merge|PZwiki:Mboxes|This article doesn't contain sufficient notable information to deserve its own page}}
- Provide reason.
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.