|
|
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|{{Tint|color=yellow|style}}{{=}}{{Tint|color=green|dotted}}|{{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|{{Tint|color=yellow|padding}}{{=}}{{Tint|color=green|.5em}}|{{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|{{Tint|color=yellow|border-size}}{{=}}{{Tint|color=green|2px}}|{{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> ;</nowiki>}} after a standalone border in order to space out the text
| |
− | | {{CodeBlock|{{((}}Border|{{Tint|color=yellow|color}}{{=}}{{Tint|color=green|yellow}}|{{Tint|color=yellow|border-size}}{{=}}{{Tint|color=green|2px}}{{))}}{{Tint|color=orange|  ;}} Hello, world!}}
| |
− | | {{Capsule|margin=5px|{{border|color=yellow|border-size=2px}} Hello, world!}}
| |
− | |-
| |
− | |}
| |
− | | |
− | | |
− | | |
− | == Avaliable Colors ==
| |
− | {{Capsule|
| |
− | {{Code|style=3|{{border|border-size=4px|color=orange}}}} {{border|border-size=4px|color=orange|orange}}
| |
− | | |
− | | |
− | {{Code|style=3|{{border|border-size=4px|color=green}}}} {{border|border-size=4px|color=green|green}}
| |
− | | |
− | | |
− | {{Code|style=3|{{border|border-size=4px|color=darkgreen}}}} {{border|border-size=4px|color=darkgreen|darkgreen}}
| |
− | | |
− | | |
− | {{Code|style=3|{{border|border-size=4px|color=purple}}}} {{border|border-size=4px|color=purple|purple}}
| |
− | | |
− | | |
− | {{Code|style=3|{{border|border-size=4px|color=red}}}} {{border|border-size=4px|color=red|red}}
| |
− | | |
− | | |
− | {{Code|style=3|{{border|border-size=4px|color=olive}}}} {{border|border-size=4px|color=olive|olive}}
| |
− | | |
− | | |
− | {{Code|style=3|{{border|border-size=4px|color=yellow}}}} {{border|border-size=4px|color=yellow|yellow}}
| |
− | | |
− | | |
− | {{Code|style=3|{{border|border-size=4px|color=gold}}}} {{border|border-size=4px|color=gold|gold}}
| |
− | | |
− | | |
− | {{Code|style=3|{{border|border-size=4px|color=blue}}}} {{border|border-size=4px|color=blue|blue}}
| |
− | | |
− | | |
− | {{Code|style=3|{{border|border-size=4px|color=gray}}}} {{border|border-size=4px|color=gray|gray}}
| |
− | | |
− | | |
− | {{Code|style=3|{{border|border-size=4px|color=comment}}}} {{border|border-size=4px|color=comment|comment}}
| |
− | }}
| |
− | | |
− | == See also ==
| |
− | [[Template:Tint]]
| |
− | | |
− | {{Doc/Sandbox other|
| |
− | [[Category:Templates]]
| |
− | [[Category:Formatting templates]]
| |
− | }} | |