Template:Prettytable: Difference between revisions

From StrategyWiki, the video game walkthrough and strategy guide wiki
Updated
m (Expanded)
(Updated)
Line 1: Line 1:
border="1" cellspacing="4" cellpadding="1" class="wikitable{{qif|test={{{sortable|}}}|then= sortable}}" rules="all" style="margin:1em 1em 1em 0;border:solid 1px #AAA; border-collapse:collapse;empty-cells:show;{{qif|test={{{notwide|}}}|then=|else=width:100%}}"<noinclude>
border="1" cellspacing="4" cellpadding="1" class="wikitable{{qif|test={{{sortable|}}}|then= sortable}}" rules="all" style="margin:1em 1em 1em 0;border:solid 1px #AAA; border-collapse:collapse;empty-cells:show;{{qif|test={{{notwide|}}}|then=|else=width:100%;}}{{{style|}}}"<noinclude>


Template to put at the top of table declarations to standardise and prettify their appearance.
Template to put at the top of table declarations to standardise and prettify their appearance.
By default it will make the table occupy all the page's width. If you want to turn it off, call the template as follows: <nowiki>{{prettytable|notwide=1}}</nowiki>. Additionally, you can mark the table as sortable (i.e. if it's a table of sortable values, such as {{tl|yes}} or {{tl|no}}), by using the "sortable" parameter: <nowiki>{{prettytable|sortable=1}}</nowiki>.
By default it will make the table occupy all the page's width. If you want to turn it off, call the template as follows: <nowiki>{{prettytable|notwide=1}}</nowiki>. Additionally, you can mark the table as sortable (i.e. if it's a table of sortable values, such as {{tl|yes}} or {{tl|no}}), by using the "sortable" parameter: <nowiki>{{prettytable|sortable=1}}</nowiki>. Finally, extra styling can be added using the "style" parameter.


== Example ==
== Example ==