Template:Code: Difference between revisions

From All Skies Encyclopaedia
imported>Edokter
(allow class, id and style, like other shortcut templates.)
imported>Jonesey95
(rm completely unused id parameter to avoid duplicate blank ids on pages with multiple transclusions)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<code {{#if:{{{class|}}}|class="{{{class}}}"}} {{#if:{{{id|}}}|id="{{{id}}}"}} {{#if:{{{style|}}}|style="{{{style}}}"}}>{{#tag:syntaxhighlight|{{{code|{{{1}}}}}}|lang="{{{lang|{{{2|text}}}}}}"|enclose="none"}}</code><noinclude>
{{#tag:syntaxhighlight|{{{code|{{{1}}}}}}|lang={{{lang|{{{2|text}}}}}}|class={{{class|}}}|style={{{style|}}}|inline=1}}<noinclude>
{{documentation}}
{{documentation}}
<!-- Add categories to the /doc subpage, interwikis to Wikidata, not here -->
</noinclude>
</noinclude>

Latest revision as of 19:48, 26 September 2024

{{{1}}}