Template:Mergefrom: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
m (+ date stamping + rel: Template:splitapart)
m (Fixing unintentional line break if page is categorised)
 
(2 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:Mergefrom.gif|left]] It has been suggested that ''[[{{{1}}}]]'' be merged into this article or section. {{#if: {{{2|}}} | [[{{{2}}}|Discuss]] this merge.|}} {{#if: {{{date|}}} | <small>''This has been proposed since {{{date}}}''.</small>|}}</div>
<div style="background: #fff; border: 1px #ccc solid; padding:12px;margin: 12px">[[Image:Mergefrom.gif|left]] It has been suggested that ''[[{{{1}}}]]'' be merged into this article or section. {{#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__
Line 7: Line 6:
This template can be placed at the top of an article or section that another article or section is considered to be merged into.
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]].
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 or a section of it.
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.
Line 14: Line 13:
The template is placed at the top of the article to be merged into.
The template is placed at the top of the article to be merged into.


  <nowiki>{{</nowiki>'''mergefrom'''<nowiki>|</nowiki>The other article<nowiki>|</nowiki>''Discussion page''<nowiki>|</nowiki>''date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}''<nowiki>}}</nowiki>
  <nowiki>{{</nowiki>'''mergefrom'''<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 into this article or section
; other article: 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.
 
* <tt>'''''date='''''</tt> Optional date the merge was proposed in <tt>m YYYY</tt> format (for example <tt>{{CURRENTMONTHNAME}} {{CURRENTYEAR}}</tt>)
; discussion page: Optional name of a discussion page with a section about the merge.
 
; dateOptional 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 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 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>{{mergefrom|Example}}</pre>
  <nowiki>{{mergefrom|Example}}</nowiki>
 
{{mergefrom|Example |nocat=true}}
 


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


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


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


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


== Related templates ==
== Related templates ==
Line 41: Line 46:
* {{tl|splitapart}}
* {{tl|splitapart}}


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

Latest revision as of 21:03, 30 May 2014

Mergefrom.gif
It has been suggested that [[{{{1}}}]] be merged into this article or section.
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 another article or section is considered to be merged into.

Pages marked with this template will automatically be added to the category 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 or a section of it.

Usage

The template is placed at the top of the article to be merged into.

{{mergefrom|other article|discussion page |date=March 2024 |nocat=}}
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.
date
Optional date the merge was proposed in m YYYY format, for example March 2024.
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 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.gif
It has been suggested that Example be merged into this article or section.


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


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

Related templates