Difference between revisions of "Template:Databox"
From LIMSWiki
Jump to navigationJump to searchShawndouglas (talk | contribs) m (Experimenting.) |
Shawndouglas (talk | contribs) m (Protected "Template:Databox" ([edit=sysop] (indefinite) [move=sysop] (indefinite))) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#ifeq:{{{child|}}}|yes||<table class=" | {{#ifeq:{{{child|}}}|yes||<table class="databox {{{bodyclass|}}}" cellspacing="5" style="width:22em; {{#if:{{{float|}}}|float: {{{float}}}; clear: {{#ifeq:{{{float|}}}|none|both|{{{float}}}}}; margin: 0 0 1em 1em;}} {{{bodystyle|}}}"><!-- | ||
Caption | Caption | ||
-->{{#if:{{{title|}}}|<caption class="{{{titleclass|}}}" style="{{{titlestyle|}}}">{{{title}}}</caption>}}<!-- | -->{{#if:{{{title|}}}|<caption class="{{{titleclass|}}}" style="{{{titlestyle|}}}">{{{title}}}</caption>}}<!-- |
Latest revision as of 02:27, 31 May 2013
[edit] [ ] Template documentation
Usage
Usage is almost identical to {{infobox}}, but with an additional distinction. While the infobox template hides rows without labels and data, the databox template will only hide a row if it has no label. Rows with a label but no data will still show.
Otherwise, each row on the table can contain either a header, or a label/data pair, or just a data cell.
The above documentation is transcluded from Template:Databox/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |