Template:Merge/doc

From BioPerl
Jump to: navigation, search

{{#ifeq: merge/doc | doc

 | 

{{

   #ifeq: show | show
   | {{
 {{#switch:
 {{#if: 
   | 
   | {{#if: 
     | 
       {{#ifeq:|
       | talk
       |  
       }}
     | 
       {{#ifeq:template|template talk
       | talk
       | template 
       }}
     }}
   }}

| main | = ambox | talk = tmbox | user = ombox | wikipedia = ombox | file | image = imbox | mediawiki = ombox | template = ombox | help = ombox | category = cmbox | portal = ombox | book = ombox | other | #default = ombox

}} | type = notice | image = 40px | imageright = | style = | textstyle = | text = This is a documentation subpage for Template:Merge/doc.
It contains usage information, categories, interlanguage links and other content that is not part of the original {{ #if: | {{{text2}}} | {{ #if: | {{{text1}}} | {{ #ifeq: Template | User | template template page | {{ #if: Template |template page|article}}}}}}}}. | small = | smallimage = | smallimageright = | smalltext = }}

   }}{{
   #if: 
   | 
   | [[Category:{{
     #if: Template
     | Template
     | Article
   }} documentation {{#ifeq:Template|Template|pages}}]]
 }}

| }}

Which merge template should I use?

|{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} – to merge at least two together at an unspecified location

|{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} – to merge the contents of the tagged article into the specified article.

|{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} – the opposite of {{{{#if:|subst:}}Merge to{{#if:| |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}}; the contents of the specified article should be merged into the tagged article.

Usage

Tagging a single page is simple:

{{{{#if:|subst:}}Merge/doc {{#if:OtherPage |

|OtherPage  }}{{#if:date=March 2013 | |date=March 2013 }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}}

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 |{{#if:discuss|discuss=|}} parameter:

{{{{#if:|subst:}}Merge/doc {{#if:OtherPage |

|OtherPage  }}{{#if:discuss=Talk:OtherPage#Merge discussion | |discuss=Talk:OtherPage#Merge discussion  }}{{#if:date=March 2013 | |date=March 2013 }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}}

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

{{{{#if:|subst:}}Merge/doc {{#if:OtherPage1 |

|OtherPage1  }}{{#if:OtherPage2 | |OtherPage2  }}{{#if:OtherPage3 | |OtherPage3  }}{{#if:discuss=Talk:OtherPage#Merge discussion | |discuss=Talk:OtherPage#Merge discussion  }}{{#if:date=March 2013 | |date=March 2013 }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}}

{{#ifeq:Merge/doc|Merge|To name multiple pages to merge into a single page, use the |{{#if:target|target=|}} parameter. For example, to merge the tagged page, as well as OtherPage1, OtherPage2, and OtherPage3 into OtherPage4, use:

{{{{#if:|subst:}}Merge/doc {{#if:OtherPage1 |

|OtherPage1  }}{{#if:OtherPage2 | |OtherPage2  }}{{#if:OtherPage3 | |OtherPage3  }}{{#if:target=OtherPage4 | |target=OtherPage4  }}{{#if:discuss=Talk:OtherPage#Merge discussion | |discuss=Talk:OtherPage#Merge discussion  }}{{#if:date=March 2013 | |date=March 2013 }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}}}}

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 {{{{#if:|subst:}}Merge{{#if:OtherTemplate|

|OtherTemplate }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}}, not {{{{#if:|subst:}}Merge{{#if:Template:OtherTemplate| |Template:OtherTemplate }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}}.

  • Do not link to the pages with square brackets.
For example, write {{{{#if:|subst:}}Merge{{#if:OtherArticle|

|OtherArticle }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}}, not {{{{#if:|subst:}}Merge{{#if:[[OtherArticle]]| |[[OtherArticle]] }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}}.

  • 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.

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


Personal tools
Namespaces
Variants
Actions
Main Links
documentation
community
development
Toolbox