Template:Format: Difference between revisions
From Drunkapedia
imported>Tlosk (→Syntax) |
imported>Tlosk No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#switch:{{lc:{{{1|}}}}}| | <includeonly>{{#switch:{{lc:{{{1|}}}}}| | ||
| | | stats=border=3 cellspacing=1 cellpadding=5 class=sortable style=background:#F0F0F0 | ||
| panel=cellpadding=2 style="border:1px solid #aaaaaa; background:#f9f9f9; vertical-align:top;" | | panel=cellpadding=2 style="border:1px solid #aaaaaa; background:#f9f9f9; vertical-align:top;" | ||
| pre=style="width:auto; overflow:auto" | | pre=style="width:auto; overflow:auto" | ||
Line 15: | Line 15: | ||
<pre style="width:auto; overflow:auto"> | <pre style="width:auto; overflow:auto"> | ||
{|{{Format| | {|{{Format|Stats}} | ||
| Data | | Data | ||
|} | |} | ||
Line 26: | Line 26: | ||
== Formats == | == Formats == | ||
* ''' | * '''Stats''' - | ||
* '''Panel''' - dark gray thin border, light gray panel | * '''Panel''' - dark gray thin border, light gray panel | ||
* '''Pre''' - auto-width, auto-overflow | * '''Pre''' - auto-width, auto-overflow |
Revision as of 14:25, 27 August 2009
Related topics: Wiki Templates, How To Use Tables
Syntax
{{format|<name>}}
Usage
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>
Formats
- Stats -
- Panel - dark gray thin border, light gray panel
- Pre - auto-width, auto-overflow