Template:Transclude
Template:{{{1}}}
- This documentation is imported from Template:Transclude/doc
This is an internal helper template used by {{Navbar}} (and anything else that needs to turn a bare page/template name into the correct link target). It is not meant to be used directly in articles.
What it does
Given a page name, it returns:
- the name unchanged if it's already in a namespace other than main (e.g.
User:FoostaysUser:Foo); - the name prefixed with
Template:if it's a bare, unprefixed name (e.g.FoobecomesTemplate:Foo) — since {{Navbar}} is normally called with just a template's bare name; - the name unchanged (with its leading colon effectively preserved) if it was explicitly given as an article in the main namespace (e.g.
:Foostays pointing at the articleFoo, notTemplate:Foo).
This lets {{Navbar}} accept a plain template name like {{Navbar}} and still build a correct Template:Vehicles link, while not breaking if it's ever given something already fully-qualified.