Difference between revisions of "Template:Catalog2"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 6: Line 6:
|{{#ifexpr:{{#var:totalTerms}}<6|{{#var:totalTerms}}|6}}
|{{#ifexpr:{{#var:totalTerms}}<6|{{#var:totalTerms}}|6}}
}}
}}
}}<!--column define ends, table generation begins-->{|{{#ifeq:{{{collapsed|}}}|true|class="wikitable mw-collapsible mw-collapsed"|class="wikitable mw-collapsible"}} style="text-align:center;"
}}<!--column define ends, table generation begins-->{|{{#ifeq:{{{collapsed|}}}|true|class="wikitable mw-collapsible mw-collapsed"|class="wikitable mw-collapsible"}} style="text-align:{{{align|center}}};"
!colspan={{#var:columns}}|{{Flavor text|{{{flavor|}}}}} {{{title|Members}}}
!colspan={{#var:columns}}|{{Flavor text|{{{flavor|}}}}} {{{title|Members}}}
|- style="vertical-align:top;"
|-  
{{#loop: row
{{#loop: row
| 1
| 1
| {{#expr:ceil({{#var:totalTerms}}/{{#var:columns}})}}
| {{#expr:ceil({{#var:totalTerms}}/{{#var:columns}})}}
|<nowiki/>
|<nowiki/>
{{!}}-
{{!}}-style="vertical-align:top;"
{{
{{
   #loop: column
   #loop: column

Latest revision as of 14:03, 26 August 2019


Template documentation[view] [edit] [history] [purge]

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}}
}}
【ジェノサイダーズ】 Otemachi Genociders

Arc
【Guild Master】


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}}
Group
a b c d e f
g h i j k l
m n o p
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}}
Members
1 2 3 4 5
Members
1 2 3 4 5 6
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}}
Members
1 2
3 4
5
Members
1 2
3 4
5 6
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}}
Members
1 2
Members
1 2 3
Members
1 2 3 4
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}}
Members
1 2
Members
1 2
3
Members
1 2
3 4
Members
1 2
3 4
5
Members
1 2
Members
1 2 3
Members
1 2 3
4
Members
1 2 3
4 5