Template:ListofCards: Difference between revisions

From Unforgotten Realms Wiki
Jump to navigationJump to search
imported>Pillowkeeper
mNo edit summary
imported>Pillowkeeper
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
Maximum rows is 100 due to limitations in the looping parser.
Maximum rows is 100 due to limitations in the looping parser.
<pre>{{ListofCards
<pre>{{ListofCards
|collapsed=
|title=
|title=
|titleback=
|titleback=
Line 16: Line 17:
</noinclude>
</noinclude>


<table width="250px" border="0" cellspacing="0" class="wikitable sortable mw-collapsible">
<table width="250px" border="0" cellspacing="0" class="wikitable sortable mw-collapsible {{{collapsed}}}">
<tr>
<tr>
<th style="color:{{{titlefont}}};background:{{{titleback}}};border:1px solid {{{titlebord}}}; padding:1em; margin:auto;">{{{title}}}</th>
<th style="color:{{{titlefont}}};background:{{{titleback}}};border:1px solid {{{titlebord}}}; padding:1em; margin:auto;">{{{title}}}</th>
Line 31: Line 32:
<tr id ="{{{name{{#var: i }}}}}"  style="color:{{{tblfont}}}; background:{{{tableback}}}; margin:auto; border:1px solid {{{tableback}}}; text-align:center">
<tr id ="{{{name{{#var: i }}}}}"  style="color:{{{tblfont}}}; background:{{{tableback}}}; margin:auto; border:1px solid {{{tableback}}}; text-align:center">
<td>{{{name{{#var: i }}}}}</td>
<td>{{{name{{#var: i }}}}}</td>
</tr>
</tr>
{{ #vardefine: i | {{ #expr: {{ #var: i }} + 1 }} }}
{{ #vardefine: i | {{ #expr: {{ #var: i }} + 1 }} }}
}}
}}
</table>
</table>

Latest revision as of 14:51, 6 June 2015

Maximum rows is 100 due to limitations in the looping parser.

{{ListofCards
|collapsed=
|title=
|titleback=
|titlebord=
|tableback=
|tablebord=
|titlefont=
|tblfont=
|name1=
...
}}


{{{title}}}
{{{name1}}}