Template:Format: Difference between revisions
(Created page with '<includeonly>{{#switch:{{lc:{{{1|}}}}}| | creature stats=border=3 cellspacing=1 cellpadding=5 class=sortable style=background:#F0F0F0 | pre=style="width:auto; overflow:auto" }}…') |
(removing old colors) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#switch:{{lc:{{{1|}}}}}| | <includeonly>{{#switch:{{lc:{{{1|}}}}}| | ||
| | | link bar=style="-moz-border-radius: 10px; border:2px solid;width:80%;padding:5px;margin-bottom:10px;margin-left:10%;margin-right:10%;-moz-outline-style: outset;-moz-outline-radius: 10px;" | ||
| stats=border=3 cellspacing=1 cellpadding=5 class=sortable | |||
| panel=cellpadding=2 style="border:1px solid; vertical-align:top;" | |||
| pre=style="width:auto; overflow:auto" | | pre=style="width:auto; overflow:auto" | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{RightToC}} | |||
{{Related|Wiki Templates|How To Use Tables}} | {{Related|Wiki Templates|How To Use Tables}} | ||
== Syntax == | == Syntax == | ||
<pre > | <pre style="width:300px"> | ||
{{format|<name>}} | {{format|<name>}} | ||
</pre> | </pre> | ||
Line 13: | Line 16: | ||
<pre style="width:auto; overflow:auto"> | <pre style="width:auto; overflow:auto"> | ||
{|{{Format| | {|{{Format|Stats}} | ||
| Data | | Data | ||
|} | |} | ||
Line 21: | Line 24: | ||
</pre> | </pre> | ||
<div {{format|Link Bar}}> | |||
'''Title''' | |||
[[Link1]] - [[Link2]] - [[Link3]] | |||
</div> | |||
</pre> | </pre> | ||
== Formats == | |||
* '''Link Bar''' - rounded, centered bar | |||
* '''Stats''' - | |||
* '''Panel''' - dark gray thin border, light gray panel | |||
* '''Pre''' - auto-width, auto-overflow | |||
[[Category:Wiki Template]] | [[Category:Wiki Template]] | ||
</noinclude> | </noinclude> |
Latest revision as of 15:07, 2 October 2018
Related topics: Wiki Templates, How To Use Tables
Syntax Edit
{{format|<name>}}
Usage Edit
Use within a table header or other section to specify a particular format. The parameter for the format name is case insensitive. The primary purpose of this template is to make it easier to quickly use particular formats/styles. Feel free to add additional formats, try to make the name easy to remember and short.
{|{{Format|Stats}} | Data |} <pre {{format|pre}}> 2 + 2 = 4 </pre> <div {{format|Link Bar}}> '''Title''' [[Link1]] - [[Link2]] - [[Link3]] </div>
Formats Edit
- Link Bar - rounded, centered bar
- Stats -
- Panel - dark gray thin border, light gray panel
- Pre - auto-width, auto-overflow