Difference between revisions of "Template:Honor index"

From Pathfinder Wiki
Line 2: Line 2:
 
<includeonly>
 
<includeonly>
 
<!-- that loop's through all argument's with the prefix cat and saves it into a variable -->
 
<!-- that loop's through all argument's with the prefix cat and saves it into a variable -->
{{#vardefine:argIncCat|AY Honors/Honor landing{{GetLangSuffix}}&AY Honors/Primary}}{{#forargs: cat | key | category |<nowiki />{{#vardefine: argIncCat |{{#var:argIncCat}}{{#if:{{#var:category}}|&{{#var:category}}{{GetLangSuffix}} }} }} }}
+
{{#vardefine:argIncCat|AY Honors/Honor landing{{GetLangSuffix}}&AY Honors/Primary}}{{#forargs: cat | key | category |<nowiki />{{#vardefine: argIncCat |{{#var:argIncCat}}{{#if:{{#var:category}}|&{{#var:category}} }} }} }}
{{#vardefine:argExcCat|¦notegory=AY Honors/Secondary}}{{#forargs: excat | exkey | excategory |<nowiki />{{#vardefine: argExcCat |{{#var:argExcCat}}{{#if:{{#var:excategory}}|¦notcategory={{#var:excategory}}{{GetLangSuffix}} }} }} }}
 
 
{{#dpl:
 
{{#dpl:
 
|debug=0
 
|debug=0
Line 10: Line 9:
 
|tablerow=[[%PAGE%¦%%]],[[File:%%¦30px¦center]],align="left"¦²{Localize¦%%}²,align="center"¦²{division honor¦²{division abbrev¦%%}²}²,align="center"¦%%,align="center"¦%%
 
|tablerow=[[%PAGE%¦%%]],[[File:%%¦30px¦center]],align="left"¦²{Localize¦%%}²,align="center"¦²{division honor¦²{division abbrev¦%%}²}²,align="center"¦%%,align="center"¦%%
 
|category={{#var:argIncCat}}
 
|category={{#var:argIncCat}}
{{#var:argExcCat}}
+
|notcategory={{{excat1|}}}
 +
|notcategory={{{excat2|}}}
 +
|notcategory={{{excat3|}}}
 +
|notcategory={{{excat4|}}}
 +
|notcategory={{{excat5|}}}
 
|nottitleregexp=.*/en$
 
|nottitleregexp=.*/en$
 
|ordermethod=sortkey
 
|ordermethod=sortkey

Revision as of 02:38, 31 January 2021