Template:Merge: Difference between revisions

Jump to navigation Jump to search
m
style fix
(+doc + some alterations)
m (style fix)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="messagebox merge" style="border: 1px #ccc solid; padding: 12px; margin: 12px;">[[Image:Merge-arrows.gif|left]] It has been suggested that this article or section be merged with ''[[{{{1}}}|{{{1}}}]]''. {{#if: {{{2|}}} | [[{{{2}}}|Discuss]] this merge.|}}</div>
<div style="background: #fff; border: 1px #ccc solid; padding: 12px; margin: 12px;">[[Image:Merge-arrows.gif|left]] It has been suggested that this article or section be merged with ''[[{{{1}}}]]''. {{#if: {{{2|}}} | [[{{{2}}}|Discuss]] this merge.|}} {{#if: {{{date|}}} | <small>''This has been proposed since {{{date}}}''.</small>|}}</div><includeonly><!--
<includeonly>[[Category:Articles to be merged|{{PAGENAME}} (into {{{1}}})]]</includeonly>
-->{{#ifeq: {{lc: {{{nocat|}}} }} | true | | [[Category:Articles to be merged|{{PAGENAME}} (into {{{1}}})]] }}</includeonly><noinclude>
<noinclude>
{{Informative template|1=
{{Informative template|1=
__NOTOC__
__NOTOC__
== Goal ==
== Goal ==
This template can be placed at the top of an article that is considered to be merged with another article.
This template can be placed at the top of an article or section that is considered to be merged with another article.


Articles marked with this template will automatically be added to the category [[:Category:Articles to be merged|Articles to be merged]].
Pages marked with this template will automatically be added to the category [[:Category:Articles to be merged|Articles to be merged]].  Categorisation can be suppressed with the '''nocat''' parameter.


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.
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.
Line 14: Line 13:
The template is placed at the top of the article to be merged from.
The template is placed at the top of the article to be merged from.


  <nowiki>{{</nowiki>'''merge'''<nowiki>|</nowiki>The other article<nowiki>|</nowiki>''Discussion page''<nowiki>}}</nowiki>
  <nowiki>{{</nowiki>'''merge'''<nowiki>|</nowiki>other article<nowiki>|</nowiki>''discussion page'' <nowiki>|</nowiki>''date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}'' <nowiki>|</nowiki>''nocat=''<nowiki>}}</nowiki>


* <tt>The other article</tt>: Name of the article to be merged to
; other article: Name of the article to be merged to.
* <tt>''Discussion page''</tt>: Optional name of a discussion page with a section about the merge.
 
; discussion page: Optional name of a discussion page with a section about the merge.
 
; date:  Optional date the merge was proposed in '''m YYYY''' format, for example '''{{CURRENTMONTHNAME}} {{CURRENTYEAR}}'''.
 
; nocat:  Optionally suppresses automatic categorisation if '''true'''.  Useful in examples.


If there is a need for a motivation or a discussion about the merge, do so on the discussion page to the page to be merged from, preferably as a new section named something like ''Merge to &lt;other article&gt;'' and link to the talk page and preferably also to that section with the second parameter.
If there is a need for a motivation or a discussion about the merge, do so on the discussion page to the page to be merged from, preferably as a new section named something like ''Merge to &lt;other article&gt;'' and link to the talk page and preferably also to that section with the second parameter.


== Examples ==
== Examples ==
  <pre>{{merge|Example}}</pre>
  <nowiki>{{merge|Example}}</nowiki>
 
{{merge|Example |nocat=true}}
 
 
<nowiki>{{merge|Example|Template talk:Merge#Merge with Example}}</nowiki>
 
{{merge|Example|Template talk:Merge#Merge with Example |nocat=true}}


<div class="messagebox merge" style="border: 1px #ccc solid; padding: 12px; margin: 12px;">[[Image:Merge-arrows.gif|left]] It has been suggested that this article or section be merged with ''[[:{{NAMESPACE}}:Example|Example]]''.</div>


  <pre>{{merge|Example|Template talk:Merge#Merge with Example}}</pre>
  <nowiki>{{merge|Example|Template talk:Merge#Merge with Example |date=</nowiki>{{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}</nowiki>


<div class="messagebox merge" style="border: 1px #ccc solid; padding: 12px; margin: 12px;">[[Image:Merge-arrows.gif|left]] It has been suggested that this article or section be merged with ''[[Example|Example]]''. [[Template talk:Merge#Merge with example|Discuss]] this merge.</div>
{{merge|Example|Template talk:Merge#Merge with Example |date={{CURRENTMONTHNAME}} {{CURRENTYEAR}} |nocat=true}}


== Related templates ==
== Related templates ==
Line 34: Line 44:
* {{tl|mergefrom}}
* {{tl|mergefrom}}
* {{tl|mergedisputed}}
* {{tl|mergedisputed}}
* {{tl|splitapart}}


[[Category:Maintenance templates]]
[[Category:Merge templates]]
}}
}}
</noinclude>
</noinclude>

Navigation menu