Template:Mergeto: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
m (+-cat: Maintenance templates → Merge templates)
(Style; Category suppression; etc)
Line 1: Line 1:
<div class="messagebox merge" style="border: 1px #ccc solid; padding:12px;margin: 12px">[[Image:Merge-arrow.gif|left]] It has been suggested that this article or section be merged into ''[[{{{1}}}]]''. {{#if: {{{2|}}} | [[{{{2}}}|Discuss]] this merge.|}} {{#if: {{{date|}}} | <small>''This has been proposed since {{{date}}}''.</small>|}}</div>
<div class="messagebox merge" style="background: #fff; border: 1px #ccc solid; padding:12px; margin: 12px">[[Image:Merge-arrow.gif|left]] It has been suggested that this article or section be merged into ''[[{{{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>
{{main other | [[Category:Articles to be merged|{{PAGENAME}} (into {{{1}}})]] }}</includeonly><noinclude>
<noinclude>
{{Informative template|1=
{{Informative template|1=
__NOTOC__
__NOTOC__
Line 7: Line 6:
This template can be placed at the top of an article or section that is considered to be merged into another article or section.
This template can be placed at the top of an article or section that is considered to be merged into another article or section.


Articles marked with this template will automatically be added to the category [[:Category:Articles to be merged|Articles to be merged]].
Pages in the article namespace 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.
Merging can be done if a section is slightly out of context in one article but is similar enough that copying it into another article or merging it with a section in the other article would aid their maintenance.


== Usage ==
== Usage ==
The template is placed at the top of the article or section to be merged from.
The template is placed at the top of the article or section to be merged from.


  <nowiki>{{</nowiki>'''mergeto'''<nowiki>|</nowiki>The other article<nowiki>|</nowiki>''Discussion page''<nowiki>|</nowiki>''date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}''<nowiki>}}</nowiki>
  <nowiki>{{</nowiki>'''mergeto'''<nowiki>|</nowiki>other article''#section''<nowiki>|</nowiki>''discussion page''<nowiki>|</nowiki>''date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}''<nowiki>}}</nowiki>


* <tt>'''The other article'''</tt>: Name of the article to be merged into
; other article: Mandatory name of the article to be merged into
* <tt>'''''Discussion page'''''</tt>: Optional name of a discussion page with a section about the merge.
* <tt>'''''date='''''</tt> Optional date the merge was proposed in <tt>m YYYY</tt> format (for example <tt>{{CURRENTMONTHNAME}} {{CURRENTYEAR}}</tt>)


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 &lt;other article&gt;'' and link to the talk page and preferably also to that section with the second parameter.
; section:  Optionally a section suitable to merge with if there already is such a section.
 
; discussion page:  Optional name of a discussion page with a section about the merge.
 
; date:  Optional date the merge was proposed in <tt>m YYYY</tt> format (for example <tt>{{CURRENTMONTHNAME}} {{CURRENTYEAR}}</tt>)
 
If there is a need for a motivation or a discussion about the merge, do so on the discussion page of 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>{{mergeto|Example}}</pre>
  <nowiki>{{mergeto|Example}}</nowiki>


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


  <pre>{{mergeto|Example|Template talk:Merge#Merge with Example}}</pre>
  <nowiki>{{mergeto|Example|Template talk:Merge#Merge with Example}}</nowiki>


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


  <pre>{{mergeto|Example|Template talk:Merge#Merge with Example|date=August 2013}}</pre>
  <nowiki>{{mergeto|Example#Sample section|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-arrow.gif|left]] It has been suggested that this article or section be merged into ''[[Example]]''. [[Template talk:Merge#Merge with Example|Discuss]] this merge. <small>''This has been proposed since August 2013''.</small></div>
{{mergeto|Example#Sample section|Template talk:Merge#Merge with Example|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}


== Related templates ==
== Related templates ==

Revision as of 19:57, 30 May 2014

Merge-arrow.gif
It has been suggested that this article or section be merged into [[{{{1}}}]].
The following template description is not displayed when the template is inserted in an article.

Goal

This template can be placed at the top of an article or section that is considered to be merged into another article or section.

Pages in the article namespace marked with this template will automatically be added to the category Articles to be merged.

Merging can be done if a section is slightly out of context in one article but is similar enough that copying it into another article or merging it with a section in the other article would aid their maintenance.

Usage

The template is placed at the top of the article or section to be merged from.

{{mergeto|other article#section|discussion page|date=March 2024}}
other article
Mandatory name of the article to be merged into
section
Optionally a section suitable to merge with if there already is such a section.
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 March 2024)

If there is a need for a motivation or a discussion about the merge, do so on the discussion page of 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

{{mergeto|Example}}
Merge-arrow.gif
It has been suggested that this article or section be merged into Example.


{{mergeto|Example|Template talk:Merge#Merge with Example}}
Merge-arrow.gif
It has been suggested that this article or section be merged into Example. Discuss this merge.


{{mergeto|Example#Sample section|Template talk:Merge#Merge with Example|date=March 2024}}
Merge-arrow.gif
It has been suggested that this article or section be merged into Example#Sample section. Discuss this merge. This has been proposed since March 2024.


Related templates