Template:Code: Difference between revisions
Jump to navigation
Jump to search
1416006136 (talk | contribs) (Undo revision 275898 by 1416006136 (talk)) Tag: Undo |
m (Added working backwards compatibility.) |
||
Line 4: | Line 4: | ||
|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 style="color: {{{color|# | |clear=<kbd style="color:{{{color|currentcolor}}};user-select:{{#switch:{{{select}}}|#default=text|1=all|2=none}};">{{{2|}}}</kbd><!-- | ||
===The following options are required for backward compatibility. Delete when these outdated options are replaced with new ones on most pages.=== | |||
-->|desaturated-oneclick=<code title="outdated usage of “desaturated-oneclick”. Use “desaturated|select=1” instead" style="border-left:4px solid red;background-color:rgb(0,0,0,.16);border-radius:4px;padding:2px 3px;user-select:all;">{{{2|}}}</code> | |||
|outline=<code title="outdated usage of “outline”. Use “outlined” instead" style="background-color: rgba(0,0,0,.16); border: 1px solid rgba(255,255,255,.1); border-radius: 4px; padding: 1px 3px; border-left:4px solid red;">{{{2|}}}</code> | |||
|outline-oneclick=<code title="outdated usage of “outline-oneclick”. Use “outlined|select=1” instead" style="background-color:rgba(0,0,0,.16);border:1px solid rgba(255,255,255,.1);border-radius:4px;padding:1px 3px;border-left:4px solid red;user-select:all;">{{{2|}}}</code> | |||
|oneclick=<code title="outdated usage of “oneclick”. Use “select=1” instead" style="background-color:rgb(0,0,0,.35);border-radius:4px;padding:2px 3px;user-select:all;border-left:4px solid red;">{{{2|}}}</code> | |||
}}</includeonly></onlyinclude>{{doc}} |
Revision as of 08:12, 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.