Template:Code/doc: Difference between revisions

Content deleted Content added
No edit summary
ExE Boss (talk | contribs)
Line 62:
</div>
The above example shows the HTML rendered by the citation template, including the hidden metadata.
 
== TemplateData ==
{{Format TemplateData|<templatedata>
{
"description": "An inline source code string.",
"format": "inline",
"params": {
"1": {
"label": "Code",
"aliases": ["code"],
"description": "The code to display.",
"required": true,
"type": "string"
},
"2": {
"label": "Language",
"aliases": ["lang"],
"description": "The programming language of the source code. List of valid values is at: [[mw:Extension:SyntaxHighlight#Supported_languages]]",
"default": "text",
"suggested": true,
"type": "string"
},
"class": {
"label": "Class",
"type": "string"
},
"id": {
"label": "ID",
"type": "string"
},
"style": {
"label": "CSS Style",
"type": "string"
}
}
}
</templatedata>}}
 
== See also ==