Difference between revisions of "Template:Incubator/doc"

From blackwiki
Jump to navigation Jump to search
imported>Vanisaac
m (→‎Usage: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
imported>Amire80
(+ TemplateData)
 
Line 15: Line 15:
  
 
}}</includeonly>
 
}}</includeonly>
 +
<templatedata>
 +
{
 +
"params": {
 +
"1": {
 +
"label": "Language code",
 +
"type": "line",
 +
"required": true
 +
},
 +
"2": {
 +
"label": "Project",
 +
"description": "Valid values: wikipedia, wiktionary, wikibooks, wikinews, wikiquote",
 +
"type": "line"
 +
},
 +
"lang": {
 +
"description": "Language name, if different from the article name"
 +
}
 +
},
 +
"paramOrder": [
 +
"1",
 +
"2",
 +
"lang"
 +
]
 +
}
 +
</templatedata>

Latest revision as of 09:29, 27 June 2020

Usage

This is to be placed at the end of a language article (in the External links section, just before the first link), in the same way as the {{InterWiki}} template is used now, but for test Wikipedias on Incubator.

  • Type {{Incubator|languagecode}} for test Wikipedias
  • If the test is not a Wikipedia, type {{Incubator|languagecode|projectname}}
  • If the language name differs from the name of the article, add |lang=languagename

For example, the Assamese Wikibooks would be {{Incubator|as|wikibooks}} or {{Incubator|as|wikibooks|lang=Assamese}}, depending on where the template is used.


No description.

Template parameters

ParameterDescriptionTypeStatus
Language code1

no description

Linerequired
Project2

Valid values: wikipedia, wiktionary, wikibooks, wikinews, wikiquote

Lineoptional
Langlang

Language name, if different from the article name

Unknownoptional