Template:Infobox PC: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 66: Line 66:
[[Category:All Player Characters]]
[[Category:All Player Characters]]
{{#vardefine:CampaignNumber|0}}
{{#vardefine:CampaignNumber|0}}
<xmp>{{campaigns|}}</xmp>
{{#vardefine:CampaignName|{{#replace:{{#replace:{{#explode:{{{campaigns}}}|{{•}}|{{#var:CampaignNumber}}}}|[|}}|]|}}}}
{{#while:
|{{#if:{{#var:CampaignName}}|true}}
|[[Category:{{#var:CampaignName}} PCs]]{{#vardefine:CampaignNumber|{{#expr:{{#var:CampaignNumber}}+1}}}}{{#vardefine:CampaignName|{{#replace:{{#replace:{{#explode:{{{campaigns}}}|{{•}}|{{#var:CampaignNumber}}}}|[|}}|]|}}}}
}}


</includeonly>
</includeonly>