Difference between revisions of "Template:Incubator/doc"

From blackwiki
Jump to navigation Jump to search
imported>Dcljr
(makes no sense to use French in the example — change to a language that actually has a test wiki; other copyediting)
imported>Amire80
(+ TemplateData)
 
(One intermediate revision by one other user not shown)
Line 11: Line 11:
 
For example, the Assamese Wikibooks would be <code><nowiki>{{Incubator|as|wikibooks}}</nowiki></code> or <code><nowiki>{{Incubator|as|wikibooks|lang=Assamese}}</nowiki></code>, depending on where the template is used.
 
For example, the Assamese Wikibooks would be <code><nowiki>{{Incubator|as|wikibooks}}</nowiki></code> or <code><nowiki>{{Incubator|as|wikibooks|lang=Assamese}}</nowiki></code>, depending on where the template is used.
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
+
<includeonly>{{Sandbox other||
 
[[Category:Interwiki link templates|{{PAGENAME}}]]
 
[[Category:Interwiki link templates|{{PAGENAME}}]]
  
 
}}</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