Template:SP: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
(Initial creation, will update documentation (if it works))
 
(Added basic documentation, still subject to change)
 
Line 1: Line 1:
<includeonly>{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|[[/{{{1|}}}/]]|[[../{{{1|}}}/]]}}</includeonly><noinclude>WIP [[Category:Templates]]</noinclude>
<includeonly>{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|[[/{{{1|}}}/]]|[[../{{{1|}}}/]]}}</includeonly><noinclude>This template creates a link to a given subpage:
 
If the current page is ''not'' a subpage of another page (For instance, [[Noa T'Nessa Levinson]]), it will create a link to the specified subpage of the current page. Otherwise, it creates a link to another subpage of the immediate parent page (If the template was to be used in [[Noa T'Nessa Levinson/Academy Transcript]], for instance, the link generated will be a link to another subpage of [[Noa T'Nessa Levinson]]).
 
If we were to add '''<nowiki>{{SP|Adingo}}</nowiki>''' on this page, it'd generate the following link: {{SP|Adingo}}
 
[[Category:Templates]]</noinclude>

Latest revision as of 15:35, 20 October 2020

This template creates a link to a given subpage:

If the current page is not a subpage of another page (For instance, Noa T'Nessa Levinson), it will create a link to the specified subpage of the current page. Otherwise, it creates a link to another subpage of the immediate parent page (If the template was to be used in Noa T'Nessa Levinson/Academy Transcript, for instance, the link generated will be a link to another subpage of Noa T'Nessa Levinson).

If we were to add {{SP|Adingo}} on this page, it'd generate the following link: Adingo