Difference between revisions of "Template:Merge"
From Emperor's Hammer Encyclopaedia Imperia
SilwarNaiilo (talk | contribs) |
(Added Template Category tag, updated template usage, and added logic for if the parameter is not included) |
||
Line 1: | Line 1: | ||
− | {| id="merge" class="warning-merge noprint" | + | <includeonly>{| id="merge" class="warning-merge noprint" |
|- | |- | ||
| style="padding-right: 4px; padding-left: 4px;"| [[Image:Vader Palpatine.jpg]] | | style="padding-right: 4px; padding-left: 4px;"| [[Image:Vader Palpatine.jpg]] | ||
Line 6: | Line 6: | ||
It's time we figured out which one is which and deal with them accordingly. | It's time we figured out which one is which and deal with them accordingly. | ||
− | <small>This page looks like it should be merged with {{{1}}}. Once you have successfully combined the information onto one page, place the [[:Category:Candidates for deletion|Delete]] tag on the lesser page, or turn it into a redirect. | + | <small>This page looks like it should be merged with {{#if: {{{1|}}}|[[{{{1}}}]]|'''NO PAGE PROVIDED'''}}. Once you have successfully combined the information onto one page, place the [[:Category:Candidates for deletion|Delete]] tag on the lesser page, or turn it into a redirect. |
''Administrators - Remember to check [[Special:Whatlinkshere/{{NAMESPACE}}:{{PAGENAME}}|if anything links here]] and [{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=history}} the page history] ([{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|diff=0}} last edit]) before deleting.''</small> | ''Administrators - Remember to check [[Special:Whatlinkshere/{{NAMESPACE}}:{{PAGENAME}}|if anything links here]] and [{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=history}} the page history] ([{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|diff=0}} last edit]) before deleting.''</small> | ||
− | |} | + | |}[[Category:Candidates for merging]]</includeonly><noinclude> |
+ | {{Merge}} | ||
+ | |||
+ | ==Usage== | ||
+ | The purpose of this template is to flag two pages that have the potential to be merged. | ||
+ | |||
+ | <code><nowiki>{{Merge|Page2}}</nowiki></code> | ||
+ | |||
+ | when adding this tag, include the page to be merged as Page2 in the parameters. If no page is included, '''NO PAGE PROVIDED''' will be printed. | ||
==Categorization== | ==Categorization== | ||
+ | This template adds pages to the following categories. | ||
*[[:Category:Candidates for merging]] | *[[:Category:Candidates for merging]] | ||
+ | __NOTOC__ | ||
+ | [[Category:Templates]] | ||
[[Category:Maintenance templates|{{PAGENAME}}]]</noinclude> | [[Category:Maintenance templates|{{PAGENAME}}]]</noinclude> |
Revision as of 09:39, 25 July 2022
Usage
The purpose of this template is to flag two pages that have the potential to be merged.
{{Merge|Page2}}
when adding this tag, include the page to be merged as Page2 in the parameters. If no page is included, NO PAGE PROVIDED will be printed.
Categorization
This template adds pages to the following categories.