Difference between revisions of "Template:Enumeration"

From AtlasWiki
Jump to: navigation, search
(now possible to have either an enumeration page, and use the template there without a name argument, or to use it on a normal page and pass a name argument)
(now using the name of the enumeration for the header of the table listing the members)
Line 15: Line 15:
 
{| class="xcsgtable"
 
{| class="xcsgtable"
 
|-
 
|-
! Member !! Description
+
! {{#ifeq:{{PAGENAME}}|Enumeration|<nowiki>{{PAGENAME}}</nowiki>|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}}} !! Description
 
<noinclude><!-- parse members of the  --></noinclude>
 
<noinclude><!-- parse members of the  --></noinclude>
 
|-{{#arraydefine:members|{{{members|first,,description of first;;second,,description of second}}}|;;|}}
 
|-{{#arraydefine:members|{{{members|first,,description of first;;second,,description of second}}}|;;|}}

Revision as of 10:46, 14 April 2014

Creates the table for an enumeration, a set of related tags, in this format:

Enumeration {{PAGENAME}}
Description {{{description}}}
{{PAGENAME}} Description
first description of first
second description of second