Template:Code: Difference between revisions

From TF2 Classified Wiki
Jump to navigation Jump to search
NinjaV (talk | contribs)
grey styles added :D
NinjaV (talk | contribs)
info
Line 36: Line 36:
--><noinclude>
--><noinclude>
== Documentation ==
== Documentation ==
Just go to Valve Dev Community for their documentation, only difference is formatting (styling) and presets which are listed below. Link: [https://developer.valvesoftware.com/wiki/Template:Code VDC Code 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 ==
== Presets ==
Feel free to add more!
Feel free to add more but '''DON'T''' change any pre-existing presets to stop uses of the template unwantedly changing.


=== Default ===
=== Default ===
Line 57: Line 59:
{{code|preset=6|Preset 6 - Brown (Light Outlined)}}
{{code|preset=6|Preset 6 - Brown (Light Outlined)}}


==== Squared ====
==== Rectangular ====
{{code|preset=7|Preset 7 - Beige }}
{{code|preset=7|Preset 7 - Beige }}


Line 78: Line 80:
{{code|preset=15|Preset 15 - Grey (Light Outlined)}}
{{code|preset=15|Preset 15 - Grey (Light Outlined)}}


==== Squared ====
==== Rectangular ====
{{code|preset=16|Preset 16 - Grey}}
{{code|preset=16|Preset 16 - Grey}}


Line 86: Line 88:


=== Special ===
=== Special ===
{{code|preset=1010|Preset 1010 - Hacker Green (Rounded)}}
{{code|preset=1010|Preset 1010 - Hacker Themed (Rounded)}}


{{code|preset=1011|Preset 1011 - Hacker Green (Squared)}}
{{code|preset=1011|Preset 1011 - Hacker Themed (Rectangular)}}


[[Category:Layout templates]]
[[Category:Layout templates]]
</noinclude>
</noinclude>

Revision as of 14:37, 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)