Template:Table: Difference between revisions
From Qix Wiki
Jump to navigationJump to search
Trig Jegman (talk | contribs) Created page with "<includeonly><templatestyles src="Template:Nav/styles.css" /> {| class="t_nav" ! class="t_nav_title" colspan="2" | {{{title|}}} |- {{#if:{{{group1|}}}| {{!}} class="t_nav_header" style="{{{style1|}}}" {{!}} {{{group1|}}} {{!}} {{{list1|}}}|}} |- {{#if:{{{group2|}}}| {{!}} class="t_nav_header" style="{{{style2|}}}" {{!}} {{{group2|}}} {{!}} {{{list2|}}}|}} |- {{#if:{{{group3|}}}| {{!}} class="t_nav_header" style="{{{style3|}}}" {{!}} {{{group3|}}} {{!}} {{{list3|}}}|}}..." |
m 13 revisions imported |
||
| (12 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><templatestyles src="Template: | <includeonly><templatestyles src="Template:Table/styles.css" /> | ||
{| class="t_nav" | {| class="t_nav {{#switch:{{{collapsible|}}}|true|collapsible=mw-collapsible|collapsed=mw-collapsible mw-collapsed|#default=}}" style="min-width:300px;" | ||
! class="t_nav_title" colspan="2" | {{{title|}}} | ! class="t_nav_title" colspan="2" | {{{title|}}} | ||
|- | |- | ||
| Line 32: | Line 32: | ||
{{!}} | {{!}} | ||
{{{list6|}}}|}} | {{{list6|}}}|}} | ||
|- | |||
{{#if:{{{group7|}}}| | |||
{{!}} class="t_nav_header" style="{{{style7|}}}" {{!}} {{{group7|}}} | |||
{{!}} | |||
{{{list7|}}}|}} | |||
|- | |||
{{#if:{{{group8|}}}| | |||
{{!}} class="t_nav_header" style="{{{style8|}}}" {{!}} {{{group8|}}} | |||
{{!}} | |||
{{{list8|}}}|}} | |||
|- | |||
{{#if:{{{group9|}}}| | |||
{{!}} class="t_nav_header" style="{{{style9|}}}" {{!}} {{{group9|}}} | |||
{{!}} | |||
{{{list9|}}}|}} | |||
|- | |||
{{#if:{{{group10|}}}| | |||
{{!}} class="t_nav_header" style="{{{style10|}}}" {{!}} {{{group10|}}} | |||
{{!}} | |||
{{{list10|}}}|}} | |||
|- | |||
{{#if:{{{group11|}}}| | |||
{{!}} class="t_nav_header" style="{{{style11|}}}" {{!}} {{{group11|}}} | |||
{{!}} | |||
{{{list11|}}}|}} | |||
|- | |||
{{#if:{{{group12|}}}| | |||
{{!}} class="t_nav_header" style="{{{style12|}}}" {{!}} {{{group12|}}} | |||
{{!}} | |||
{{{list12|}}}|}} | |||
|- | |||
{{#if:{{{group13|}}}| | |||
{{!}} class="t_nav_header" style="{{{style13|}}}" {{!}} {{{group13|}}} | |||
{{!}} | |||
{{{list13|}}}|}} | |||
|- | |||
{{#if:{{{group14|}}}| | |||
{{!}} class="t_nav_header" style="{{{style14|}}}" {{!}} {{{group14|}}} | |||
{{!}} | |||
{{{list14|}}}|}} | |||
|- | |||
{{#if:{{{group15|}}}| | |||
{{!}} class="t_nav_header" style="{{{style15|}}}" {{!}} {{{group15|}}} | |||
{{!}} | |||
{{{list15|}}}|}} | |||
|- | |||
{{#if:{{{group16|}}}| | |||
{{!}} class="t_nav_header" style="{{{style16|}}}" {{!}} {{{group16|}}} | |||
{{!}} | |||
{{{list16|}}}|}} | |||
|- | |||
{{#if:{{{group17|}}}| | |||
{{!}} class="t_nav_header" style="{{{style17|}}}" {{!}} {{{group17|}}} | |||
{{!}} | |||
{{{list17|}}}|}} | |||
|- | |||
{{#if:{{{group18|}}}| | |||
{{!}} class="t_nav_header" style="{{{style18|}}}" {{!}} {{{group18|}}} | |||
{{!}} | |||
{{{list18|}}}|}} | |||
|- | |||
{{#if:{{{group19|}}}| | |||
{{!}} class="t_nav_header" style="{{{style19|}}}" {{!}} {{{group19|}}} | |||
{{!}} | |||
{{{list19|}}}|}} | |||
|- | |||
{{#if:{{{group20|}}}| | |||
{{!}} class="t_nav_header" style="{{{style20|}}}" {{!}} {{{group20|}}} | |||
{{!}} | |||
{{{list20|}}}|}} | |||
|- | |||
{{#if:{{{group21|}}}| | |||
{{!}} class="t_nav_header" style="{{{style21|}}}" {{!}} {{{group21|}}} | |||
{{!}} | |||
{{{list21|}}}|}} | |||
|- | |||
{{#if:{{{group22|}}}| | |||
{{!}} class="t_nav_header" style="{{{style22|}}}" {{!}} {{{group22|}}} | |||
{{!}} | |||
{{{list22|}}}|}} | |||
|- | |||
{{#if:{{{group23|}}}| | |||
{{!}} class="t_nav_header" style="{{{style23|}}}" {{!}} {{{group23|}}} | |||
{{!}} | |||
{{{list23|}}}|}} | |||
|- | |||
{{#if:{{{group24|}}}| | |||
{{!}} class="t_nav_header" style="{{{style24|}}}" {{!}} {{{group24|}}} | |||
{{!}} | |||
{{{list24|}}}|}} | |||
|- | |||
{{#if:{{{group25|}}}| | |||
{{!}} class="t_nav_header" style="{{{style25|}}}" {{!}} {{{group25|}}} | |||
{{!}} | |||
{{{list25|}}}|}} | |||
|- | |||
{{#if:{{{group26|}}}| | |||
{{!}} class="t_nav_header" style="{{{style26|}}}" {{!}} {{{group26|}}} | |||
{{!}} | |||
{{{list26|}}}|}} | |||
|- | |||
{{#if:{{{group27|}}}| | |||
{{!}} class="t_nav_header" style="{{{style27|}}}" {{!}} {{{group27|}}} | |||
{{!}} | |||
{{{list27|}}}|}} | |||
|- | |||
{{#if:{{{group28|}}}| | |||
{{!}} class="t_nav_header" style="{{{style28|}}}" {{!}} {{{group28|}}} | |||
{{!}} | |||
{{{list28|}}}|}} | |||
|- | |||
{{#if:{{{group29|}}}| | |||
{{!}} class="t_nav_header" style="{{{style29|}}}" {{!}} {{{group29|}}} | |||
{{!}} | |||
{{{list29|}}}|}} | |||
|- | |||
{{#if:{{{group30|}}}| | |||
{{!}} class="t_nav_header" style="{{{style30|}}}" {{!}} {{{group30|}}} | |||
{{!}} | |||
{{{list30|}}}|}} | |||
|- | |||
{{#if:{{{group31|}}}| | |||
{{!}} class="t_nav_header" style="{{{style31|}}}" {{!}} {{{group31|}}} | |||
{{!}} | |||
{{{list31|}}}|}} | |||
|- | |||
{{#if:{{{group32|}}}| | |||
{{!}} class="t_nav_header" style="{{{style32|}}}" {{!}} {{{group32|}}} | |||
{{!}} | |||
{{{list32|}}}|}} | |||
|- | |||
{{#if:{{{group33|}}}| | |||
{{!}} class="t_nav_header" style="{{{style33|}}}" {{!}} {{{group33|}}} | |||
{{!}} | |||
{{{list33|}}}|}} | |||
|- | |||
{{#if:{{{group34|}}}| | |||
{{!}} class="t_nav_header" style="{{{style34|}}}" {{!}} {{{group34|}}} | |||
{{!}} | |||
{{{list34|}}}|}} | |||
|- | |||
{{#if:{{{group35|}}}| | |||
{{!}} class="t_nav_header" style="{{{style35|}}}" {{!}} {{{group35|}}} | |||
{{!}} | |||
{{{list35|}}}|}} | |||
|- | |||
{{#if:{{{group36|}}}| | |||
{{!}} class="t_nav_header" style="{{{style36|}}}" {{!}} {{{group36|}}} | |||
{{!}} | |||
{{{list36|}}}|}} | |||
|- | |||
{{#if:{{{group37|}}}| | |||
{{!}} class="t_nav_header" style="{{{style37|}}}" {{!}} {{{group37|}}} | |||
{{!}} | |||
{{{list37|}}}|}} | |||
|- | |||
{{#if:{{{group38|}}}| | |||
{{!}} class="t_nav_header" style="{{{style38|}}}" {{!}} {{{group38|}}} | |||
{{!}} | |||
{{{list38|}}}|}} | |||
|- | |||
{{#if:{{{group39|}}}| | |||
{{!}} class="t_nav_header" style="{{{style39|}}}" {{!}} {{{group39|}}} | |||
{{!}} | |||
{{{list39|}}}|}} | |||
|- | |||
{{#if:{{{group40|}}}| | |||
{{!}} class="t_nav_header" style="{{{style40|}}}" {{!}} {{{group40|}}} | |||
{{!}} | |||
{{{list40|}}}|}} | |||
|- | |||
{{#if:{{{group41|}}}| | |||
{{!}} class="t_nav_header" style="{{{style41|}}}" {{!}} {{{group41|}}} | |||
{{!}} | |||
{{{list41|}}}|}} | |||
|- | |||
{{#if:{{{group42|}}}| | |||
{{!}} class="t_nav_header" style="{{{style42|}}}" {{!}} {{{group42|}}} | |||
{{!}} | |||
{{{list42|}}}|}} | |||
|- | |||
{{#if:{{{group43|}}}| | |||
{{!}} class="t_nav_header" style="{{{style43|}}}" {{!}} {{{group43|}}} | |||
{{!}} | |||
{{{list43|}}}|}} | |||
|- | |||
{{#if:{{{group44|}}}| | |||
{{!}} class="t_nav_header" style="{{{style44|}}}" {{!}} {{{group44|}}} | |||
{{!}} | |||
{{{list44|}}}|}} | |||
|- | |||
{{#if:{{{group45|}}}| | |||
{{!}} class="t_nav_header" style="{{{style45|}}}" {{!}} {{{group45|}}} | |||
{{!}} | |||
{{{list45|}}}|}} | |||
|- | |||
{{#if:{{{group46|}}}| | |||
{{!}} class="t_nav_header" style="{{{style46|}}}" {{!}} {{{group46|}}} | |||
{{!}} | |||
{{{list46|}}}|}} | |||
|- | |||
{{#if:{{{group47|}}}| | |||
{{!}} class="t_nav_header" style="{{{style47|}}}" {{!}} {{{group47|}}} | |||
{{!}} | |||
{{{list47|}}}|}} | |||
|- | |||
{{#if:{{{group48|}}}| | |||
{{!}} class="t_nav_header" style="{{{style48|}}}" {{!}} {{{group48|}}} | |||
{{!}} | |||
{{{list48|}}}|}} | |||
|- | |||
{{#if:{{{group49|}}}| | |||
{{!}} class="t_nav_header" style="{{{style49|}}}" {{!}} {{{group49|}}} | |||
{{!}} | |||
{{{list49|}}}|}} | |||
|- | |||
{{#if:{{{group50|}}}| | |||
{{!}} class="t_nav_header" style="{{{style50|}}}" {{!}} {{{group50|}}} | |||
{{!}} | |||
{{{list50|}}}|}} | |||
|- | |||
{{#if:{{{ref1|}}}| | |||
{{!}} class="t_nav_quickref" style="text-align:right;" colspan=2" {{!}} <small><small>{{{ref1|}}}{{{ref2|}}}{{{ref3|}}}{{{ref4|}}}{{{ref5|}}}{{{ref6|}}}{{{ref7|}}}{{{ref8|}}}</small></small> | }} | |||
|}</includeonly><noinclude> | |}</includeonly><noinclude> | ||
{{TemplateStyles|Template: | {{TemplateStyles|Template:Table/styles.css}} | ||
This template is called by other templates to format | This template is called by other templates to format tables. Do not use it directly on content pages. | ||
Example: | |||
{{Table | |||
|title=Example Table 1 | |||
|group1=Left column box 1 | |||
|list1=Right column box 1 | |||
|group2=Left column box 2 | |||
|list2=Right column box 2 | |||
}} | |||
<br clear=all> | |||
More complicated example: | |||
{{Table | |||
|title=Example Table 2 | |||
|collapsible=collapsible | |||
|style1=background-color: #AE5EDA; | |||
|group1=Left column box 1 is now purple | |||
|list1=Right column box 1 | |||
|group2=Left column box 2 | |||
|list2=Also, this table is collapsible | |||
}} | |||
Collapsed by default: | |||
{{Table | |||
|title=Example Table 2 | |||
|collapsible=collapsed | |||
|style1=background-color: #AE5EDA; | |||
|group1=Left column box 1 is still purple | |||
|list1=Right column box 1 | |||
|style2=background-color:#55F211; color:#000000 | |||
|group2=Left column box 2 is now different too | |||
|list2=Now it is closed initially! | |||
}} | |||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> | ||
Latest revision as of 02:14, 4 May 2026
See also: Template:Table/styles.css.
This template is called by other templates to format tables. Do not use it directly on content pages.
Example:
| Example Table 1 | |
|---|---|
| Left column box 1 |
Right column box 1 |
| Left column box 2 |
Right column box 2 |
More complicated example:
| Example Table 2 | |
|---|---|
| Left column box 1 is now purple |
Right column box 1 |
| Left column box 2 |
Also, this table is collapsible |
Collapsed by default:
| Example Table 2 | |
|---|---|
| Left column box 1 is still purple |
Right column box 1 |
| Left column box 2 is now different too |
Now it is closed initially! |