Difference between revisions of "Template:NextRoman"
From Pathfinder Wiki
Line 7: | Line 7: | ||
*<nowiki>{{</nowiki>NextRoman|AY Honors/Camping Skills III}} -> {{NextRoman|AY Honors/Camping Skills III}} | *<nowiki>{{</nowiki>NextRoman|AY Honors/Camping Skills III}} -> {{NextRoman|AY Honors/Camping Skills III}} | ||
*<nowiki>{{</nowiki>NextRoman|AY Honors/Camping Skills IV}} -> {{NextRoman|AY Honors/Camping Skills IV}} | *<nowiki>{{</nowiki>NextRoman|AY Honors/Camping Skills IV}} -> {{NextRoman|AY Honors/Camping Skills IV}} | ||
+ | *<nowiki>{{</nowiki>NextRoman|AY Honors/Bully Prevention I}} -> {{NextRoman|AY Honors/Bully Prevention I}} | ||
+ | *<nowiki>{{</nowiki>NextRoman|AY Honors/Bully Prevention II}} -> {{NextRoman|AY Honors/Bully Prevention II}} | ||
</noinclude>{{#vardefine:lastword|{{#explode:{{{1}}}| |-1}}}}{{#vardefine:nextroman|{{#replace:{{{1}}}| {{#var:lastword}}| {{Proxima|{{#var:lastword}}}}}}}}{{#ifexist:{{#ifeq:{{{1}}}|{{#var:nextroman}}||{{#var:nextroman}}}}|[[{{#var:nextroman}}|{{#titleparts:{{#var:nextroman}}| |-1}}]]}} | </noinclude>{{#vardefine:lastword|{{#explode:{{{1}}}| |-1}}}}{{#vardefine:nextroman|{{#replace:{{{1}}}| {{#var:lastword}}| {{Proxima|{{#var:lastword}}}}}}}}{{#ifexist:{{#ifeq:{{{1}}}|{{#var:nextroman}}||{{#var:nextroman}}}}|[[{{#var:nextroman}}|{{#titleparts:{{#var:nextroman}}| |-1}}]]}} |
Revision as of 04:35, 4 February 2021
If the link to the honor in {{{1}}} is an honor that ends with a roman numeral, and the next honor in the series exists, this template will return a link to that honor. If the honor doesn't end with a roman numeral, or if the next honor in the series does not exist, it will return nothing.
- {{NextRoman|AY Honors/Camp Craft}} ->
- {{NextRoman|AY Honors/Camping Skills I}} -> Camping Skills II
- {{NextRoman|AY Honors/Camping Skills II}} -> Camping Skills III
- {{NextRoman|AY Honors/Camping Skills III}} -> Camping Skills IV
- {{NextRoman|AY Honors/Camping Skills IV}} ->
- {{NextRoman|AY Honors/Bully Prevention I}} -> Bully Prevention II
- {{NextRoman|AY Honors/Bully Prevention II}} ->