Template:Mergeto: Difference between revisions
(Style; Category suppression; etc) |
m (Fixing unintentional line break if page is categorised) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<div | <div style="background: #fff; border: 1px #ccc solid; padding:12px; margin: 12px">[[Image:Merge-arrow.gif|left]] It has been suggested that this {{namespace}} or section be merged into ''[[{{{1}}}]]''. {{#if: {{{2|}}} | [[{{{2}}}|Discuss]] this merge.|}} {{#if: {{{date|}}} | <small>''This has been proposed since {{{date}}}''.</small>|}}</div><includeonly> <!-- | ||
{{ | -->{{#ifeq: {{lc: {{{nocat|}}} }} | true | | [[Category:Articles to be merged|{{PAGENAME}} (into {{{1}}})]] }} <!-- Suppresses categorisation if nocat=true --> </includeonly><noinclude> | ||
{{Informative template|1= | {{Informative template|1= | ||
__NOTOC__ | __NOTOC__ | ||
Line 6: | 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. | ||
Pages | 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 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. | 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. | ||
Line 13: | Line 13: | ||
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>other article''#section''<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>''nocat=''<nowiki>}}</nowiki> | ||
; other article: Mandatory name of the article to be merged into | ; 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. | ; section: Optionally a section suitable to merge with if there already is such a section. | ||
Line 21: | Line 21: | ||
; discussion page: 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 | ; 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 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. | 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. | ||
Line 28: | Line 30: | ||
<nowiki>{{mergeto|Example}}</nowiki> | <nowiki>{{mergeto|Example}}</nowiki> | ||
{{mergeto|Example}} | {{mergeto|Example |nocat=true}} | ||
<nowiki>{{mergeto|Example|Template talk:Merge#Merge with Example}}</nowiki> | <nowiki>{{mergeto|Example|Template talk:Merge#Merge with Example}}</nowiki> | ||
{{mergeto|Example|Template talk:Merge#Merge with Example}} | {{mergeto|Example|Template talk:Merge#Merge with Example |nocat=true}} | ||
<nowiki>{{mergeto|Example#Sample section|Template talk:Merge#Merge with Example|date=</nowiki>{{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}</nowiki> | <nowiki>{{mergeto|Example#Sample section|Template talk:Merge#Merge with Example |date=</nowiki>{{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}</nowiki> | ||
{{mergeto|Example#Sample section|Template talk:Merge#Merge with Example|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}} }} | {{mergeto|Example#Sample section|Template talk:Merge#Merge with Example |date={{CURRENTMONTHNAME}} {{CURRENTYEAR}} |nocat=true}} | ||
== Related templates == | == Related templates == |
Latest revision as of 21:01, 30 May 2014
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 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 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=April 2024 |nocat=}}
- 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 April 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 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}}
{{mergeto|Example|Template talk:Merge#Merge with Example}}
{{mergeto|Example#Sample section|Template talk:Merge#Merge with Example |date=April 2024}}
Related templates
- {{merge}}
- {{mergefrom}}
- {{mergedisputed}}
- {{splitapart}}