Template:Code: Difference between revisions
Jump to navigation
Jump to search
m (Protected "Template:Code" ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite))) |
No edit summary |
||
Line 2: | Line 2: | ||
<includeonly><onlyinclude><span style="font-family:monospace, monospace; border-radius:3px; background:{{#switch:{{{p|{{{preset|}}}}}} | <includeonly><onlyinclude><span style="font-family:monospace, monospace; border-radius:3px; background:{{#switch:{{{p|{{{preset|}}}}}} | ||
|#default = | |#default = rgb(0 0 0 / 26%); padding:2px 3px | ||
|0 = unset; padding:0 | |0 = unset; padding:0 | ||
|1 = | |1 = rgb(0 0 0 / 16%); padding:2px 3px | ||
|2 = | |2 = rgb(0 0 0 / 16%); border:1px solid rgb(255 255 255 / 10%); padding:1px 3px | ||
|3 = | |3 = rgb(255 255 255 / 5%); border:1px solid rgb(255 255 255 / 10%); padding:1px 3px | ||
}}; user-select:{{{select|unset}}}; {{{style|}}}">{{#if:{{{highlight|}}}|{{#tag:syntaxhighlight|{{{1}}}|lang={{{highlight}}}|inline=1}}|{{{1}}}}}</span></onlyinclude></includeonly> | }}; 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 09:07, 12 May 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.