Difference between revisions of "Template:Link.news"

From Issuepedia
Jump to navigation Jump to search
(attempting template for category expansion)
(corrected: redundant category expansion replaced with keylist expansion (for nice display of data on its own page))
Line 4: Line 4:
 
{{data.pair|Title|<<linktitle>>}}
 
{{data.pair|Title|<<linktitle>>}}
 
{{data.pair|Text|<<text>>}}<noinclude>
 
{{data.pair|Text|<<text>>}}<noinclude>
{{#xploop:{{#var:Topics}}|[[category:data.links.$s$]]|}}
 
 
[[category:experimental]]
 
[[category:experimental]]
 
{{data.catg.expand|{{#var:Topics}}}}
 
{{data.catg.expand|{{#var:Topics}}}}
 +
{{#xploop:{{#var:keylist}}|* '''$s$''': \o#var:$s$\c\n}}
 
</noinclude>
 
</noinclude>

Revision as of 22:50, 6 December 2007

{{#vardefine:keylist|}}{{#vardefine:Date|<<date>>}}{{#vardefine:keylist|{{#var:keylist}}\Date}}{{#vardefine:Date.disp|<<date>>}}{{#vardefine:Date.disp|[[{{#var:Date}}]]}}[[category:<<date>>]]{{#vardefine:Topics|<<topics>>}}{{#vardefine:keylist|{{#var:keylist}}\Topics}}{{#vardefine:Topics.disp|<<topics>>}}{{#vardefine:URL|<<url>>}}{{#vardefine:keylist|{{#var:keylist}}\URL}}{{#vardefine:URL.disp|<<url>>}}{{#vardefine:Title|<<linktitle>>}}{{#vardefine:keylist|{{#var:keylist}}\Title}}{{#vardefine:Title.disp|<<linktitle>>}}{{#vardefine:Text|<<text>>}}{{#vardefine:keylist|{{#var:keylist}}\Text}}{{#vardefine:Text.disp|<<text>>}} {{#xploop:{{#var:Topics}}||}} {{#xploop:{{#var:keylist}}|* $s$: \o#var:$s$\c\n}}