Template:Code: Difference between revisions
Jump to navigation
Jump to search
m (Now with Markdown) |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:Template: One-Line Code}} | {{DISPLAYTITLE:Template: One-Line Code}} | ||
<onlyinclude><includeonly>{{#switch:{{{1}}} | <onlyinclude><includeonly>{{#switch:{{{1}}} | ||
|#default=<code style="background: {{{background|rgb(0,0,0,.35)}}}; border-radius: 4px; color: {{{color|# | |#default=<code style="background: {{{background|rgb(0,0,0,.35)}}}; border-radius: 4px; color: {{{color|#B9B7B5}}}; padding: 2px 3px; user-select:{{#switch:{{{select}}}|#default=text|1=all|2=none}};">{{{1|}}}</code> | ||
|desaturated=<code style="background-color: rgb(0,0,0,.16); border-radius: 4px; padding: 2px 3px; user-select:{{#switch:{{{select}}}|#default=text|1=all|2=none}};">{{{2|}}}</code> | |desaturated=<code style="background-color: rgb(0,0,0,.16); border-radius: 4px; padding: 2px 3px; user-select:{{#switch:{{{select}}}|#default=text|1=all|2=none}};">{{{2|}}}</code> | ||
|outlined=<code style="background-color: rgba(0,0,0,.16); border: 1px solid rgba(255,255,255,.1); border-radius: 4px; padding: 1px 3px; user-select:{{#switch:{{{select}}}|#default=text|1=all|2=none}};">{{{2|}}}</code> | |outlined=<code style="background-color: rgba(0,0,0,.16); border: 1px solid rgba(255,255,255,.1); border-radius: 4px; padding: 1px 3px; user-select:{{#switch:{{{select}}}|#default=text|1=all|2=none}};">{{{2|}}}</code> | ||
|clear=<code>{{{2|}}}</code>}}</includeonly></onlyinclude>{{doc}} | |clear=<code style="color: {{{color|#B9B7B5}}};">{{{2|}}}</code>}}</includeonly></onlyinclude>{{doc}} |
Revision as of 05:13, 22 January 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.