Difference between revisions of "Template:OurInterwiki"

From PC-BSD Wiki
Jump to: navigation, search
(one final test)
Line 3: Line 3:
 
| fbsd          = http://wiki.freebsd.org/
 
| fbsd          = http://wiki.freebsd.org/
 
| fbsddh        = http://www.freebsd.org/doc/{{putLangURL}}/books/developers-handbook/
 
| fbsddh        = http://www.freebsd.org/doc/{{putLangURL}}/books/developers-handbook/
| fbsdh        = http://www.freebsd.org/doc/{{putLangURL}}/books/handbook/
+
| fbsdh        = http://www.freebsd.org/doc/{{testLangURL|da|de|el|es|fr|hu|it|ja|mn|nl|pt_BR|ru|zh_CN|zh_TW}}/books/handbook/
 
| fbsdph        = http://www.freebsd.org/doc/{{putLangURL}}/books/porters-handbook/
 
| fbsdph        = http://www.freebsd.org/doc/{{putLangURL}}/books/porters-handbook/
 
| mw              <!-- This is a fall-through to the next line -->
 
| mw              <!-- This is a fall-through to the next line -->
Line 25: Line 25:
 
== Explanation ==
 
== Explanation ==
 
This is the subsection listing shortcut names and the urls defined for each, used within the [[Template:citelink | ''citelink'' template]].
 
This is the subsection listing shortcut names and the urls defined for each, used within the [[Template:citelink | ''citelink'' template]].
</noinclude><!-- |da|de|el|es|fr|hu|it|ja|mn|nl|pt_BR|ru|zh_CN|zh_TW
+
</noinclude><!--  
  
FYI: the putLangURL template autoselects the language of the current page or a defined value defined as "default" or "en" if all else fails.
+
    putLangURL template autoselects the language of the current page if on a localized page.
 +
   
 +
    testLangURL template is provided with a list of up to 15 language codes which could match the current localized page,
 +
    if a match is found it is used, or defaults to en. Uncertain about the pt_BR, zh_CN, zh_TW in relation to how the
 +
    wiki will designate the language of such a localized page.
  
 
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
 
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#

Revision as of 01:31, 6 September 2013


Explanation

This is the subsection listing shortcut names and the urls defined for each, used within the citelink template.