Difference between revisions of "Template:NextRoman"
From Pathfinder Wiki
Line 6: | Line 6: | ||
*<nowiki>{{</nowiki>NextRoman|AY Honors/Camping Skills II}} -> {{NextRoman|AY Honors/Camping Skills II}} | *<nowiki>{{</nowiki>NextRoman|AY Honors/Camping Skills II}} -> {{NextRoman|AY Honors/Camping Skills II}} | ||
*<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 III/es}} -> {{NextRoman|AY Honors/Camping Skills III/es}} | ||
*<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 I}} -> {{NextRoman|AY Honors/Bully Prevention I}} | ||
*<nowiki>{{</nowiki>NextRoman|AY Honors/Bully Prevention II}} -> {{NextRoman|AY Honors/Bully Prevention II}} | *<nowiki>{{</nowiki>NextRoman|AY Honors/Bully Prevention II}} -> {{NextRoman|AY Honors/Bully Prevention II}} | ||
− | </noinclude>{{#vardefine: | + | </noinclude>{{#vardefine:landing|{{#titleparts:{{{1}}}|2}}}}{{#vardefine:lastword|{{#explode:{{#var:landing}}| |-1}}}}{{#vardefine:nextroman|{{#replace:{{#var:landing}}| {{#var:lastword}}| {{Proxima|{{#var:lastword}}}}}}}}{{#ifexist:{{#ifeq:{{#var:landing}}|{{#var:nextroman}}||{{#var:nextroman}}}}|[[{{#var:nextroman}}{{GetLangSuffix|page={{{1}}}}}|{{GetHonorName|page={{{1}}}}}]]}} |
Revision as of 04:48, 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 I
- {{NextRoman|AY Honors/Camping Skills II}} -> Camping Skills II
- {{NextRoman|AY Honors/Camping Skills III}} -> Camping Skills III
- {{NextRoman|AY Honors/Camping Skills III/es}} -> Camping Skills III
- {{NextRoman|AY Honors/Camping Skills IV}} ->
- {{NextRoman|AY Honors/Bully Prevention I}} -> Bully Prevention I
- {{NextRoman|AY Honors/Bully Prevention II}} ->