Template:Infobox PC: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 64: | Line 64: | ||
}} | }} | ||
[[Category:All Player Characters]] | [[Category:All Player Characters]] | ||
{{#vardefine:CampaignNumber| | {{#vardefine:CampaignNumber|0}} | ||
{{#vardefine:CampaignName|{{#replace:{{#replace:{{#replace:{{#explode:{{{campaigns}}}|{{•}}|{{#var:CampaignNumber}}}}|[|}}|]|}}|<br />|}}}} | {{#vardefine:CampaignName|{{#replace:{{#replace:{{#replace:{{#explode:{{{campaigns}}}|{{•}}|{{#var:CampaignNumber}}}}|[|}}|]|}}|<br />|}}}} | ||
{{#while: | {{#while: | ||
|{{#if:{{#var:CampaignName}}|true}} | |{{#if:{{#var:CampaignName}}|true}} | ||
|[[Category:{{#var:CampaignName}} PCs]]{{#vardefine:CampaignNumber|{{#expr:{{#var:CampaignNumber}}+1}}}}{{#vardefine:CampaignName| | |[[Category:{{#var:CampaignName}} PCs]]{{#vardefine:CampaignNumber|{{#expr:{{#var:CampaignNumber}}+1}}}}{{#vardefine:CampaignName|{{#replace:{{#replace:{{#explode:{{{campaigns}}}|{{•}}|{{#var:CampaignNumber}}}}|[|}}|]|}}}} | ||
}} | }} | ||
</includeonly> | </includeonly> |
Revision as of 22:04, 22 March 2021