Template:C/doc: Difference between revisions

From Campaigns
Jump to navigation Jump to search
TemplateData: Update “suggestedvalues” for the `nsp` parameter
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
{{TemplateData header|Category link}}
<templatedata>
{
"description": "Creates a link to a category in the user’s language.",
"format": "inline",
"params": {
"1": {
"label": "Category",
"description": "The name of the category (The “Category:” prefix may be omitted)",
"required": true,
"type": "string",
"autovalue": ""
},
"2": {
"label": "Displayed Text",
"description": "The displayed text",
"type": "line"
},
"nsp": {
"label": "Namespace?",
"description": "Whether to display the “Category:” namespace prefix, defaults to whether parameter 1 includes the “Category:” prefix.",
"suggestedvalues": [
"0",
"1",
"¬"
],
"default": "{{#ifeq:{{NAMESPACENUMBER:{{{1}}}|14|1|0}}}}",
"autovalue": "0",
"type": "boolean"
}
}
}
</templatedata>


== Examples ==
== Examples ==

Latest revision as of 23:14, 14 February 2022

Examples

No |nsp= parameter
|nsp=0
|nsp=1