Difference between revisions of "Template:Border/doc"

From Valve Developer Community
Jump to: navigation, search
m
(Replaced content with "{{delete|unused}}")
(Tag: Replaced)
 
Line 1: Line 1:
{{Doc/subpage}}__NOTOC__
+
{{delete|unused}}
This is an experimental template that can be used to add a border standalone or around text.
 
 
 
== Parameters and Examples ==
 
{| class="standard-table" | style="width:100%;"
 
|-
 
! Parameter
 
! Description
 
! Example
 
! Preview
 
|-
 
| align="center" | {{Code|{{param|color}}}}
 
| Defines the border color
 
| {{CodeBlock|{{((}}Border|{{Tint|color=yellow|color}}{{=}}{{Tint|color=green|yellow}}|{{Tint|color=comment|Hello, World!}}{{))}}}}
 
| {{Capsule|margin=5px|{{border|color=yellow|Hello, World!}}}}
 
|-
 
| align="center" | {{Code|{{param|style}}}}
 
| Changes the style of the border.<br>'''Type must be specified'''
 
| {{CodeBlock|{{((}}Border&#124;{{Tint|color=yellow|style}}{{=}}{{Tint|color=green|dotted}}&#124;{{Tint|color=comment|Hello, World!}}{{))}}}}
 
| {{Capsule|margin=5px|{{border|style=dotted|Hello, World!}}}}
 
|-
 
| align="center" | {{Code|{{param|padding}}}}
 
| Sets the padding<br>'''Unit must be specified'''
 
| {{CodeBlock|{{((}}Border&#124;{{Tint|color=yellow|padding}}{{=}}{{Tint|color=green|.5em}}&#124;{{Tint|color=comment|Hello, World!}}{{))}}}}
 
| {{Capsule|margin=5px|{{border|padding=.5em|Hello, World!}}}}
 
|-
 
| align="center" | {{Code|{{param|border-size}}}}
 
| Defines the border size.<br>'''Unit must be specified'''.
 
| {{CodeBlock|{{((}}Border&#124;{{Tint|color=yellow|border-size}}{{=}}{{Tint|color=green|2px}}&#124;{{Tint|color=comment|Hello, World!}}{{))}}}}
 
| {{Capsule|margin=5px|{{border|border-size=2px|Hello, World!}}}}
 
|-
 
|}
 
 
 
 
 
=== Tips and Tricks ===
 
{| class="standard-table" | style="width:100%;"
 
|-
 
! Tip
 
! Example
 
! Preview
 
|-
 
| align=center | Use {{code|<nowiki>&nbsp&#59;</nowiki>}} after a standalone border in order to space out the text
 
| {{CodeBlock|{{((}}Border&#124;{{Tint|color=yellow|color}}{{=}}{{Tint|color=green|yellow}}&#124;{{Tint|color=yellow|border-size}}{{=}}{{Tint|color=green|2px}}{{))}}{{Tint|color=orange| &nbsp&#59;}} Hello, world!}}
 
| {{Capsule|margin=5px|{{border|color=yellow|border-size=2px}} &nbsp; Hello, world!}}
 
|-
 
|}
 
 
 
 
 
 
 
== Avaliable Colors ==
 
{{Capsule|
 
{{Code|style=3|{{border|border-size=4px|color=orange}}}} &nbsp; {{border|border-size=4px|color=orange|orange}}
 
 
 
 
 
{{Code|style=3|{{border|border-size=4px|color=green}}}} &nbsp; {{border|border-size=4px|color=green|green}}
 
 
 
 
 
{{Code|style=3|{{border|border-size=4px|color=darkgreen}}}} &nbsp; {{border|border-size=4px|color=darkgreen|darkgreen}}
 
 
 
 
 
{{Code|style=3|{{border|border-size=4px|color=purple}}}} &nbsp; {{border|border-size=4px|color=purple|purple}}
 
 
 
 
 
{{Code|style=3|{{border|border-size=4px|color=red}}}} &nbsp; {{border|border-size=4px|color=red|red}}
 
 
 
 
 
{{Code|style=3|{{border|border-size=4px|color=olive}}}} &nbsp; {{border|border-size=4px|color=olive|olive}}
 
 
 
 
 
{{Code|style=3|{{border|border-size=4px|color=yellow}}}} &nbsp; {{border|border-size=4px|color=yellow|yellow}}
 
 
 
 
 
{{Code|style=3|{{border|border-size=4px|color=gold}}}} &nbsp; {{border|border-size=4px|color=gold|gold}}
 
 
 
 
 
{{Code|style=3|{{border|border-size=4px|color=blue}}}} &nbsp; {{border|border-size=4px|color=blue|blue}}
 
 
 
 
 
{{Code|style=3|{{border|border-size=4px|color=gray}}}} &nbsp; {{border|border-size=4px|color=gray|gray}}
 
 
 
 
 
{{Code|style=3|{{border|border-size=4px|color=comment}}}} &nbsp; {{border|border-size=4px|color=comment|comment}}
 
}}
 
 
 
== See also ==
 
[[Template:Tint]]
 
 
 
{{Doc/Sandbox other|
 
[[Category:Templates]]
 
[[Category:Formatting templates]]
 
}}
 

Latest revision as of 18:45, 9 May 2023

Warning icon.png
This template has been marked as a candidate for speedy deletion for the following reason:
unused
If you object to this decision, then please discuss why hereIf this page doesn't meet the criteria for speedy deletion, then please remove this notice, but do not remove it from pages that you have created yourself
Administrators - Remember to check if anything links here and the page history (last edit) before deleting.