Sorry for the inconvenience.  Chance of typos in templates, the navigation header should be functional for most versions of the handbook.
Potential remains for unforeseen breakage primarily in the handbook portion of the wiki.
Notice will be up until above verified and no other troubles found from recent modifications.

Difference between revisions of "Template:OurInterwiki"

From PC-BSD Wiki
Jump to: navigation, search
m (add your own website as shortcut)
(set new site for ports overlay with old key and add new key for it as well)
 
(31 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 -->
+
<includeonly>{{#switch: {{{first}}}<!-- *** DO NOT modify this line *** Add shortcuts below alphabetical by keyword -->
 +
| 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}}
 
| commons      = http://commons.wikimedia.org/wiki/
 
| commons      = http://commons.wikimedia.org/wiki/
| fbsd          = http://wiki.freebsd.org/
+
| fbsd          = http://wiki.freebsd.org/ <!-- depreciated -->
| 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/
+
| fbsdhp        = http://www.freebsd.org/  <!-- home page -->
| mw              <!-- This is a fall-through to the next line -->
+
| fbsdph        = http://www.freebsd.org/doc/{{putLangURL}}/books/porters-handbook/
 +
| fbsdw        = http://wiki.freebsd.org/
 +
| fbsd2        = http://wiki.freebsd.org/  <!-- depreciated -->
 +
| ffbsd        = http://forums.freebsd.org/
 +
| fpcbsd        = http://forums.pcbsd.org/
 +
| fdpcbsd      = http://forums.pcbsd.org/forumdisplay.php?f=
 +
| manpage      = http://www.freebsd.org/cgi/man.cgi?query=
 
| 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/
| trac          = http://trac.pcbsd.org/wiki/
+
| mw            = http://www.mediawiki.org/wiki/
| wikibooks    = http://en.wikibooks.org/wiki/
+
| pcbsdhp      = http://www.pcbsd.org/{{testLangURL|en|es|fr|br}}/  <!-- home page -->
 +
| pcbsdlist    = http://lists.pcbsd.org/mailman/listinfo/
 +
| pcbsdlists    = http://lists.pcbsd.org/mailman/listinfo/
 +
| portsolay    = https://github.com/pcbsd/pcbsd/tree/master/build-files/ports-overlay/
 +
| -trac          = http://trac.pcbsd.org/wiki/
 +
| tracpo        = https://github.com/pcbsd/pcbsd/tree/master/build-files/ports-overlay/
 +
| website      = http://www.pcbsd.org/{{testLangURL|en|es|fr|br}}/  <!-- depreciated -->
 +
| 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 -->
+
| wikipedia    = http://{{putLangURL}}.wikipedia.org/wiki/
| wikipedia    = http://en.wikipedia.org/wiki/
+
| wikiversity  = http://{{putLangURL}}.wikiversity.org/wiki/
| wikiversity  = http://en.wikiversity.org/wiki/      
+
| wp            = http://{{putLangURL}}.wikipedia.org/wiki/
| website      = http://www.pcbsd.org/en/
+
}}</includeonly><noinclude><!-- #### Do not modify this line or below #### Add shortcuts above alphabetical by keyword-->
}}</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]].
 
</noinclude><!--  
 
</noinclude><!--  
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#     #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
+
 
# Please remember to add the shortcuts defined here,    #     # Reminder to self: For whatever reason attempts at  #
+
    putLangURL template autoselects the language of the current page if on a localized page.
# into the explanation section of the citelink template #     # transclusion as i desire only breaks things, don't! #
+
   
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#     #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
+
    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
 +
    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>

Latest revision as of 12:10, 22 August 2014


[edit] Explanation

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

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox