Template:Code: Difference between revisions
info |
comments and grey color change to the wiki's bg gray |
||
| Line 2: | Line 2: | ||
|#default = padding:2px 4px; border-radius:3px; color:black; background:rgba(241, 233, 203, 1); | |#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); | |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); | |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%); | |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%); | |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%); | |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%); | |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); | |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); | |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%); | |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%); | |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%); | |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%); | |12 = padding:2px 4px; border-radius:0px; color:white; background:rgba(88, 58, 49, 1); border:2px solid rgb(255 255 255 / 25%); | ||
|13 = padding:2px 4px; border-radius:3px; color:white; background:rgb( | <!-- Grey/Gray --> | ||
|14 = padding:2px 4px; border-radius:3px; color:white; background:rgb( | <!-- Round --> | ||
|15 = padding:2px 4px; border-radius:3px; color:white; background:rgb( | <!-- Order is No Outline, Dark Outline, Light Outline --> | ||
|13 = padding:2px 4px; border-radius:3px; color:white; background:rgb(41, 37, 38); | |||
|16 = padding:2px 4px; border-radius:0px; color:white; background:rgb( | |14 = padding:2px 4px; border-radius:3px; color:white; background:rgb(41, 37, 38); border:2px solid rgb(0 0 0 / 50%); | ||
|17 = padding:2px 4px; border-radius:0px; color:white; background:rgb( | |15 = padding:2px 4px; border-radius:3px; color:white; background:rgb(41, 37, 38); border:2px solid rgb(255 255 255 / 25%); | ||
|18 = padding:2px 4px; border-radius:0px; color:white; background:rgb( | <!-- 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%); | |||
<!-- Special / Wild Cards --> | |||
<!-- Hacker Green, Round then Rect. --> | |||
|1010 = padding:2px 4px; border-radius:3px; color:#00ff00; background:#000000; | |1010 = padding:2px 4px; border-radius:3px; color:#00ff00; background:#000000; | ||
|1011 = padding:2px 4px; border-radius:0px; color:#00ff00; background:#000000; | |1011 = padding:2px 4px; border-radius:0px; color:#00ff00; background:#000000; | ||
Revision as of 14:48, 28 November 2025
{{{1}}}
Documentation
Use
To change the preset, use this example:{{code|preset=PresetNo.|Text}} to change it. Replace PresetNo. to a value below e.g Preset 9 which is Rectangular, Dark Outlined and Beige and change the Text to the desired text in the code.
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
Default - Pale
Beige & Brown
Rounded
Preset 1 - Beige
Preset 2 - Brown
Preset 3 - Beige (Dark Outlined)
Preset 4 - Brown (Dark Outlined)
Preset 5 - Beige (Light Outlined)
Preset 6 - Brown (Light Outlined)
Rectangular
Preset 7 - Beige
Preset 8 - Brown
Preset 9 - Beige (Dark Outlined)
Preset 10 - Brown (Dark Outlined)
Preset 11 - Beige (Light Outlined)
Preset 12 - Brown (Light Outlined)
Grey
Rounded
Preset 13 - Grey
Preset 14 - Grey (Dark Outlined)
Preset 15 - Grey (Light Outlined)
Rectangular
Preset 16 - Grey
Preset 17 - Grey (Dark Outlined)
Preset 18 - Grey (Light Outlined)
Special
Preset 1010 - Hacker Themed (Rounded)
Preset 1011 - Hacker Themed (Rectangular)