Template:Back: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Added support to use categories in links, added optional link renaming)
(There was the issue that using this template followed by another would keep the indent of this one. Fixed by replacing <br> with a newline.)
Line 1: Line 1:
<includeonly>:&larr; <small>{{#if: {{{2|}}} | [[:{{{1}}} | {{{2}}}]] | [[:{{{1}}}]] }}</small><br></includeonly><noinclude>
<onlyinclude><includeonly>:&larr; <small>{{#if: {{{2|}}} | [[:{{{1}}} | {{{2}}}]] | [[:{{{1}}}]] }}</small>
<!-- we do want a line break here to end the indent--></includeonly></onlyinclude>
 
This is navigation template. An optional linkname can be added if the pagename is undesirable.
This is navigation template. An optional linkname can be added if the pagename is undesirable.


Line 8: Line 10:


[[Category:Navigation templates|{{PAGENAME}}]]
[[Category:Navigation templates|{{PAGENAME}}]]
</noinclude>

Revision as of 10:27, 3 September 2021


This is navigation template. An optional linkname can be added if the pagename is undesirable.

Usage: {{Back|Pagename|Linkname}}

Example 1:

Main Page

Example 2 (Category):

Level Design