Template:Code: Difference between revisions
Template page
More actions
Gaijinviking (talk | contribs) Created page with "<code>{{{1}}}</code><noinclude> == Usage == * {{tlx|code|<nowiki>Display</nowiki>}} generates {{code|Display}}. * {{tlx|code|2=1=| parameter name = value}} generates {{code|1=| parameter name = value}}. </noinclude>" |
mNo edit summary |
||
| (17 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
< | <span style="font-family:monospace; {{#switch:{{{p|{{{preset|}}}}}} | ||
|#default = padding:2px 4px; border-radius:3px; color:black; background:rgba(241, 233, 203, 1); | |||
<!-- Beige/Brown --> | |||
<!-- Round --> | |||
<!-- No Outline --> | |||
|1 = padding:2px 4px; border-radius:3px; color:black; background:rgba(241, 233, 203, 1); | |||
|2 = padding:2px 4px; border-radius:3px; color:white; background:rgba(88, 58, 49, 1); | |||
<!-- Dark Outline --> | |||
|3 = padding:2px 4px; border-radius:3px; color:black; background:rgba(241, 233, 203, 1); border:2px solid rgb(0 0 0 / 25%); | |||
|4 = padding:2px 4px; border-radius:3px; color:white; background:rgba(88, 58, 49, 1); border:2px solid rgb(0 0 0 / 25%); | |||
<!-- Light Outline | |||
|5 = padding:2px 4px; border-radius:3px; color:black; background:rgba(241, 233, 203, 1); border:2px solid rgb(255 255 255 / 25%); | |||
|6 = padding:2px 4px; border-radius:3px; color:white; background:rgba(88, 58, 49, 1); border:2px solid rgb(255 255 255 / 25%); | |||
<!-- Rectangle --> | |||
<!-- No Outline --> | |||
|7 = padding:2px 4px; border-radius:0px; color:black; background:rgba(241, 233, 203, 1); | |||
|8 = padding:2px 4px; border-radius:0px; color:white; background:rgba(88, 58, 49, 1); | |||
<!-- Dark Outline --> | |||
|9 = padding:2px 4px; border-radius:0px; color:black; background:rgba(241, 233, 203, 1); border:2px solid rgb(0 0 0 / 25%); | |||
|10 = padding:2px 4px; border-radius:0px; color:white; background:rgba(88, 58, 49, 1); border:2px solid rgb(0 0 0 / 25%); | |||
<!-- Light Outline --> | |||
|11 = padding:2px 4px; border-radius:0px; color:black; background:rgba(241, 233, 203, 1); border:2px solid rgb(255 255 255 / 25%); | |||
|12 = padding:2px 4px; border-radius:0px; color:white; background:rgba(88, 58, 49, 1); border:2px solid rgb(255 255 255 / 25%); | |||
<!-- Dark Grey/Gray --> | |||
<!-- Round --> | |||
<!-- Order is No Outline, Dark Outline, Light Outline --> | |||
|13 = padding:2px 4px; border-radius:3px; color:white; background:rgb(41, 37, 38); | |||
|14 = padding:2px 4px; border-radius:3px; color:white; background:rgb(41, 37, 38); border:2px solid rgb(0 0 0 / 50%); | |||
|15 = padding:2px 4px; border-radius:3px; color:white; background:rgb(41, 37, 38); border:2px solid rgb(255 255 255 / 25%); | |||
<!-- Rectangle --> | |||
<!-- Order is No Outline, Dark Outline, Light Outline --> | |||
|16 = padding:2px 4px; border-radius:0px; color:white; background:rgb(41, 37, 38); | |||
|17 = padding:2px 4px; border-radius:0px; color:white; background:rgb(41, 37, 38); border:2px solid rgb(0 0 0 / 50%); | |||
|18 = padding:2px 4px; border-radius:0px; color:white; background:rgb(41, 37, 38); border:2px solid rgb(255 255 255 / 25%); | |||
<!-- Light Grey/Gray --> | |||
<!-- Round --> | |||
<!-- Order is No Outline, Dark Outline, Light Outline --> | |||
|19 = padding:2px 4px; border-radius:3px; color:black; background:rgb(237, 237, 237); | |||
|20 = padding:2px 4px; border-radius:3px; color:black; background:rgb(237, 237, 237); border:2px solid rgb(0 0 0 / 25%); | |||
|21 = padding:2px 4px; border-radius:3px; color:black; background:rgb(237, 237, 237); border:2px solid rgb(255 255 255 / 25%); | |||
<!-- Rectangle --> | |||
<!-- Order is No Outline, Dark Outline, Light Outline --> | |||
|22 = padding:2px 4px; border-radius:0px; color:black; background:rgb(237, 237, 237); | |||
|23 = padding:2px 4px; border-radius:0px; color:black; background:rgb(237, 237, 237); border:2px solid rgb(0 0 0 / 25%); | |||
|24 = padding:2px 4px; border-radius:0px; color:black; background:rgb(237, 237, 237); border:2px solid rgb(255 255 255 / 25%); | |||
<!-- Special / Wild Cards --> | |||
<!-- Hacker Green, Round then Rect. --> | |||
|1010 = padding:2px 4px; border-radius:3px; color:#00ff00; background:#000000; | |||
|1011 = padding:2px 4px; border-radius:0px; color:#00ff00; background:#000000; | |||
}} {{#if:{{{select|}}}|user-select:{{{select}}};}} {{{style|}}}">{{#if:{{{highlight|}}}|{{#tag:syntaxhighlight|{{{1}}}|lang={{{highlight}}}|inline=1}}|{{{1}}}}}</span><!-- | |||
--><noinclude> | |||
== Documentation == | |||
=== Use === | |||
To change the preset, use this example:{{code|<nowiki>{{code|preset=PresetNo.|Text}}</nowiki>}} to change it. Replace PresetNo. to a value below e.g {{code|preset=9|Preset 9 which is Rectangular, Dark Outlined and Beige}} and change the Text to the desired text in the code.<br>There are variations of the presets; Rounded, Rectangular, Light Outline and Dark Outline. | |||
== Presets == | |||
Feel free to add more but '''DON'T''' change any pre-existing presets to stop uses of the template unwantedly changing. | |||
=== Default === | |||
{{code|Default - Pale}} | |||
=== Beige & Brown === | |||
==== Rounded ==== | |||
{{code|preset=1|Preset 1 - Beige}} | |||
{{code|preset=2|Preset 2 - Brown}} | |||
{{code|preset=3|Preset 3 - Beige (Dark Outlined)}} | |||
{{code|preset=4|Preset 4 - Brown (Dark Outlined)}} | |||
{{code|preset=5|Preset 5 - Beige (Light Outlined)}} | |||
{{code|preset=6|Preset 6 - Brown (Light Outlined)}} | |||
==== Rectangular ==== | |||
{{code|preset=7|Preset 7 - Beige }} | |||
{{code|preset=8|Preset 8 - Brown}} | |||
{{code|preset=9|Preset 9 - Beige (Dark Outlined)}} | |||
{{code|preset=10|Preset 10 - Brown (Dark Outlined)}} | |||
{{code|preset=11|Preset 11 - Beige (Light Outlined)}} | |||
{{code|preset=12|Preset 12 - Brown (Light Outlined)}} | |||
=== Dark Grey === | |||
==== Rounded ==== | |||
{{code|preset=13|Preset 13 - DGrey}} | |||
{{code|preset=14|Preset 14 - DGrey (Dark Outlined)}} | |||
{{code|preset=15|Preset 15 - DGrey (Light Outlined)}} | |||
==== Rectangular ==== | |||
{{code|preset=16|Preset 16 - DGrey}} | |||
{{code|preset=17|Preset 17 - DGrey (Dark Outlined)}} | |||
{{code|preset=18|Preset 18 - DGrey (Light Outlined)}} | |||
=== Light Grey === | |||
==== Rounded ==== | |||
{{code|preset=19|Preset 19 - LGrey}} | |||
{{code|preset=20|Preset 20 - LGrey (Dark Outlined)}} | |||
{{code|preset=21|Preset 21 - LGrey (Light Outlined)}} | |||
==== Rectangular ==== | |||
{{code|preset=22|Preset 22 - LGrey}} | |||
{{code|preset=23|Preset 23 - LGrey (Dark Outlined)}} | |||
{{code|preset=24|Preset 24 - LGrey (Light Outlined)}} | |||
=== Special === | |||
{{code|preset=1010|Preset 1010 - Hacker Themed (Rounded)}} | |||
{{code|preset=1011|Preset 1011 - Hacker Themed (Rectangular)}} | |||
[[Category:Layout templates]] | |||
</noinclude> | </noinclude> | ||