Difference between revisions of "Template:AddRomanToSeeAlso"

From Pathfinder Wiki
m (Jomegat moved page Template:SeeAlsoAdd to Template:AddRomanToSeeAlso without leaving a redirect: Better name for clarity)
 
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
{{#vardefine:page|{{{page|{{PAGENAME}} }}} }}
+
{{#vardefine:page|{{{page|{{PAGENAME}} }}} }}<!--Get the next roman-->{{#vardefine:nextromanlink|{{NextRoman|{{#var:page}} }} }}{{#if:{{#var:nextromanlink}}|{{#vardefine:nextpagetitle|{{#replace:{{#explode:{{#var:nextromanlink}}|{{!}}|0}}|[}}}}{{#if:{{#var:nextpagetitle}}|
<!--Get the next roman-->
+
{{#vardefine:nextdisplayname|{{#replace:{{#explode:{{#var:nextromanlink}}|{{!}}|1}}|]}}}}{{#vardefine:nexthonorname|{{#titleparts:{{#var:nextpagetitle}}|1|2}}}}{{#ifeq:Template|{{NAMESPACE}}
{{#vardefine:nextromanlink|{{NextRoman|{{#var:page}} }} }}
+
|<nowiki>[[</nowiki>Category:AY Honors/See Also/{{#var:nexthonorname}}{{GetLangSuffix|page={{#var:page}}}}{{!}}{{#var:nextdisplayname}}]]|[[Category:AY Honors/See Also/{{#var:nexthonorname}}{{GetLangSuffix|page={{#var:page}}}}|{{#var:nextdisplayname}}]]}}}}}}
{{#if:{{#var:nextromanlink}}|
+
<!--Get the previous roman-->{{#vardefine:prevromanlink|{{PrevRoman|{{#var:page}} }} }}
{{#vardefine:nextpagetitle|{{#replace:{{#explode:{{#var:nextromanlink}}|{{!}}|0}}|[}}}}
+
{{#if:{{#var:prevromanlink}}|{{#vardefine:prevpagetitle|{{#replace:{{#explode:{{#var:prevromanlink}}|{{!}}|0}}|[}}}}{{#if:{{#var:prevpagetitle}}|{{#vardefine:prevdisplayname|{{#replace:{{#explode:{{#var:prevromanlink}}|{{!}}|1}}|]}}}}{{#vardefine:prevhonorname|{{#titleparts:{{#var:prevpagetitle}}|1|2}}}}{{#ifeq:Template|{{NAMESPACE}}|<nowiki>[[</nowiki>Category:AY Honors/See Also/{{#var:prevhonorname}}{{GetLangSuffix|page={{#var:page}}}}{{!}}{{#var:prevdisplayname}}]]|[[Category:AY Honors/See Also/{{#var:prevhonorname}}{{GetLangSuffix|page={{#var:page}}}}|{{#var:prevdisplayname}}]]}}}}}}</includeonly>
 
 
{{#if:{{#var:nextpagetitle}}|
 
{{#vardefine:nextdisplayname|{{#replace:{{#explode:{{#var:nextromanlink}}|{{!}}|1}}|]}}}}
 
{{#vardefine:nexthonorname|{{#titleparts:{{#var:nextpagetitle}}|1|2}}}}
 
{{#ifeq:Template|{{NAMESPACE}}
 
|<nowiki>[[</nowiki>Category:AY Honors/See Also/{{#var:nexthonorname}}{{GetLangSuffix|page={{#var:page}}}}{{!}}{{#var:nextdisplayname}}]]
 
|[[Category:AY Honors/See Also/{{#var:nexthonorname}}{{GetLangSuffix|page={{#var:page}}}}|{{#var:nextdisplayname}}]]
 
}}}}}}
 
<!--Get the previous roman-->
 
{{#vardefine:prevromanlink|{{PrevRoman|{{#var:page}} }} }}
 
{{#if:{{#var:prevromanlink}}|
 
{{#vardefine:prevpagetitle|{{#replace:{{#explode:{{#var:prevromanlink}}|{{!}}|0}}|[}}}}
 
 
 
{{#if:{{#var:prevpagetitle}}|
 
{{#vardefine:prevdisplayname|{{#replace:{{#explode:{{#var:prevromanlink}}|{{!}}|1}}|]}}}}
 
{{#vardefine:prevhonorname|{{#titleparts:{{#var:prevpagetitle}}|1|2}}}}
 
{{#ifeq:Template|{{NAMESPACE}}
 
|<nowiki>[[</nowiki>Category:AY Honors/See Also/{{#var:prevhonorname}}{{GetLangSuffix|page={{#var:page}}}}{{!}}{{#var:prevdisplayname}}]]
 
|[[Category:AY Honors/See Also/{{#var:prevhonorname}}{{GetLangSuffix|page={{#var:page}}}}|{{#var:prevdisplayname}}]]
 
}}}}}}
 
</includeonly>
 
 
<noinclude>
 
<noinclude>
  
 
{{AddRomanToSeeAlso|page=AY Honors/Camping Skills II/es}}
 
{{AddRomanToSeeAlso|page=AY Honors/Camping Skills II/es}}
 
</noinclude>
 
</noinclude>

Latest revision as of 04:08, 10 March 2021



[[Category:AY Honors/See Also/Camping Skills III/es|Camping Skills III]]

[[Category:AY Honors/See Also/Camping Skills I/es|Camping Skills I]]