Sorry for the inconvenience.  Known Navigation header breakage.
There may be other unforeseen breakage primarily in the handbook portion of the wiki.
The Table Of Contents section of each "PC-BSD® Users Handbook" page may be the best workaround.

Difference between revisions of "Template:PutLangURL"

From PC-BSD Wiki
Jump to: navigation, search
 
(3 intermediate revisions by one user not shown)
Line 1: Line 1:
 
<includeonly>{{#if:{{getLang}}|{{getLang}}|{{{default|en}}}}}</includeonly><noinclude>
 
<includeonly>{{#if:{{getLang}}|{{getLang}}|{{{default|en}}}}}</includeonly><noinclude>
This template allows for external URLs which may have a localized URL to automatically localize by swapping this template for the portion that has the iso language designation, such as with '''{{http}}www.freebsd.org/doc/'''''<nowiki>{{putLangURL}}</nowiki>'''''/books/developers-handbook/''' for {{http}}www.freebsd.org/doc/'''en'''/books/developers-handbook/. The normal result will be "en" because generally English URLs tend to be used as standard here but a different default can be defined as needed via <nowiki>{{putLangURL|default=de}}</nowiki> as an example.
+
This template allows for external URLs which may have a localized URL to automatically localize by swapping this template for the portion that has the iso language designation, such as with '''{{http}}www.freebsd.org/doc/'''''<nowiki>{{putLangURL}}</nowiki>'''''/books/developers-handbook/''' for {{http}}www.freebsd.org/doc/'''en'''/books/developers-handbook/. The normal result will be "en" because generally English URLs tend to be used as standard here.
 +
 
 +
<!-- This will allow any language to succeed but to limit to known localized sites use template testLangURL -->
 +
 
 +
<!-- but a different default can be defined as needed via <nowiki>{{putLangURL|default=de}}</nowiki> as an example. -->
 +
[[category:templates]]
 +
</noinclude>

Latest revision as of 00:20, 6 September 2013

This template allows for external URLs which may have a localized URL to automatically localize by swapping this template for the portion that has the iso language designation, such as with http://www.freebsd.org/doc/{{putLangURL}}/books/developers-handbook/ for http://www.freebsd.org/doc/en/books/developers-handbook/. The normal result will be "en" because generally English URLs tend to be used as standard here.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox