Difference between revisions of "Template:OurInterwiki"

From PC-BSD Wiki
Jump to: navigation, search
(13 intermediate revisions by 2 users 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}}
 
| fbsd          = http://wiki.freebsd.org/
 
| fbsd          = http://wiki.freebsd.org/
| fbsddh        = http://www.freebsd.org/doc/en/books/developers-handbook/
+
| fbsddh        = http://www.freebsd.org/doc/{{putLangURL}}/books/developers-handbook/
| fbsdh        = http://www.freebsd.org/doc/en/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/en/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 -->
 
| mediawikiwiki = http://www.mediawiki.org/wiki/
 
| mediawikiwiki = http://www.mediawiki.org/wiki/
 
| mediazilla    = http://bugzilla.wikimedia.org/
 
| mediazilla    = http://bugzilla.wikimedia.org/
 
| meta          = http://meta.wikimedia.org/wiki/
 
| meta          = http://meta.wikimedia.org/wiki/
 +
| pcbsdlist    = http://lists.pcbsd.org/mailman/listinfo/
 
| trac          = http://trac.pcbsd.org/wiki/
 
| trac          = http://trac.pcbsd.org/wiki/
| wikibooks    = http://en.wikibooks.org/wiki/
+
| website      = http://www.pcbsd.org/en/
 +
| wikibooks    = http://{{putLangURL}}.wikibooks.org/wiki/
 
| wikimedia    = http://wikimediafoundation.org/wiki/
 
| wikimedia    = http://wikimediafoundation.org/wiki/
| wikinews      = http://en.wikinews.org/wiki/
+
| wikinews      = http://{{putLangURL}}.wikinews.org/wiki/
| wikiquote    = http://en.wikiquote.org/wiki/
+
| wikiquote    = http://{{putLangURL}}.wikiquote.org/wiki/
 
| wikisource    = http://wikisource.org/wiki/
 
| wikisource    = http://wikisource.org/wiki/
 
| wikispecies  = http://species.wikimedia.org/wiki/
 
| wikispecies  = http://species.wikimedia.org/wiki/
| wiktionary    = http://en.wiktionary.org/wiki/
+
| wiktionary    = http://{{putLangURL}}.wiktionary.org/wiki/
 
| wp              <!-- This is a fall-through to the next line -->
 
| wp              <!-- This is a fall-through to the next line -->
| wikipedia    = http://en.wikipedia.org/wiki/
+
| wikipedia    = http://{{putLangURL}}.wikipedia.org/wiki/
| wikiversity     = http://en.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 -->
  
Line 25: Line 28:
 
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><!--  
 
</noinclude><!--  
 +
 +
    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,
 +
    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.
 +
 
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
 
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
 
# Please remember to add the shortcuts defined here,    #      # Reminder to self: For whatever reason attempts at  #
 
# Please remember to add the shortcuts defined here,    #      # Reminder to self: For whatever reason attempts at  #

Revision as of 22:36, 12 September 2013


Explanation

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