Difference between revisions of "Template:Back"

From Valve Developer Community
Jump to: navigation, search
m (test2)
m (Added support to use categories in links, added optional link renaming)
 
Line 1: Line 1:
<includeonly>:&larr; <small>[[{{{1|}}}]]</small><br></includeonly><noinclude>
+
<includeonly>:&larr; <small>{{#if: {{{2|}}} | [[:{{{1}}} | {{{2}}}]] | [[:{{{1}}}]] }}</small><br></includeonly><noinclude>
This is navigation template.
+
This is navigation template. An optional linkname can be added if the pagename is undesirable.
  
Usage: <tt><nowiki>{{Back|pagename}}</nowiki></tt>
+
Usage: <tt><nowiki>{{Back|Pagename|Linkname}}</nowiki></tt>
  
Example: {{Back|Main Page}}
+
Example 1: {{Back|Main Page}}
 +
Example 2 (Category): {{Back|Category: Level Design | Level Design}}  
  
 
[[Category:Navigation templates|{{PAGENAME}}]]
 
[[Category:Navigation templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Latest revision as of 12:08, 5 July 2019

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