Difference between revisions of "Template:Merge to"

From Second Life Wiki
Jump to navigation Jump to search
m (Testing with "nspace=main" again...)
Tag: Manual revert
m (Fixing extraneous [[}})
Line 1: Line 1:
<!--{{Merge to}} begin-->{{#switch:{{NAMESPACE}}
<!--{{Merge to}} begin-->{{#ifeq:{{NAMESPACE}}|Category
|Category=<span class="error">For categories please use the templates available at [[Wikipedia:Categories for discussion]].</span>
|<span class="error">For categories please use the templates available at [[Wikipedia:Categories for discussion]].</span>
|Template=<includeonly><span class="error">For templates please use the templates available at [[Wikipedia:Templates for discussion]].</span>[[Category:Pages with templates in the wrong namespace]]</includeonly>
}}{{#ifeq:{{NAMESPACE}}|Template
|<includeonly><span class="error">For templates please use the templates available at [[Wikipedia:Templates for discussion]].</span>[[Category:Pages with misplaced templates]]</includeonly>
}}{{Mbox
}}{{Mbox
|name = Merge to
|demospace={{{demospace|}}}
|demospace={{{demospace|}}}
|type = move
|type = move
|image=[[File:Merge-arrow@3.png|50px|alt=|link=]]
|image=[[File:Merge-arrow@3.png|alt=|link=]]
|text=It has been suggested that this {{#if:{{{section|}}}|section|{{#if:{{NAMESPACE}}|page|article}}}} be [[Wikipedia:Merging|merged]] into {{Pagelist|nspace=main|delim=''|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|{{{9|}}}|{{{10|}}}|{{{11|}}}|{{{12|}}}|{{{13|}}}|{{{14|}}}|{{{15|}}}|{{{16|}}}|{{{17|}}}|{{{18|}}}|{{{19|}}}|{{{20|}}}}}. ([[{{{discussion|{{{discuss|{{TALKPAGENAME:{{{1}}}}}}}}}}}|Discuss]]){{#if:{{{date<includeonly>|</includeonly>}}}|<small>'' Proposed since {{{date<includeonly>|</includeonly>}}}.''</small>}}
|text=It has been suggested that this {{#if:{{{section|}}}|section|{{#if:{{NAMESPACE}}|page|article}}}} be [[Wikipedia:Merging|merged]] into {{#if:{{{target|}}}|&nbsp;''[[:{{NAMESPACE}}:{{{target}}}|{{{target}}}]]''|{{Pagelist|delim=''|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|{{{9|}}}|{{{10|}}}|{{{11|}}}|{{{12|}}}|{{{13|}}}|{{{14|}}}|{{{15|}}}|{{{16|}}}|{{{17|}}}|{{{18|}}}|{{{19|}}}|{{{20|}}}}}}}. ([[{{{discuss|{{TALKPAGENAME:{{{1}}}}}}}}|Discuss]]){{#if:{{{date<includeonly>|</includeonly>}}}|<small>'' Proposed since {{{date<includeonly>|</includeonly>}}}.''</small>}}
<includeonly>{{#switch:{{NAMESPACE}}
<includeonly>{{#switch:{{NAMESPACE}}
||Talk={{DMC|Articles to be merged|from|{{{date|}}}|All articles to be merged}}
||Talk={{DMC|Articles to be merged|from|{{{date|}}}|All articles to be merged}}
|User|User talk=
|#default={{DMC|||Items to be merged}}}}
|#default={{#if:{{{demospace|}}}||{{DMC|||Miscellany to be merged}}}}}}{{Merge partner|{{{1|}}}}}</includeonly>
{{Merge partner|{{{1|{{{target}}}}}}}}
</includeonly><!--{{Merge to}} end-->
}}<noinclude>
}}<noinclude>
<!--{{Documentation|Template:Merge/doc}}-->
{{Documentation|Template:Merge/doc}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Revision as of 16:38, 12 September 2022

[Edit] [🔄Purge] Template-info.png Template documentation

Usage

{
	"description": "Template used to propose merging a page with another",
    "format": "inline",
	"params": {
		"1": {
			"description": "merge target",
			"example": "1=Tag:highway=primary",
			"type": "wiki-page-name",
			"required": true
		},
		"2": {
			"description": "discussion page name if not equal to the discussion page of the page the template is placed on",
			"example": "Talk:Wiki / 2=Tag:highway=motorway",
			"type": "wiki-page-name"
		},
		"lang": {
			"description": "language code, use if the language inferred from the page title is not correct",
			"example": "uk",
			"type": "string",
			"default": "en"
		},
		"nocat": {
			"description": "insert any text to switch off categorisation, useful for wiki manuals like \"Wiki organisation\"",
			"type": "string"
		},
		"date": {
			"description": "merge proposal date (if known)",
			"type": "date"
		}
	}
}
  • First parameter: the page this page should be merged with
  • Second parameter (optional): talk page, if different from the default talk page associated to the page tagged with this banner

If the target page name contains an equal sign, prefix the page name with "1=", for example (taken from OpenStreetMap): {{Merge|1= Tag:highway=primary }}

The marked page will be categorized in Category:Suggested merges.

See also

  • {{Mbox}} – basis of this template