|
|
Line 63: |
Line 63: |
| |below = {{#if:{{{charactersheet|}}}|[{{{charactersheet|}}} Character Sheet]}} | | |below = {{#if:{{{charactersheet|}}}|[{{{charactersheet|}}} Character Sheet]}} |
| }} | | }} |
| [[Category:All Player Characters]]
| | {{PC Categories}} |
| {{#vardefine:CampaignNumber|0}} | |
| {{#vardefine:CampaignName|{{#replace:{{#replace:{{#replace:{{#explode:{{{campaigns}}}|{{•}}|{{#var:CampaignNumber}}}}|[|}}|]|}}|<br />|}}}}
| |
| {{#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> |
| <noinclude> | | <noinclude> |
| [[Category:Templates]] | | [[Category:Templates]] |
| </noinclude> | | </noinclude> |