Difference between revisions of "Template:AddRomanToSeeAlso"

From Pathfinder Wiki
(Created page with "<includeonly> {{#vardefine:page|{{{page|{{PAGENAME}} }}} }} *page={{#var:page}} {{#vardefine:nextromanlink|{{NextRoman|{{#var:page}} }} }} {{#if:{{#var:nextromanlink}}| {{#v...")
 
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
 
{{#vardefine:page|{{{page|{{PAGENAME}} }}} }}
 
{{#vardefine:page|{{{page|{{PAGENAME}} }}} }}
 
+
<!--Get the next roman-->
*page={{#var:page}}
 
 
 
 
{{#vardefine:nextromanlink|{{NextRoman|{{#var:page}} }} }}
 
{{#vardefine:nextromanlink|{{NextRoman|{{#var:page}} }} }}
 
{{#if:{{#var:nextromanlink}}|
 
{{#if:{{#var:nextromanlink}}|
Line 11: Line 9:
 
{{#vardefine:nextdisplayname|{{#replace:{{#explode:{{#var:nextromanlink}}|{{!}}|1}}|]}}}}
 
{{#vardefine:nextdisplayname|{{#replace:{{#explode:{{#var:nextromanlink}}|{{!}}|1}}|]}}}}
 
{{#vardefine:nexthonorname|{{#titleparts:{{#var:nextpagetitle}}|1|2}}}}
 
{{#vardefine:nexthonorname|{{#titleparts:{{#var:nextpagetitle}}|1|2}}}}
[[:Category:AY Honors/See Also/{{#var:nexthonorname}}{{GetLangSuffix|page={{#var:page}}}}|{{#var:nextdisplayname}}]]
+
{{#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>
 
</includeonly>
 
<noinclude>
 
<noinclude>

Revision as of 05:15, 5 February 2021