Template:ListofCards: Difference between revisions

From Unforgotten Realms Wiki
Jump to navigationJump to search
imported>Pillowkeeper
Adding this to make a central list of all cards without descriptions etc.
 
imported>Pillowkeeper
mNo edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<table width="250px" border="0" cellspacing="0" class="wikitable sortable mw-collapsible">
<noinclude>
Maximum rows is 100 due to limitations in the looping parser.
<pre>{{ListofCards
|collapsed=
|title=
|titleback=
|titlebord=
|tableback=
|tablebord=
|titlefont=
|tblfont=
|name1=
...
}}
</pre>
[[Category:Templates]]
</noinclude>
 
<table width="250px" border="0" cellspacing="0" class="wikitable sortable mw-collapsible {{{collapsed}}}">
<tr>
<tr>
<th style="color:black;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>
</tr>
</tr>


<tr style="color:black; background:{{{tableback}}}; margin:auto; border:1px solid {{{tablebord}}}}; text-align:center" id="{{{name1}}}">
<tr style="color:{{{tblfont}}}; background:{{{tableback}}}; margin:auto; border:1px solid {{{tablebord}}}}; text-align:center" id="{{{name1}}}">
<td>{{{name1}}}</td>
<td>{{{name1}}}</td>
</tr>
</tr>
Line 12: Line 30:
   |  {{{ name{{#var: i }} | }}}
   |  {{{ name{{#var: i }} | }}}
   |   
   |   
<tr id ="{{{name{{#var: i }}}}}"  style="color:black; 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}}}