Template:Shaded table: Difference between revisions
From FrathWiki
Jump to navigationJump to search
No edit summary |
Cedh audmanh (talk | contribs) m (cat) |
||
(4 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{| cellspacing="4" class="shadedtable" | <includeonly>{| cellspacing="4" class="shadedtable" | ||
!colspan={{{cols|2}}} class="shadedtable"| {{{title|}}} | !colspan={{{cols|2}}} class="shadedtable"| {{{title|}}} | ||
|- | |-</includeonly> | ||
<noinclude> | <noinclude> | ||
== Usage == | == Usage == | ||
<pre><nowiki> | <pre><nowiki> | ||
{{shaded table| title=Marx Brothers | cols=2 }} | {{shaded table| title=Marx Brothers | cols=2 }} | ||
| Chico | Leonard | | Chico || Leonard | ||
|- | |- | ||
| Harpo | Arthur | | Harpo || Arthur | ||
|- | |- | ||
| Groucho | Julius Henry | | Groucho || Julius Henry | ||
|- | |- | ||
| Gummo | Milton | | Gummo || Milton | ||
|- | |- | ||
| Zeppo | Herbert | | Zeppo || Herbert | ||
|} | |||
---- | |||
{{shaded table | title=Simpson Children | cols=3 }} | |||
| Bart || Lisa || Maggie | |||
|} | |} | ||
</nowiki></pre> | </nowiki></pre> | ||
Line 22: | Line 26: | ||
{{shaded table| title=Marx Brothers | cols=2 }} | {{shaded table| title=Marx Brothers | cols=2 }} | ||
| Chico | Leonard | | Chico || Leonard | ||
|- | |- | ||
| Harpo | Arthur | | Harpo || Arthur | ||
|- | |- | ||
| Groucho | Julius Henry | | Groucho || Julius Henry | ||
|- | |- | ||
| Gummo | Milton | | Gummo || Milton | ||
|- | |- | ||
| Zeppo | Herbert | | Zeppo || Herbert | ||
|} | |||
---- | |||
{{shaded table | title=Simpson Children | cols=3 }} | |||
| Bart || Lisa || Maggie | |||
|} | |||
'''NB''' that the number of colums (the <code>cols</code> attribute) must be specified for the dark shaded title cell to look right; compare | |||
<pre><nowiki> | |||
{{shaded table | title=Simpson Children}} | |||
| Bart || Lisa || Maggie | |||
|} | |} | ||
</nowiki></pre> | |||
with omitted <code>cold</code> attribute giving malformed | |||
{{shaded table | title=Simpson Children}} | |||
| Bart || Lisa || Maggie | |||
|} | |||
[[Category:Templates]] | |||
</noinclude> | </noinclude> |
Latest revision as of 01:23, 5 October 2014
Usage
{{shaded table| title=Marx Brothers | cols=2 }} | Chico || Leonard |- | Harpo || Arthur |- | Groucho || Julius Henry |- | Gummo || Milton |- | Zeppo || Herbert |} ---- {{shaded table | title=Simpson Children | cols=3 }} | Bart || Lisa || Maggie |}
gives
Marx Brothers | |
---|---|
Chico | Leonard |
Harpo | Arthur |
Groucho | Julius Henry |
Gummo | Milton |
Zeppo | Herbert |
Simpson Children | ||
---|---|---|
Bart | Lisa | Maggie |
NB that the number of colums (the cols
attribute) must be specified for the dark shaded title cell to look right; compare
{{shaded table | title=Simpson Children}} | Bart || Lisa || Maggie |}
with omitted cold
attribute giving malformed
Simpson Children | ||
---|---|---|
Bart | Lisa | Maggie |