Difference between revisions of "Template:Merge"
Line 2: | Line 2: | ||
| image = [[File:Merge Caravans.png|40px|link=Category:Pages to be merged]] | | image = [[File:Merge Caravans.png|40px|link=Category:Pages to be merged]] | ||
| text = '''This {{#if: {{{section|}}} | section | {{#ifeq: {{NAMESPACE}} | File | file | article}} }} is [[:Category:Pages to be merged|suggested to be merged]] with {{#if: {{{destination|}}} | [[ {{{destination|}}}]]{{#if: {{{destination2|}}} | and/or [[ {{{destination2|}}}]]}}.| '''{{Error|Please suggest a destination.}}'''}} '''<br/>'''Reason:''' {{{reason| {{Error|Please provide a reason.}} }}} | | text = '''This {{#if: {{{section|}}} | section | {{#ifeq: {{NAMESPACE}} | File | file | article}} }} is [[:Category:Pages to be merged|suggested to be merged]] with {{#if: {{{destination|}}} | [[ {{{destination|}}}]]{{#if: {{{destination2|}}} | and/or [[ {{{destination2|}}}]]}}.| '''{{Error|Please suggest a destination.}}'''}} '''<br/>'''Reason:''' {{{reason| {{Error|Please provide a reason.}} }}} | ||
− | }} {{#ifeq: {{{nocat|}}} | true | | [[Category:Pages to be merged]] {{#set: | + | }} {{#ifeq: {{{nocat|}}} | true | | [[Category:Pages to be merged]] {{#set: Merge Reason = {{#if:{{{section|}}}|Section: }}{{{reason|}}} }}: {{{reason|}}} }} }}</includeonly><noinclude>{{Documentation}}</noinclude><!-- Add categories and interwikis to the /doc subpage, not here! --> |
Revision as of 22:08, 27 November 2024
Description
Creates a banner noting that the page or section should be merged and automatically categorizes the page into Category:Pages to be merged.
Parameters
This template has no mandatory parameters, it is however good practice to always provide the "destination" and "reason" parameter.
"destination" parameter
You should always provide the name of the page that the page or section should be merged with (e.g. {{Merge| destination = Template:Move}}
). It doesn't matter if the page exists already.
"destination2" parameter
You can also provide the name of a second page that the page or section should be merged with (e.g. {{Merge| destination = Template:Move | destination2 = Template:Split}}
). It doesn't matter if the page exists already.
"reason" parameter
You should always provide an explanation why you think the page should be merged and why with that particular destination - be it as obvious to you as it gets. This can be any text (e.g. {{Merge| destination = Template:Move | reason = Could be integrated into that page}}
).
"section" parameter
Setting this parameter to any value (e.g. {{Merge| section = 1}}
) will change the message from "article" to "section".
"nocat" parameter
Setting this parameter to true (e.g. {{Merge| nocat = true}}
) suppresses adding the page to Category:Pages to be merged.
Include this parameter when using the template for testing purposes, like on this page.
Examples
The template can be used with no arguments:
{{Merge}}
producing:
This article is suggested to be merged with Please suggest a destination. Reason: Please provide a reason. |
As you can see, however, the template complains if you don't provide a destination and a reason. You should therefore always provide them:
{{Merge| destination = Template:Move | reason = Could be integrated into that page}}
producing:
This article is suggested to be merged with Template:Move. Reason: Could be integrated into that page |
You can also provide a second destination:
{{Merge| destination = Template:Move | destination2 = Template:Split | reason = Could be integrated into that page}}
producing:
This article is suggested to be merged with Template:Move and/or Template:Split. Reason: Could be integrated into that page |
A specific section can be designated for merging:
{{Merge| destination = Template:Move | reason = Could be integrated into that page | section = 1}}
producing:
This section is suggested to be merged with Template:Move. Reason: Could be integrated into that page |
See also
Maintenance
- Incomplete pages/sections:
- {{Documentation wanted}} for marking templates without documentation.
- {{Image wanted}} for marking pages or sections that are missing images.
- {{Stub}} for marking incomplete pages or sections.
- Request major changes:
- {{Disambig}} for marking pages that are ambiguous.
- {{Merge}} for marking pages that should be merged.
- {{Move}} for marking pages or sections that should be moved.
- {{Rewrite}} for marking pages or sections that should be rewritten.
- {{Recode}} for marking templates or pages that need to be recoded.
- {{Split}} for marking pages or sections that should be split.
- Deletion:
- {{Delete}} for marking pages that should be deleted.
- {{Obsolete}} for marking pages that are no longer relevant to the current game version.
- {{Safe to delete}} for marking pages that are ready to be deleted.
- {{SpeedyDelete}} for marking pages that should be deleted as fast as possible.
Content
- {{Biotech}} for marking content from Biotech (DLC) .
- {{Ideology}} for marking content from Ideology (DLC) .
- {{Royalty}} for marking content from Royalty (DLC) .
- {{Console}} for marking content from the console edition .
- {{Spoiler}} for marking potential spoilers.
The above documentation is transcluded from Template:Merge/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |