Difference between revisions of "Template:OurInterwiki"

From PC-BSD Wiki
Jump to: navigation, search
(28 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<onlyinclude>{{#ifeq: {{{first|}}}|list|===List of Shortcuts===|{{#switch: {{{first}}} }}
+
<onlyinclude>{{#switch: {{{first}}}             <!-- #### Do not modify this line ####  Place shortcut additions between these 2 lines -->
{{#ifeq:{{{first|}}}|list|*|{{!}}|}}commons      = http://commons.wikimedia.org/wiki/
+
| commons      = http://commons.wikimedia.org/wiki/
{{#ifeq:{{{first|}}}|list|*|{{!}}|}}fbsd          = http://wiki.freebsd.org/
+
| 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}}
{{#ifeq:{{{first|}}}|list|*|{{!}}|}}fbsddh        = http://www.freebsd.org/doc/en/books/developers-handbook/
+
| fbsd          = http://wiki.freebsd.org/
{{#ifeq:{{{first|}}}|list|*|{{!}}|}}fbsdh        = http://www.freebsd.org/doc/en/books/handbook/
+
| fbsddh        = http://www.freebsd.org/doc/{{putLangURL}}/books/developers-handbook/
{{#ifeq:{{{first|}}}|list|*|{{!}}|}}fbsdph        = http://www.freebsd.org/doc/en/books/porters-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/
{{#ifeq:{{{first|}}}|list|*|{{!}}|}}mw            = http://www.mediawiki.org/wiki/
+
| fbsdph        = http://www.freebsd.org/doc/{{putLangURL}}/books/porters-handbook/
{{#ifeq:{{{first|}}}|list|*|{{!}}|}}mediawikiwiki = http://www.mediawiki.org/wiki/
+
| mw              <!-- This is a fall-through to the next line -->
{{#ifeq:{{{first|}}}|list|*|{{!}}|}}mediazilla    = http://bugzilla.wikimedia.org/
+
| mediawikiwiki = http://www.mediawiki.org/wiki/
{{#ifeq:{{{first|}}}|list|*|{{!}}|}}meta          = http://meta.wikimedia.org/wiki/
+
| mediazilla    = http://bugzilla.wikimedia.org/
{{#ifeq:{{{first|}}}|list|*|{{!}}|}}trac          = http://trac.pcbsd.org/wiki/
+
| meta          = http://meta.wikimedia.org/wiki/
{{#ifeq:{{{first|}}}|list|*|{{!}}|}}wikibooks    = http://en.wikibooks.org/wiki/
+
| pcbsdlist    = http://lists.pcbsd.org/mailman/listinfo/
{{#ifeq:{{{first|}}}|list|*|{{!}}|}}wikimedia    = http://wikimediafoundation.org/wiki/
+
| trac          = http://trac.pcbsd.org/wiki/
{{#ifeq:{{{first|}}}|list|*|{{!}}|}}wikinews      = http://en.wikinews.org/wiki/
+
| website      = http://www.pcbsd.org/en/
{{#ifeq:{{{first|}}}|list|*|{{!}}|}}wikiquote    = http://en.wikiquote.org/wiki/
+
| wikibooks    = http://{{putLangURL}}.wikibooks.org/wiki/
{{#ifeq:{{{first|}}}|list|*|{{!}}|}}wikisource    = http://wikisource.org/wiki/
+
| wikimedia    = http://wikimediafoundation.org/wiki/
{{#ifeq:{{{first|}}}|list|*|{{!}}|}}wikispecies  = http://species.wikimedia.org/wiki/
+
| wikinews      = http://{{putLangURL}}.wikinews.org/wiki/
{{#ifeq:{{{first|}}}|list|*|{{!}}|}}wiktionary    = http://en.wiktionary.org/wiki/
+
| wikiquote    = http://{{putLangURL}}.wikiquote.org/wiki/
{{#ifeq:{{{first|}}}|list|*|{{!}}|}}wp            = http://en.wikipedia.org/wiki/
+
| wikisource    = http://wikisource.org/wiki/
{{#ifeq:{{{first|}}}|list|*|{{!}}|}}wikipedia    = http://en.wikipedia.org/wiki/
+
| wikispecies  = http://species.wikimedia.org/wiki/
{{#ifeq:{{{first|}}}|list|*|{{!}}|}}wikiversity  = http://en.wikiversity.org/wiki/
+
| wiktionary    = http://{{putLangURL}}.wiktionary.org/wiki/
{{#ifeq:{{{first|}}}|list| |{{dccb}} }}</onlyinclude><noinclude>
+
| wp              <!-- This is a fall-through to the next line -->
 +
| wikipedia    = http://{{putLangURL}}.wikipedia.org/wiki/
 +
| wikiversity  = http://{{putLangURL}}.wikiversity.org/wiki/      
 +
}}</onlyinclude><noinclude>           <!-- #### Do not modify this line ####  Place shortcut additions between these 2 lines -->
 +
 
 
== 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><!--  
 
</noinclude><!--  
{{#ifeq: string 1 | string 2 | value if identical | value if different }}
+
 
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
+
    putLangURL template autoselects the language of the current page if on a localized page.
# Please remember to add the shortcuts defined here,    #
+
   
# into the explanation section of the citelink template #
+
    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  #
 +
# into the explanation section of the citelink template #      # transclusion as i desire only breaks things, don't! #
 +
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
 
--><noinclude>[[category:Templates]]</noinclude>
 
--><noinclude>[[category:Templates]]</noinclude>

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.