Difference between revisions of "Template:Merge"

From Second Life Wiki
Jump to navigation Jump to search
m (Replace automagic Wikipedia pseudo-categories with {{Wikipedia}} template; added the merge icon we've uploaded the other day)
(Added proposed date)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Wfmessage
{{#switch:{{NAMESPACE}}
| type = structural
|Category={{error|For categories please use the templates available at {{Wikipedia|Categories for discussion}}.}}
| image = Merge-arrow@3.png{{!}}alt=two merging arrows
|Template=<includeonly>{{error|For templates please use the templates available at {{Wikipedia|Templates for discussion}}.}}[[Category:Pages with templates in the wrong namespace]]</includeonly>
}}
{{#if:{{{1}}}|
{{Mbox
| name = Merge
| demospace={{{demospace|}}}
| type = move
| style = border-color:#00bfff;border-style:solid;border-width:1px;
| image=[[File:Merge-arrow@3.png|32px|alt=|link=]]
| text = {{LangSwitch | lang = {{#if: {{{lang|}}} | {{{lang|}}} | {{Langcode}} }}
| text = {{LangSwitch | lang = {{#if: {{{lang|}}} | {{{lang|}}} | {{Langcode}} }}
   | default = {{TranslateThis | lang = {{#if: {{{lang|}}} | {{{lang|}}} | {{Langcode}} }} | edit = Template:Merge
   | default = {{TranslateThis | lang = {{#if: {{{lang|}}} | {{{lang|}}} | {{Langcode}} }} | edit = Template:Merge
     |1 = It has been proposed that this page or section be {{Wikipedia|Merging|merged}} with ''[[{{{1}}}]]''. ([[{{{2|:{{NAMESPACE}} talk:{{{discuss|{{PAGENAME}}}}}}}}|Discuss]])<includeonly>[[{{LL|Category:Suggested merges}}]]</includeonly>
     |1 = It has been proposed that this page or section be {{Wikipedia|Merging|merged}} with ''[[{{{1}}}]]''. ([[{{{2|:{{NAMESPACE}} talk:{{{discuss|{{PAGENAME}}}}}}}}|Discuss]])<includeonly>[[{{LLS|Category:Suggested merges}}]]</includeonly>
     }}
     }}
   | cs = Bylo navrženo, aby se tato stránka nebo její část sloučila s ''[[{{{1}}}]]''. Více informací najdete na ([[{{{2|:{{NAMESPACE}} talk:{{{discuss|{{PAGENAME}}}}}}}}|diskusní stránce]])
   | cs = Bylo navrženo, aby se tato stránka nebo její část sloučila s ''[[{{{1}}}]]''. Více informací najdete na ([[{{{2|:{{NAMESPACE}} talk:{{{discuss|{{PAGENAME}}}}}}}}|diskusní stránce]])
Line 18: Line 26:
   | ru = Было предложено чтобы эта статья или её часть были совмещены с ''[[{{{1}}}]]''. ([[{{{2|:{{NAMESPACE}} talk:{{{discuss|{{PAGENAME}}}}}}}}|Обсудить]])
   | ru = Было предложено чтобы эта статья или её часть были совмещены с ''[[{{{1}}}]]''. ([[{{{2|:{{NAMESPACE}} talk:{{{discuss|{{PAGENAME}}}}}}}}|Обсудить]])
   | zh-hans = 有用户提议将此页面或部分与''[[{{{1}}}]]''合并。([[{{{2|:{{NAMESPACE}} talk:{{{discuss|{{PAGENAME}}}}}}}}|讨论]])
   | zh-hans = 有用户提议将此页面或部分与''[[{{{1}}}]]''合并。([[{{{2|:{{NAMESPACE}} talk:{{{discuss|{{PAGENAME}}}}}}}}|讨论]])
   }}
   }}<!-- untranslated bit for now -->{{#if:{{{date<includeonly>|</includeonly>}}}|{{small|{{em| <wbr>Proposed since {{{date<includeonly>|</includeonly>}}}.}}}}}}
<includeonly>
| nocat = {{{nocat|}}}
| nocat = {{{nocat|}}}
| categories = <includeonly>{{LangSwitch | lang = {{#if: {{{lang|}}} | {{{lang|}}} | {{Langcode}} }}
| categories = <includeonly>{{LangSwitch | lang = {{#if: {{{lang|}}} | {{{lang|}}} | {{Langcode}} }}
Line 26: Line 35:
   | ja = [[Category:JA:統合の提案中]]
   | ja = [[Category:JA:統合の提案中]]
   | pl = [[Category:Pl:Sugerowane scalenia]]
   | pl = [[Category:Pl:Sugerowane scalenia]]
   | default = [[{{LL|Category:Suggested merges}}]]
   | default = [[{{LLS|Category:Suggested merges}}]]
   }}</includeonly>
   }}</includeonly>
}}<noinclude>{{Documentation}}</noinclude>
}}<!--
-->|{{error:Missing page name to merge}}<!--
-->}}<!-- end if--><noinclude>{{Documentation}}</noinclude>

Latest revision as of 05:24, 19 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