Difference between revisions of "Template:Catalog2"
Jump to navigation
Jump to search
(Created page with "<includeonly><includeonly><!--total terms calc start-->{{#vardefine:totalTerms|0}}{{#vardefine:totalEnd|0}}{{#while: |{{#ifexpr:{{#var:totalEnd}}=0|true}} |{{#if:{{{{{#expr:{{...") |
|||
Line 7: | Line 7: | ||
}} | }} | ||
}}<!--column define ends, table generation begins-->{|{{#ifeq:{{{collapsed|}}}|true|class="wikitable mw-collapsible mw-collapsed"|class="wikitable mw-collapsible"}} style="text-align:center;vertical-align:top;" | }}<!--column define ends, table generation begins-->{|{{#ifeq:{{{collapsed|}}}|true|class="wikitable mw-collapsible mw-collapsed"|class="wikitable mw-collapsible"}} style="text-align:center;vertical-align:top;" | ||
!colspan={{#var:columns}}|{{{title|Members}}} | !colspan={{#var:columns}}|{{Flavor text|flav}}{{{title|Members}}} | ||
|- | |- | ||
{{#loop: row | {{#loop: row |
Revision as of 19:46, 19 August 2019
Usage
{{Template:Catalog2 |title= |flavor= |align= (default=center) |<item 1> |<item 2> |<item ...> }} ==Examples== '''Example''' <pre>{{Template:Catalog2|title=Otemachi Genociders|flavor=ジェノサイダーズ |{{Team member|Arc|flavor=Guild Master}} |{{Team member|Babalon}} |{{Team member|Surtr}} |{{Team member|Azathoth}} }}
【flav】Otemachi Genociders | |||
---|---|---|---|
Many terms unspecified/specified columns
{{Template:Catalog2|title=Group|a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p}} {{Template:Catalog2|title=Group|columns=3|align=left|a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p}}
【flav】Group | |||||
---|---|---|---|---|---|
a | b | c | d | e | f |
g | h | i | j | k | l |
m | n | o | p |
【flav】Group | ||
---|---|---|
a | b | c |
d | e | f |
g | h | i |
j | k | l |
m | n | o |
p |
~6-term unspecified columns
{{Template:Catalog2|1|2|3|4|5}} {{Template:Catalog2|1|2|3|4|5|6}} {{Template:Catalog2|1|2|3|4|5|6|7}}
【flav】Members | ||||
---|---|---|---|---|
1 | 2 | 3 | 4 | 5 |
【flav】Members | |||||
---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 |
【flav】Members | |||||
---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 |
7 |
~6-term specified columns
{{Template:Catalog2|columns=2|1|2|3|4|5}} {{Template:Catalog2|columns=2|1|2|3|4|5|6}} {{Template:Catalog2|columns=2|1|2|3|4|5|6|7}}
【flav】Members | |
---|---|
1 | 2 |
3 | 4 |
5 |
【flav】Members | |
---|---|
1 | 2 |
3 | 4 |
5 | 6 |
【flav】Members | |
---|---|
1 | 2 |
3 | 4 |
5 | 6 |
7 |
Few terms unspecified columns
{{Template:Catalog2|1|2}} {{Template:Catalog2|1|2|3}} {{Template:Catalog2|1|2|3|4}} {{Template:Catalog2|1|2|3|4|5}}
【flav】Members | |
---|---|
1 | 2 |
【flav】Members | ||
---|---|---|
1 | 2 | 3 |
【flav】Members | |||
---|---|---|---|
1 | 2 | 3 | 4 |
【flav】Members | ||||
---|---|---|---|---|
1 | 2 | 3 | 4 | 5 |
Few terms specified columns
{{Template:Catalog2|columns=2|1|2}} {{Template:Catalog2|columns=2|1|2|3}} {{Template:Catalog2|columns=2|1|2|3|4}} {{Template:Catalog2|columns=2|1|2|3|4|5}} {{Template:Catalog2|columns=3|1|2}} {{Template:Catalog2|columns=3|1|2|3}} {{Template:Catalog2|columns=3|1|2|3|4}} {{Template:Catalog2|columns=3|1|2|3|4|5}}
【flav】Members | |
---|---|
1 | 2 |
【flav】Members | |
---|---|
1 | 2 |
3 |
【flav】Members | |
---|---|
1 | 2 |
3 | 4 |
【flav】Members | |
---|---|
1 | 2 |
3 | 4 |
5 |
【flav】Members | |
---|---|
1 | 2 |
【flav】Members | ||
---|---|---|
1 | 2 | 3 |
【flav】Members | ||
---|---|---|
1 | 2 | 3 |
4 |
【flav】Members | ||
---|---|---|
1 | 2 | 3 |
4 | 5 |
The above documentation is transcluded from Template:Catalog2/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |