Template:Code: Difference between revisions
Jump to navigation
Jump to search
Mailmanmicky (talk | contribs) m (Ah... screw it, I'm tired.) |
(A big template change without backwards compatibility, because without it, nothing will break. The only noticeable thing is that the styles will not work until they are replaced with {{{preset}}}.) |
||
Line 1: | Line 1: | ||
{{Doc}}<includeonly><onlyinclude>< | {{Doc}} | ||
| | <includeonly><onlyinclude><code style="border-radius:3px; background-color:{{#switch:{{{preset|}}} | ||
| | |#default = rgba(0,0,0,.35); padding:2px 3px | ||
|0 = unset; padding:0 | |||
|3 = | |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 | |||
}}{{{1|}}}<span style="user-select:none"></span></ | |3 = rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1); padding:1px 3px | ||
}}; user-select:{{{select|unset}}}; {{{style|}}}">{{{1|}}}<span style="user-select:none"></span></code></onlyinclude></includeonly> |
Revision as of 10:48, 30 April 2023
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.