Template:SubPage: Difference between revisions

From PortlandWiki
Jump to navigation Jump to search
(Create BrettCrumbs-related template.)
 
m (Minor fixes.)
 
Line 5: Line 5:
The template can be called in the following ways
The template can be called in the following ways


* '''<nowiki><nowiki></nowiki>{{SubPage|Sub Page Location|Sub Page Name}}</nowiki>'''  
* '''<nowiki>{{SubPage|Sub Page Location|Sub Page Name}}</nowiki>'''  
* '''<nowiki><nowiki></nowiki>{{SubPage|Sub Page Location}}</nowiki>'''  
* '''<nowiki>{{SubPage|Sub Page Location}}</nowiki>'''  
   
   
Args:
Args:
Line 13: Line 13:


==Example==
==Example==
* <nowiki><nowiki></nowiki>{{SubPage|SubPage|My Sub Page}}</nowiki> --> {{SubPage|SubPage|My Sub Page}}
* <nowiki>{{SubPage|SubPage|My Sub Page}}</nowiki> --> {{SubPage|SubPage|My Sub Page}}
* <nowiki><nowiki></nowiki>{{SubPage|SubPage}}</nowiki> --> {{SubPage|SubPage}}
* <nowiki>{{SubPage|SubPage}}</nowiki> --> {{SubPage|SubPage}}


[[Category:WikiTemplates]]
[[Category:WikiTemplates]]
</noinclude>
</noinclude>

Latest revision as of 12:34, 13 March 2012

[[Template:SubPage/{{{1}}}|/{{{1}}}]]

Instructions

This template is used when creating sub-page links off the current page. This will give the page hierarchy so that the breadcrumbs will be automatically generated. The template can be called in the following ways

  • {{SubPage|Sub Page Location|Sub Page Name}}
  • {{SubPage|Sub Page Location}}

Args:

  • Sub Page Location The location of the sub-page
  • Sub Page Name (optional) The displayed name of the sub-page

Example