Template:Mergefrom: Difference between revisions
mNo edit summary |
(+doc + some alterations, like link to a discussion page) |
||
Line 1: | Line 1: | ||
<div class="messagebox merge" style="border: 1px #ccc solid; padding:12px;margin: 12px">[[Image:Mergefrom.gif|left]] It has been suggested that ''[[{{{1}}}|{{{1}}}]]'' be merged into this article or section.</div> | <div class="messagebox merge" style="border: 1px #ccc solid; padding:12px;margin: 12px">[[Image:Mergefrom.gif|left]] It has been suggested that ''[[{{{1}}}|{{{1}}}]]'' be merged into this article or section. {{#if: {{{2|}}} | [[{{{2}}}|Discuss]] this merge.|}}</div> | ||
<includeonly>[[Category:Articles to be merged|{{PAGENAME}} (into {{{1}}})]]</includeonly> | <includeonly>[[Category:Articles to be merged|{{PAGENAME}} (into {{{1}}})]]</includeonly> | ||
<noinclude> | <noinclude> | ||
{{Informative template|1= | |||
__NOTOC__ | |||
== Goal == | |||
This template can be placed at the top of an article or section that another article or section is considered to be merged into. | |||
Articles marked with this template will automatically be added to the category [[:Category:Articles to be merged|Articles to be merged]]. | |||
Merging can be done if two articles are found to be similar enough that merging them would aid their maintenance. The merge is done by copying text from one article to another and keeping the first as a redirect page. Normally text from a shorter article is merged into a longer article or a section of it. | |||
== Usage == | |||
The template is placed at the top of the article to be merged from. | |||
<nowiki>{{</nowiki>'''mergefrom'''<nowiki>|</nowiki>The other article<nowiki>|</nowiki>''Discussion page''<nowiki>}}</nowiki> | |||
* <tt>The other article</tt>: Name of the article to be merged into this article or section | |||
* <tt>''Discussion page''</tt>: Optional name of a discussion page with a section about the merge. | |||
If there is a need for a motivation or a discussion about the merge, do so on the page to be merged from, preferably as a new section named something like ''Merge to <other article>'' and link to the talk page and preferably also to that section with the second parameter. | |||
== Examples == | |||
<pre>{{mergefrom|Example}}</pre> | |||
<div class="messagebox merge" style="border: 1px #ccc solid; padding:12px;margin: 12px">[[Image:Mergefrom.gif|left]] It has been suggested that ''[[Example|Example]]'' be merged into this article or section.</div> | |||
<pre>{{mergefrom|Example|Template talk:Merge#Merge with Example}}</pre> | |||
<div class="messagebox merge" style="border: 1px #ccc solid; padding:12px;margin: 12px">[[Image:Mergefrom.gif|left]] It has been suggested that ''[[Example|Example]]'' be merged into this article or section. [[Template talk:Merge#Merge with Example|Discuss]] this merge.</div> | |||
== Related templates == | |||
* {{tl|merge}} | |||
* {{tl|mergeto}} | |||
* {{tl|mergedisputed}} | |||
[[Category:Maintenance templates]] | [[Category:Maintenance templates]] | ||
}} | |||
</noinclude> | </noinclude> |
Revision as of 17:18, 5 August 2013
Goal
This template can be placed at the top of an article or section that another article or section is considered to be merged into.
Articles marked with this template will automatically be added to the category Articles to be merged.
Merging can be done if two articles are found to be similar enough that merging them would aid their maintenance. The merge is done by copying text from one article to another and keeping the first as a redirect page. Normally text from a shorter article is merged into a longer article or a section of it.
Usage
The template is placed at the top of the article to be merged from.
{{mergefrom|The other article|Discussion page}}
- The other article: Name of the article to be merged into this article or section
- Discussion page: Optional name of a discussion page with a section about the merge.
If there is a need for a motivation or a discussion about the merge, do so on the page to be merged from, preferably as a new section named something like Merge to <other article> and link to the talk page and preferably also to that section with the second parameter.
Examples
{{mergefrom|Example}}
{{mergefrom|Example|Template talk:Merge#Merge with Example}}
Related templates
- {{merge}}
- {{mergeto}}
- {{mergedisputed}}