Template:Code: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Fixed presets) |
||
Line 1: | Line 1: | ||
{{doc}} | {{doc}} | ||
<includeonly><onlyinclude>< | <includeonly><onlyinclude><span class="mw-editfont-monospace" style="border-radius:3px; background:{{#switch:{{{p|{{{preset|}}}}}} | ||
|#default = rgba(0,0,0,. | |#default = rgba(0,0,0,.26); padding:2px 3px | ||
|0 = unset; padding:0 | |0 = unset; padding:0 | ||
|1 = rgba(0,0,0,.16); padding:2px 3px | |1 = rgba(0,0,0,.16); padding:2px 3px | ||
|2 = rgba(0,0,0,.16); border:1px solid rgba(255,255,255,.1); padding:1px 3px | |2 = rgba(0,0,0,.16); border:1px solid rgba(255,255,255,.1); padding:1px 3px | ||
|3 = rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1); padding:1px 3px | |3 = rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1); padding:1px 3px | ||
}}; user-select:{{{select|unset}}}; {{{style|}}}">{{#if:{{{highlight|}}}|{{#tag:syntaxhighlight|{{{1}}}|lang={{{highlight}}}|inline=1 | }}; user-select:{{{select|unset}}}; {{{style|}}}">{{#if:{{{highlight|}}}|{{#tag:syntaxhighlight|{{{1}}}|lang={{{highlight}}}|inline=1}}|{{{1}}}}}</span></onlyinclude></includeonly> | ||
[[Category:Formatting templates]] | [[Category:Formatting templates]] |
Revision as of 14:46, 16 February 2025
The above documentation is transcluded from Template:Code/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.