Template:Infobox PC: Difference between revisions

From Stiles Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 64: Line 64:
|belowclass = mergedrowtop mergedrowbottom
|belowclass = mergedrowtop mergedrowbottom
|below = {{#if:{{{charactersheet|}}}|[{{{charactersheet|}}} Character Sheet]}}
|below = {{#if:{{{charactersheet|}}}|[{{{charactersheet|}}} Character Sheet]}}
[[Category:All Player Characters]]
}}[[Category:All Player Characters]]
{{#vardefine:CampaignNumber|0}}
{{#vardefine:CampaignNumber|0}}
{{#vardefine:CampaignName|{{#replace:{{#replace:{{#replace:{{#explode:{{{campaigns}}}|{{•}}|{{#var:CampaignNumber}}}}|[|}}|]|}}|<br />|}}}}
{{#vardefine:CampaignName|{{#replace:{{#replace:{{#replace:{{#explode:{{{campaigns}}}|{{•}}|{{#var:CampaignNumber}}}}|[|}}|]|}}|<br />|}}}}
Line 70: Line 70:
|{{#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}}}}|[|}}|]|}}}}
}}
}}</includeonly><noinclude>[[Category:Templates]]</noinclude>
}}</includeonly><noinclude>[[Category:Templates]]</noinclude>

Revision as of 15:15, 24 March 2021