Template:Merge/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>DESiegel
→‎Usage: correct description of default discuss location
meta>Funandtrvl
m copy-edit for readability
Line 1: Line 1:
<noinclude>{{template doc page viewed directly}}</noinclude>
{{Documentation subpage}}
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->


== Which merge template should I use? ==
== Which merge template should I use? ==
 
* {{tlx|Merge}} &ndash; to merge at least two together at an unspecified location
* {{tl|Merge}} &mdash; to merge at least two together at an unspecified location
* {{tlx|Mergeto}} &ndash; to merge the contents of the tagged article ''into'' the specified article.
* {{tl|Mergeto}} &mdash; to merge the contents of the tagged article ''into'' the specified article.
* {{tlx|Mergefrom}} &ndash; the opposite of {{tlx|Mergeto}}; the contents of the specified article should be merged into the tagged article.
* {{tl|Mergefrom}} &mdash; the opposite of {{tl|Mergeto}}; the contents of the specified article should be merged into the tagged article.


== Usage ==
== Usage ==
Tagging a single page is simple:
Tagging a single page is simple:


: <code>{{tlx|{{BASEPAGENAME}} | OtherPage | date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}</code>
: <code>{{tlx|{{BASEPAGENAME}} |OtherPage&nbsp;|date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}</code>


By default, the {{Color|#002BB8|Discuss}} link on the template links to the top of the destination page's [[Help:Talk page|talk page]]. To specify which section, or to name a different talk page entirely, use the {{para|discuss}} parameter:


By default, the {{Color|#002BB8|Discuss}} link on the template links to the top of the destination page's [[Wikipedia:Talk page|talk page]]. To specify which section, or to name a different talk page entirely, use the <code>discuss</code> parameter:
: <code>{{tlx|{{BASEPAGENAME}} |OtherPage&nbsp;|discuss{{=}}Talk:OtherPage#Merge discussion&nbsp;|date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}</code>


: <code>{{tlx|{{BASEPAGENAME}} | OtherPage | discuss{{=}}Talk:OtherPage#Merge discussion | date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}</code>
To name other pages to be merged, simply separate them with a vertical pipe. You can add up to 20 articles to be merged:


: <code>{{tlx|{{BASEPAGENAME}} |OtherPage1&nbsp;|OtherPage2&nbsp;|OtherPage3&nbsp;|discuss{{=}}Talk:OtherPage#Merge discussion&nbsp;|date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}</code>


To name other pages to be merged, simply separate them with a vertical pipe. You can add up to 20 articles to be merged.
{{#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>{{tlx|{{BASEPAGENAME}} | OtherPage1 | OtherPage2 | OtherPage 3 | discuss{{=}}Talk:OtherPage#Merge discussion | date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}</code>
: <code>{{tlx|{{BASEPAGENAME}} |OtherPage1&nbsp;|OtherPage2&nbsp;|OtherPage3&nbsp;|target{{=}}OtherPage4&nbsp;|discuss{{=}}Talk:OtherPage#Merge discussion&nbsp;|date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}</code>}}<!-- ifeq end -->


{{#ifeq:{{BASEPAGENAME}}|Merge|To name multiple pages to merge ''into'' a single page, use the <code>target</code> parameter. For example, to merge the tagged page, as well as OtherPage1, OtherPage2, and OtherPage3 into OtherPage4, use:
: <code>{{tlx|{{BASEPAGENAME}} | OtherPage1 | OtherPage2 | OtherPage3 | target{{=}}OtherPage4 | discuss{{=}}Talk:OtherPage#Merge discussion | date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}</code>
<br />}}<!-- ifeq end -->
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]].
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]].


== Notes ==
== Notes ==
* 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 '''category''', you must do so at [[Wikipedia:Categories for discussion]], using the specific templates available there.


Line 51: Line 45:
<includeonly>
<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:Merge templates|{{PAGENAME}}]]
{{DEFAULTSORT:{{PAGENAME}}}}
[[Category:Merge templates]]
[[Category:Exclude in print]]
[[Category:Exclude in print]]



Revision as of 22:21, 30 January 2010

Which merge template should I use?

  • {{Merge}} – to merge at least two together at an unspecified location
  • {{Mergeto}} – to merge the contents of the tagged article into the specified article.
  • {{Mergefrom}} – the opposite of {{Mergeto}}; the contents of the specified article should be merged into the tagged article.

Usage

Tagging a single page is simple:

{{Merge|OtherPage |date=November 2024}}

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#Merge discussion |date=November 2024}}

To name other 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#Merge 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#Merge discussion |date=November 2024}}

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.

Notes

  • Do not add the namespace to the names of the pages.
For example, write {{Merge|OtherTemplate}}, not {{Merge|Template:OtherTemplate}}.
  • Do not link to the pages with square brackets.
For example, write {{Merge|OtherArticle}}, not {{Merge|[[OtherArticle]]}}.
  • The date will not be shown in the box. Do not be concerned about this. It is used when grouping tagged pages together into categories by date.

{{Wikipedia:Template messages/Merging and splitting/List}}