Template:Code: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Edokter
allow class, id and style, like other shortcut templates.
SockyPaws (talk | contribs)
Fix template to use actual <code> tags since ZW doesn't have the SyntaxHighlight extension installed
Tag: 2017 source edit
 
(5 intermediate revisions by 3 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:code|{{{code|{{{1|<noinclude>Monospaced text</noinclude>}}}}}}|class={{{class|}}}|id={{{id|}}}|style={{{style|}}}}}<noinclude>
{{documentation}}
{{Documentation}}<!-- Add categories to the /doc subpage, not here, please. --></noinclude>
</noinclude>

Latest revision as of 19:28, 21 November 2024

Monospaced text