Difference between revisions of "Template:Merge"
Mediawiki>Shirayuki (translation tweaks) |
Joelmartin (talk | contribs) m (Text replacement - "<tvar|2>" to "") |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
<languages/> | <languages/> | ||
− | </noinclude>{{#switch: | + | </noinclude>{{#switch: |
| = | | = | ||
{{Mbox | {{Mbox | ||
|type = move | |type = move | ||
|image = [[Image:Merge-arrows.svg|50px]] | |image = [[Image:Merge-arrows.svg|50px]] | ||
− | |text = | + | |text = It has been suggested that this {{#ifeq:{{NAMESPACE}}|{{ns:Extension}}|extension|{{#if:{{NAMESPACE}}|page|article}} or section}} be {{<tvar|3>#ifeq:{{NAMESPACE}}|{{ns:Extension}}|[[Extension merger|merged]]|[[w:Wikipedia:Merging|merged]]}}{{<tvar|4>#if:{{{1|}}}| with <tvar|5>{{Pagelist|nspace=default|delim=''|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|{{{9|}}}|{{{10|}}}|{{{11|}}}|{{{12|}}}|{{{13|}}}|{{{14|}}}|{{{15|}}}|{{{16|}}}|{{{17|}}}|{{{18|}}}|{{{19|}}}|{{{20|}}}}}}}{{<tvar|6>#if:{{{target|}}}| to <tvar|7>''[[{{{target}}}]]''|}}. ([[{{{discussion|{{{discuss|:{{TALKPAGENAME}}}}}}}}| Discuss]])}}{{#if:{{{nocat|}}}||<includeonly>{{#switch:{{NAMESPACE}} |
||Talk={{DMC|Articles to be merged{{#translation:}}|from|{{{date|}}}|All articles to be merged{{#translation:}}}} | ||Talk={{DMC|Articles to be merged{{#translation:}}|from|{{{date|}}}|All articles to be merged{{#translation:}}}} | ||
||Extension=[[Category:Extensions to be merged{{#translation:}}]] | ||Extension=[[Category:Extensions to be merged{{#translation:}}]] |
Latest revision as of 18:19, 21 December 2019
![]() | It has been suggested that this page or section be {{<tvar|3>#ifeq:Template|Template:Ns:Extension|merged|merged}}{{<tvar|4>#if:| with <tvar|5>}}{{<tvar|6>#if:| to <tvar|7>[[{{{target}}}]]|}}. ( Discuss) |
Usage
Tagging a single page is simple:
{{Merge|OtherPage |date
Template loop detected: Template:DocumentationJune 2025}}
![]() | It has been suggested that this page or section be {{<tvar|3>#ifeq:Template|Template:Ns:Extension|merged|merged}}{{<tvar|4>#if:OtherPage| with <tvar|5>OtherPage}}{{<tvar|6>#if:| to <tvar|7>[[{{{target}}}]]|}}. ( Discuss) |
By default, the Discuss link on the template links to the top of the destination page's talk page. To specify which section, or to name a different talk page entirely, use the |discuss=
parameter:
{{Merge|OtherPage |discuss
Template loop detected: Template:DocumentationTalk:OtherPage#Merge discussion |date
Template loop detected: Template:DocumentationJune 2025}}
![]() | It has been suggested that this page or section be {{<tvar|3>#ifeq:Template|Template:Ns:Extension|merged|merged}}{{<tvar|4>#if:OtherPage| with <tvar|5>OtherPage}}{{<tvar|6>#if:| to <tvar|7>[[{{{target}}}]]|}}. ( Discuss) |
To name other pages to be merged, simply separate them with a vertical pipe. You can add up to 20 articles to be merged:
{{Merge|OtherPage1 |OtherPage2 |OtherPage3 |discuss
Template loop detected: Template:DocumentationTalk:OtherPage#Merge discussion |date
Template loop detected: Template:DocumentationJune 2025}}
![]() | It has been suggested that this page or section be {{<tvar|3>#ifeq:Template|Template:Ns:Extension|merged|merged}}{{<tvar|4>#if:OtherPage1| with <tvar|5>OtherPage1, OtherPage2 and OtherPage3}}{{<tvar|6>#if:| to <tvar|7>[[{{{target}}}]]|}}. ( Discuss) |
To name multiple pages to merge into a single page, use the |target=
parameter. For example, to merge the tagged page, as well as OtherPage1, OtherPage2, and OtherPage3 into OtherPage4, use:
{{Merge|OtherPage1 |OtherPage2 |OtherPage3 |target
Template loop detected: Template:DocumentationOtherPage4 |discuss
Template loop detected: Template:DocumentationTalk:OtherPage#Merge discussion |date
Template loop detected: Template:DocumentationJune 2025}}
![]() | It has been suggested that this page or section be {{<tvar|3>#ifeq:Template|Template:Ns:Extension|merged|merged}}{{<tvar|4>#if:OtherPage1| with <tvar|5>OtherPage1, OtherPage2 and OtherPage3}}{{<tvar|6>#if:OtherPage4| to <tvar|7>OtherPage4|}}. ( Discuss) |
These templates will add tagged articles to Category:Articles to be merged, while non-articles (files, templates, etc.) will be added to Category:Items to be merged.
Notes
- After adding the merge template, please create a section on the talkpage explaining your rationale for the merge proposal.
- Do not link to the pages with square brackets.
- The date may not be shown in the box. Do not be concerned about this. It is used when grouping tagged pages together into categories by date.