Template:Code: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Doc}} | {{Doc}} | ||
<includeonly><onlyinclude>{{#switch:{{{style}}} | <includeonly><onlyinclude>{{#switch:{{{style}}} | ||
|#default = <code style="background: {{{bg|{{{background|rgb(0,0,0,.35)}}}}}}; border-radius: | |#default = <code style="background:{{{bg|{{{background|rgb(0,0,0,.35)}}}}}}; border-radius:3px; color: {{{color|currentcolor}}}; padding:2px 3px; user-select:{{#switch:{{{select}}}|#default=text|1=all|2=none}}">{{{1|}}}</code> | ||
|1 = <code style="background-color: rgba(0,0,0,.16); border: 1px solid rgba(255,255,255,.1); border-radius: | |1 = <code style="background-color:rgba(0,0,0,.16); border:1px solid rgba(255,255,255,.1); border-radius:3px; padding:1px 3px; user-select:{{#switch:{{{select}}}|#default=text|1=all|2=none}}">{{{1|}}}</code> | ||
|2 = <code style="background-color: rgb(0,0,0,.16); border-radius: | |2 = <code style="background-color:rgb(0,0,0,.16); border-radius:3px; padding:2px 3px; user-select:{{#switch:{{{select}}}|#default=text|1=all|2=none}}">{{{1|}}}</code> | ||
|3 = <kbd style="color:{{{color|currentcolor}}}; user-select:{{#switch:{{{select}}}|#default=text|1=all|2=none}}">{{{1|}}}</kbd> | |3 = <kbd style="color:{{{color|currentcolor}}}; user-select:{{#switch:{{{select}}}|#default=text|1=all|2=none}}">{{{1|}}}</kbd> | ||
|4 = <code style="background-color: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: | |4 = <code style="background-color:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1); border-radius:3px; padding:1px 3px; user-select:{{#switch:{{{select}}}|#default=text|1=all|2=none}}">{{{1|}}}</code> | ||
}}</onlyinclude></includeonly> | }}</onlyinclude></includeonly> |
Revision as of 11:00, 30 March 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.