Template:Merge/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Harej
updating documentation
Ookami (talk | contribs)
m 238 revisions imported
 
(164 intermediate revisions by 71 users not shown)
Line 1: Line 1:
<noinclude>{{template doc page viewed directly}}</noinclude>
{{Documentation subpage}}
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE, AND INTERWIKIS TO WIKIDATA -->
{{seealso|Wikipedia:Duplicate articles}}
{{Twinkle standard installation}}
{{Wikipedia:Article alerts/Bot use warning}}


This template should be used for page mergers without knowing where exactly the pages will be merged. {{tl|Mergeto}} should be used to state that an article should be merged ''into'' a pre-existing article, and said pre-existing article should be tagged with {{tl|mergefrom}}.
== Which merge template should I use? ==
'''Do not use this tag on a Wikipedia [[WP:template]] or [[WP:category]]'''—instead see [[#When to use and when not to use|below]] for instructions.


This template will add tagged articles to [[:Category:Articles to be merged]], and accepts anywhere between 1–20 articles to be merged.
* To merge at least two articles together at an unspecified location, use {{tlx|Merge|OtherPage}}
* To merge the contents of the tagged article ''into'' the specified article, use {{tlx|Merge to|OtherPage}}
* If the contents of the specified article should be merged into the tagged article, use {{tlx|Merge from|OtherPage}} &ndash; the opposite of {{tlx|Merge to}};
* To suggest merging only some material from one article to another, use {{tlx|Merge portions from|SourcePage}} and {{tlx|Split portions|TargetPage}}


==Syntax==
== When to use and when not to use==
These templates are used primarily to identify potential merges that would benefit from discussion.  If it is obvious that a merge would be appropriate, then you may [[WP:Be bold|boldly]] merge the pages yourself without tagging and without discussion.  Some editors also use these tags to mark pages that obviously require merging in the hope that someone else will merge the pages.
 
After adding the merge template, you are expected to create a section on the talk page of the appropriate article (see below for details) explaining your rationale for the merge proposal. If the rationale is so obvious that it requires no explanation, then you should consider boldly merging the pages yourself, or explain on the talk page why you didn't do so yourself.
 
* If you want to propose merging a '''category''', you must do so at [[Wikipedia:Categories for discussion]], using the specific templates available there.
* If you want to propose merging a '''template''', you must do so at [[Wikipedia:Templates for discussion]], using the specific templates available there.
 
== How to use ==
===Simple example===
Tagging a single page is simple:
Tagging a single page is simple:


:<code><nowiki>{{merge | OtherPage }}</nowiki></code>
{{markup
|<nowiki>{{Merge|OtherPage |date=</nowiki>{{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki> }}
or
{{Merge |OtherPage |{{subst:DATE}} }}</nowiki>
|{{Mbox
|name  = Merge
|type  = move
|image = [[File:Merge-arrows.svg|50px|alt=|link=]]
|text  = It has been suggested that this {{#if:|section|{{#if:{{NAMESPACE}}|page|article}}}} be [[Wikipedia:Merging|merged]] with {{Pagelist|nspace=all|delim=''|OtherPage|||||||||||||||||||}}{{#if:|&nbsp;to ''[[:{{{target}}}|{{{target}}}]]''|}}. ([[:{{TALKPAGENAME}}|Discuss]]){{#if:October 2017|<small>'' Proposed since October 2017.''</small>}}
}}{{Merge partner|OtherPage}}
 
}}
 
When you want to discuss a simple merge of one page into another, tag both of them:
{{markup
|<nowiki>{{Merge to |FirstPage |date=</nowiki>{{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki> }}
or
{{Merge to |FirstPage |{{subst:DATE}} }}</nowiki>
|{{Mbox
|name = Merge to
|demospace=
|type = move
|image=[[File:Merge-arrow.svg|alt=|link=]]
|text=It has been suggested that this {{#if:|section|{{#if:{{NAMESPACE}}|page|article}}}} be [[Wikipedia:Merging|merged]] into {{#if:|&nbsp;''[[:{{NAMESPACE}}:{{{target}}}|{{{target}}}]]''|{{Pagelist|nspace=all|delim=''|FirstPage|||||||||||||||||||}}}}. ([[{{TALKPAGENAME:FirstPage}}|Discuss]]){{#if:October 2017|<small>'' Proposed since October 2017.''</small>}}
}}{{Merge partner|FirstPage}}
 
}}
 
{{markup
|<nowiki>{{Merge from |SecondPage |date=</nowiki>{{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki> }}
or
{{Merge from |SecondPage |{{subst:DATE}} }}</nowiki>
|{{Mbox
| name  = Merge from
| demospace=
| type  = move
| image = [[File:Mergefrom.svg|50px|alt=|link=]]
| text  = It has been suggested that {{#ifeq:{{{multiplesections}}}|yes|multiple sections of&nbsp;}}{{Pagelist|nspace=all|delim=''|SecondPage|||||||||||||||||||}} be [[Wikipedia:Merging|merged]] into this {{#if:|section|{{#if:{{NAMESPACE}}|page|article}}}}. ([[{{TALKPAGENAME}}|Discuss]]){{#if:October 2017|<small>'' Proposed since October 2017.''</small>}}
}}{{Merge partner|SecondPage}}
 
}}
 
This allows editors at both pages to see both the proposed source and target.
 
===Other options===
By default, the {{Color|#002BB8|Discuss}} link on the template links to the top of the destination page's [[Help:Talk pages|talk page]]. To specify which section, or to name a different talk page entirely, use the {{para|discuss}} parameter:


To list multiple pages, separate them with a pipe:
: {{tlx|{{BASEPAGENAME}} |OtherPage&nbsp;|discuss{{=}}Talk:OtherPage#Merger discussion&nbsp;|date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}


:<code><nowiki>{{merge | OtherPage1 | OtherPage2 | OtherPage3 }}</nowiki></code>
To name multiple pages to be merged, simply separate them with a vertical pipe. You can add up to 20 articles to be merged:


The "discuss" by default links to the Talk: page of the page the template is transcluded in; to override, use a parameter named <code>discuss</code>; e.g.:
: {{tlx|{{BASEPAGENAME}} |OtherPage1&nbsp;|OtherPage2&nbsp;|OtherPage3&nbsp;|discuss{{=}}Talk:OtherPage#Merger discussion&nbsp;|date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}
:<code><nowiki>{{merge | Otherpage1 | Otherpage2 | Otherpage3 | discuss=Talk:Otherpage2#Merge-discussion-sectiontitle }}</nowiki></code>


All uses of this template should be accompanied with a date and month via the <code>date</code> parameter. For example:
{{#ifeq:{{BASEPAGENAME}}|Merge|To name multiple pages to merge ''into'' a single page, use the {{para|target}} parameter. For example, to merge the tagged page, as well as OtherPage1, OtherPage2, and OtherPage3 into OtherPage4, use:


:<code><nowiki>{{merge | Otherpage | date=September 2009 }}</nowiki></code>
: {{tlx|{{BASEPAGENAME}} |OtherPage1&nbsp;|OtherPage2&nbsp;|OtherPage3&nbsp;|target{{=}}OtherPage4&nbsp;|discuss{{=}}Talk:OtherPage#Merger discussion&nbsp;|date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}}}<!-- ifeq end -->


==Redirects==
If you are placing the template in a section, you can use {{para|section|yes}} to change the wording to reflect this:
<!--regex Merge-multiple|Mergesplit|MergeSplit|Multiplemergeinto|Mergemulti|Multimerge -->
: {{tlx|{{BASEPAGENAME}} |OtherPage&nbsp;|discuss{{=}}Talk:OtherPage#Merger discussion&nbsp;|date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}}&nbsp;|section{{=}}yes}}
#{{Tl|Merge-multiple}}
#{{Tl|Mergesplit}}
#{{Tl|MergeSplit}}
#{{Tl|Multiplemergeinto}}
#{{Tl|Mergemulti}}
#{{Tl|Multimerge}}


{{Wikipedia:Template messages/Merging and splitting/List}}
* '''Do not link to the pages''' with square brackets. <br>For example, write {{Tlx|Merge|OtherArticle}}, not {{Tlx|Merge|&#91;&#91;OtherArticle&#93;&#93;}}.
* If you don't supply a date, a [[WP:Bots|bot]] will add it later.
* The date ''may not'' be shown in the box. Do not be concerned about this. It is used when grouping tagged pages together into categories by date.
* These templates will add tagged articles to [[:Category:Articles to be merged]], while non-articles (files, templates, etc.) will be added to [[:Category:Items to be merged]].
* For {{tl|Merge}}, if you are specifying a merge of two or more pages in different namespaces, the template supports this via specification of the ''full'' page name, including the namespace prefix. {{para|nspace}} can take on namespace values, which fixes all params to the namespace specified.
* Do not <code>[[WP:Substitution|subst:]]</code> these templates.


<includeonly>
==When to remove==
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Wikipedia:There is no deadline|There is no deadline]] for completing proposed merges.  Pages that have been tagged for a long time (frequently more than one year) generally fall into these groups:
[[Category:Merge templates|{{PAGENAME}}]]


<!-- ADD INTERWIKIS BELOW THIS LINE -->
;Discussion supported the proposed merge, but no one did it yet:  Feel free to merge the pages yourself.
;Discussion opposed merge, but nobody removed the tags:  Feel free to remove the tags yourself.
;No discussion found:  Feel free to remove the tags if you believe the merge would be a poor choice, or to boldly merge the pages if you believe the merge would be appropriate.  Or feel free to start a discussion if you are uncertain or feel it would be controversial.


</includeonly>
==TemplateData==
{{#switch: {{PAGENAME}}
|Merge/doc
|Merge =
{{TemplateData header|Merge}}
<templatedata>
{
"description": "This is a hatnote template that proposes to merge the page it is applied to into one or more other pages.",
"format": "inline",
"params": {
"1": {
"label": "Other page",
"description": "This is the page into which this article should be merged. Note: 19 additional pages to merge can be added manually as optional parameters.",
"type": "wiki-page-name",
"required": true
},
"2": {
"label": "Second page",
"description": "Second page to be involved in the merger",
"type": "wiki-page-name"
},
"3": {
"label": "Third page",
"description": "Third page to be involved in the merger",
"type": "wiki-page-name"
},
"target": {
"label": "Target page",
"description": "When listing several pages to merge, name one proposed target page for the merger with this parameter.",
"type": "wiki-page-name"
},
"date": {
"label": "Month and year",
"description": "The month and year that the template was placed (in full). \"{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}\" inserts the current month and year automatically.",
"type": "line",
"autovalue": "{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}",
"example": "January 2013",
"suggested": true
},
"discuss": {
"label": "Discussion",
"type": "wiki-page-name",
"aliases": ["discussion"],
"description": "Discussion related to the merge proposal; typically on the talk page for the target (other) page. Insert the full page name (with namespace)."
},
"section": {
"label": "Section",
"type": "line",
"description": "If you are placing the template in a section, set this parameter to \"yes\"."
},
"nspace": {
"label": "Page(s) namespace",
"type": "line",
"description": "Optional namespace of the pages involved in the merger (though not the target page, if specified). Default is \"all\", which allows specifying pages across multiple namespaces for merge. Can be customized according to the accepted nspace values at Template:Pagelist."
}
},
"paramOrder": [
"1",
"2",
"3",
"target",
"date",
"discuss",
"section",
"nspace"
]
}
</templatedata>
}}
{{#switch: {{PAGENAME}}
|Merge/doc
|Merge to =
{{TemplateData header|Merge to}}
<templatedata>
{
"description": "This is a hatnote template that proposes to merge the page it is applied into one or more specified pages. Use 'merge from' to tag the target page(s).",
"format": "inline",
"params": {
"1": {
"label": "Other page",
"description": "This is the page into which this article should be merged. Note: 19 additional pages to merge into can be added manually as optional parameters.",
"type": "wiki-page-name",
"required": true
},
"2": {
"label": "Second page",
"description": "Second page that the article should be merged into",
"type": "wiki-page-name"
},
"3": {
"label": "Third page",
"description": "Third page that the article should be merged into",
"type": "wiki-page-name"
},
"date": {
"label": "Month and year",
"description": "The month and year that the template was placed (in full). \"{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}\" inserts the current month and year automatically.",
"type": "line",
"autovalue": "{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}",
"example": "January 2013",
"suggested": true
},
"discuss": {
"label": "Discussion",
"aliases": ["discussion"],
"description": "Discussion related to the merge proposal; typically on the talk page for the target (other) page. Insert the full page name (with namespace).",
"type": "wiki-page-name"
},
"section": {
"label": "Section",
"description": "If you are placing the template in a section, set this parameter to \"yes\".",
"type": "line"
}
},
"paramOrder": [
"1",
"2",
"3",
"date",
"discuss",
"section"
]
}
</templatedata>
}}
{{#switch: {{PAGENAME}}
|Merge/doc
|Merge from =
{{TemplateData header|Merge from}}
<templatedata>
{
"description": "This is a hatnote template that proposes to merge one or more specified pages into the tagged page. Use 'merge to' to tag the source page(s).",
"format": "inline",
"params": {
"1": {
"label": "Other page",
"description": "This is the page from which content should be merged into this article. Note: 19 additional pages to merge from can be added manually as optional parameters.",
"type": "wiki-page-name",
"required": true
},
"2": {
"label": "Second page",
"description": "Second page that should be merged into this article",
"type": "wiki-page-name"
},
"3": {
"label": "Third page",
"description": "Third page that should be merged into this article",
"type": "wiki-page-name"
},
"date": {
"label": "Month and year",
"description": "The month and year that the template was placed (in full). \"{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}\" inserts the current month and year automatically.",
"type": "line",
"autovalue": "{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}",
"example": "January 2013",
"suggested": true
},
"discuss": {
"label": "Discussion",
"aliases": ["discussion"],
"description": "Discussion related to the merge proposal; typically on the talk page for the target page. Insert the full page name (with namespace).",
"type": "wiki-page-name"
},
"section": {
"label": "Section",
"description": "If you are placing the template in a section, set this parameter to \"yes\".",
"type": "line"
}
},
"paramOrder": [
"1",
"2",
"3",
"date",
"discuss",
"section"
]
}
</templatedata>
}}
{{Wikipedia:Template messages/Splitting/List}}{{Wikipedia:Template messages/Merging/List|noheading=yes}}<includeonly>{{sandbox other||
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:Merge templates]]
[[Category:Exclude in print]]
}}</includeonly>

Latest revision as of 04:45, 3 September 2020

{{Wikipedia:Article alerts/Bot use warning}}

Which merge template should I use?

Do not use this tag on a Wikipedia WP:template or WP:category—instead see below for instructions.

  • To merge at least two articles together at an unspecified location, use {{Merge|OtherPage}}
  • To merge the contents of the tagged article into the specified article, use {{Merge to|OtherPage}}
  • If the contents of the specified article should be merged into the tagged article, use {{Merge from|OtherPage}} – the opposite of {{Merge to}};
  • To suggest merging only some material from one article to another, use {{Merge portions from|SourcePage}} and {{Split portions|TargetPage}}

When to use and when not to use

These templates are used primarily to identify potential merges that would benefit from discussion. If it is obvious that a merge would be appropriate, then you may boldly merge the pages yourself without tagging and without discussion. Some editors also use these tags to mark pages that obviously require merging in the hope that someone else will merge the pages.

After adding the merge template, you are expected to create a section on the talk page of the appropriate article (see below for details) explaining your rationale for the merge proposal. If the rationale is so obvious that it requires no explanation, then you should consider boldly merging the pages yourself, or explain on the talk page why you didn't do so yourself.

How to use

Simple example

Tagging a single page is simple:

Markup Renders as
{{Merge|OtherPage |date=November 2024 }}
or
{{Merge |OtherPage |{{subst:DATE}} }}

When you want to discuss a simple merge of one page into another, tag both of them:

Markup Renders as
{{Merge to |FirstPage |date=November 2024 }}
or
{{Merge to |FirstPage |{{subst:DATE}} }}
Markup Renders as
{{Merge from |SecondPage |date=November 2024 }}
or
{{Merge from |SecondPage |{{subst:DATE}} }}

This allows editors at both pages to see both the proposed source and target.

Other options

By default, the Discuss link on the template links to the top of the destination page's talk page. To specify which section, or to name a different talk page entirely, use the |discuss= parameter:

{{Merge|OtherPage |discuss=Talk:OtherPage#Merger discussion |date=November 2024}}

To name multiple pages to be merged, simply separate them with a vertical pipe. You can add up to 20 articles to be merged:

{{Merge|OtherPage1 |OtherPage2 |OtherPage3 |discuss=Talk:OtherPage#Merger discussion |date=November 2024}}

To name multiple pages to merge into a single page, use the |target= parameter. For example, to merge the tagged page, as well as OtherPage1, OtherPage2, and OtherPage3 into OtherPage4, use:

{{Merge|OtherPage1 |OtherPage2 |OtherPage3 |target=OtherPage4 |discuss=Talk:OtherPage#Merger discussion |date=November 2024}}

If you are placing the template in a section, you can use |section=yes to change the wording to reflect this:

{{Merge|OtherPage |discuss=Talk:OtherPage#Merger discussion |date=November 2024 |section=yes}}
  • Do not link to the pages with square brackets.
    For example, write {{Merge|OtherArticle}}, not {{Merge|[[OtherArticle]]}}.
  • If you don't supply a date, a bot will add it later.
  • The date may not be shown in the box. Do not be concerned about this. It is used when grouping tagged pages together into categories by date.
  • These templates will add tagged articles to Category:Articles to be merged, while non-articles (files, templates, etc.) will be added to Category:Items to be merged.
  • For {{Merge}}, if you are specifying a merge of two or more pages in different namespaces, the template supports this via specification of the full page name, including the namespace prefix. |nspace= can take on namespace values, which fixes all params to the namespace specified.
  • Do not subst: these templates.

When to remove

There is no deadline for completing proposed merges. Pages that have been tagged for a long time (frequently more than one year) generally fall into these groups:

Discussion supported the proposed merge, but no one did it yet
Feel free to merge the pages yourself.
Discussion opposed merge, but nobody removed the tags
Feel free to remove the tags yourself.
No discussion found
Feel free to remove the tags if you believe the merge would be a poor choice, or to boldly merge the pages if you believe the merge would be appropriate. Or feel free to start a discussion if you are uncertain or feel it would be controversial.

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for this template in articles based on this TemplateData.

TemplateData for Merge

This is a hatnote template that proposes to merge the page it is applied to into one or more other pages.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Other page1

This is the page into which this article should be merged. Note: 19 additional pages to merge can be added manually as optional parameters.

Page namerequired
Second page2

Second page to be involved in the merger

Page nameoptional
Third page3

Third page to be involved in the merger

Page nameoptional
Target pagetarget

When listing several pages to merge, name one proposed target page for the merger with this parameter.

Page nameoptional
Month and yeardate

The month and year that the template was placed (in full). "{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}" inserts the current month and year automatically.

Example
January 2013
Auto value
{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}
Linesuggested
Discussiondiscuss discussion

Discussion related to the merge proposal; typically on the talk page for the target (other) page. Insert the full page name (with namespace).

Page nameoptional
Sectionsection

If you are placing the template in a section, set this parameter to "yes".

Lineoptional
Page(s) namespacenspace

Optional namespace of the pages involved in the merger (though not the target page, if specified). Default is "all", which allows specifying pages across multiple namespaces for merge. Can be customized according to the accepted nspace values at Template:Pagelist.

Lineoptional
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for this template in articles based on this TemplateData.

TemplateData for Merge to

This is a hatnote template that proposes to merge the page it is applied into one or more specified pages. Use 'merge from' to tag the target page(s).

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Other page1

This is the page into which this article should be merged. Note: 19 additional pages to merge into can be added manually as optional parameters.

Page namerequired
Second page2

Second page that the article should be merged into

Page nameoptional
Third page3

Third page that the article should be merged into

Page nameoptional
Month and yeardate

The month and year that the template was placed (in full). "{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}" inserts the current month and year automatically.

Example
January 2013
Auto value
{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}
Linesuggested
Discussiondiscuss discussion

Discussion related to the merge proposal; typically on the talk page for the target (other) page. Insert the full page name (with namespace).

Page nameoptional
Sectionsection

If you are placing the template in a section, set this parameter to "yes".

Lineoptional
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for this template in articles based on this TemplateData.

TemplateData for Merge from

This is a hatnote template that proposes to merge one or more specified pages into the tagged page. Use 'merge to' to tag the source page(s).

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Other page1

This is the page from which content should be merged into this article. Note: 19 additional pages to merge from can be added manually as optional parameters.

Page namerequired
Second page2

Second page that should be merged into this article

Page nameoptional
Third page3

Third page that should be merged into this article

Page nameoptional
Month and yeardate

The month and year that the template was placed (in full). "{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}" inserts the current month and year automatically.

Example
January 2013
Auto value
{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}
Linesuggested
Discussiondiscuss discussion

Discussion related to the merge proposal; typically on the talk page for the target page. Insert the full page name (with namespace).

Page nameoptional
Sectionsection

If you are placing the template in a section, set this parameter to "yes".

Lineoptional

{{Wikipedia:Template messages/Splitting/List}}{{Wikipedia:Template messages/Merging/List|noheading=yes}}