Template:Infobox PC: Difference between revisions

no edit summary
(Undo revision 1783 by Maxwells (talk))
Tag: Undo
No edit summary
Line 69: Line 69:
{{#while:
{{#while:
|{{#if:{{#var:CampaignName}}|true}}
|{{#if:{{#var:CampaignName}}|true}}
|[[Category:{{#var:CampaignName}} PCs]]{{#vardefine:CampaignNumber|{{#expr:{{#var:CampaignNumber}}+1}}}}{{#vardefine:CampaignName|{{#replace:{{#replace:{{#explode:{{{campaigns}}}|{{•}}|{{#var:CampaignNumber}}}}|[|}}|]|}}}}
|[[Category:{{#var:CampaignName}} PCs]]{{#vardefine:CampaignNumber|{{#expr:{{#var:CampaignNumber}}+1}}}}{{#vardefine:CampaignName|{{#replace:{{#replace:{{#explode:{{{campaigns}}}|
* |{{#var:CampaignNumber}}}}|[|}}|]|}}}}
}}
}}