Template:EmbeddedSubpageLink: Difference between revisions

No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>[[{{{1}}}{{#switch:{{SUBPAGENAME}}|{{{2}}}=/|&#35;}}{{{2}}}|{{{3|{{{2}}}}}}]]</includeonly><noinclude>
<includeonly>[[{{{1}}}{{#switch:{{SUBPAGENAME}}|{{{2}}}=/|&#35;}}{{{2}}}|{{{3|{{{2}}}}}}]]</includeonly><noinclude>
Link to [[Editing_Guide/Patterns#Embedded Subpages|Embedded Subpages]] nicely for Navboxes and other cases where showing if it is a link to the current page is important.
Link to [[Editing_Guide/Patterns#embedded subpages|Embedded Subpages]] nicely for Navboxes and other cases where showing if it is a link to the current page is important.


Example:
Example:
<pre><nowiki>{{EmbeddedSubpageLink|Outer_Wilds|Echoes of the Eye}}</nowiki></pre>
<pre><nowiki>{{EmbeddedSubpageLink|Outer Wilds|Echoes of the Eye}}</nowiki></pre>
{{EmbeddedSubpageLink|Outer Wilds|Echoes of the Eye}}
{{EmbeddedSubpageLink|Outer Wilds|Echoes of the Eye}}
See how this becomes a self-link when viewed on [[Outer Wilds/Echoes of the Eye]] in the navbox.
See how this becomes a self-link when viewed on [[Outer Wilds/Echoes of the Eye]] in the navbox.