Difference between revisions of "Template:OurInterwiki"

From PC-BSD Wiki
Jump to: navigation, search
(2 intermediate revisions by one user not shown)
Line 1: Line 1:
<onlyinclude>{{#switch: {{{first}}}             <!-- #### Do not modify this line ####  Place shortcut additions between these 2 lines -->
+
<onlyinclude>{{#switch: {{{first}}}         <!-- #### Do not modify this line ####  Place shortcut additions between these 2 lines -->
 
| commons      = http://commons.wikimedia.org/wiki/
 
| commons      = http://commons.wikimedia.org/wiki/
 
| ccby3        = https://creativecommons.org/licenses/by/3.0/deed.{{testLangURL|es|es_ES|ca|de|eo|fr|id|it|hu|no|nl|pl|pt|pt_BR|fi|sv|is|el|ru|uk|zh|zh_TW|ko}}
 
| ccby3        = https://creativecommons.org/licenses/by/3.0/deed.{{testLangURL|es|es_ES|ca|de|eo|fr|id|it|hu|no|nl|pl|pt|pt_BR|fi|sv|is|el|ru|uk|zh|zh_TW|ko}}
Line 28: Line 28:
 
| wp              <!-- This is a fall-through to the next line -->
 
| wp              <!-- This is a fall-through to the next line -->
 
| wikipedia    = http://{{putLangURL}}.wikipedia.org/wiki/
 
| wikipedia    = http://{{putLangURL}}.wikipedia.org/wiki/
| wikiversity  = http://{{putLangURL}}.wikiversity.org/wiki/      
+
| wikiversity  = http://{{putLangURL}}.wikiversity.org/wiki/
}}</onlyinclude><noinclude>           <!-- #### Do not modify this line ####  Place shortcut additions between these 2 lines -->
+
}}</onlyinclude><noinclude>                 <!-- #### Do not modify this line ####  Place shortcut additions between these 2 lines -->
  
 +
<!-- a "default" result for the switch will not work, it will affect all citelink links that have no shortcut used -->
 
== 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]].
Line 37: Line 38:
 
     putLangURL template autoselects the language of the current page if on a localized page.
 
     putLangURL template autoselects the language of the current page if on a localized page.
 
      
 
      
     testLangURL template is provided with a list of up to 30 language codes which could match the current localized page,  
+
     testLangURL template is provided with a list of up to 60 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  
 
     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.
 
     wiki will designate the language of such a localized page.

Revision as of 19:05, 4 November 2013


Explanation

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