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)
 
(5 intermediate revisions by one other user not shown)
Line 6: Line 6:
 
|-
 
|-
 
! Description
 
! Description
| {{{description}}}
+
| {{{description}}} {{#set: description = {{{description}}} }}
 
{{#if:{{{references|}}}|  
 
{{#if:{{{references|}}}|  
 
   {{!}}-
 
   {{!}}-
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}}}|;;|}}
Line 21: Line 21:
 
{{!}}-
 
{{!}}-
 
{{!}}|var|{{#explode:var|,,|0}} {{!}}{{!}} {{#explode:var|,,|1}} }}
 
{{!}}|var|{{#explode:var|,,|0}} {{!}}{{!}} {{#explode:var|,,|1}} }}
|}<noinclude>
+
|}
 +
 
 +
Used on: {{#ask: [[tagged with enumeration::{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}]]}}
 +
<includeonly>[[Category:XCSG Tags]]</includeonly><noinclude>
 
[[Category:XCSG Templates]]</noinclude>
 
[[Category:XCSG Templates]]</noinclude>

Latest revision as of 15:33, 15 October 2015

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

Used on: