Template:H-langs

From FamilySearch Wiki

(Difference between revisions)
(Create)
 
(Add comments)
Line 1: Line 1:
<div id="otherlangs" class="plainlinks" style="direction:ltr">[[Image:Geographylogo.png|20px]] '''{{int:otherlanguages}}:''' <!--
+
<div class="plainlinks" id="otherlangs" style="direction: ltr">[[Image:Geographylogo.png|20px]] '''{{int:otherlanguages}}:''' <!--
-->{{#if:{{{en|}}}|'''{{Ill|{{{en}}}|en|class=firstlang}}'''}} <!--
+
-->{{#if:{{{en|}}}|{{Ill|{{{en}}}|en|class=firstlang}}}} <!--
 +
-- first language is above (the CONTENTLANG). Make sure comment out below. --
 
-->{{#if:{{{ang|}}}|{{Ill|{{{ang}}}|ang}}}} <!--
 
-->{{#if:{{{ang|}}}|{{Ill|{{{ang}}}|ang}}}} <!--
 
-->{{#if:{{{af|}}}|{{Ill|{{{af}}}|af}}}} <!--
 
-->{{#if:{{{af|}}}|{{Ill|{{{af}}}|af}}}} <!--
Line 14: Line 15:
 
-->{{#if:{{{de|}}}|{{Ill|{{{de}}}|de}}}} <!--
 
-->{{#if:{{{de|}}}|{{Ill|{{{de}}}|de}}}} <!--
 
-->{{#if:{{{el|}}}|{{Ill|{{{el}}}|el}}}} <!--
 
-->{{#if:{{{el|}}}|{{Ill|{{{el}}}|el}}}} <!--
 +
--><!-- firstlang {{#if:{{{en|}}}|{{Ill|{{{en}}}|en}}}} --><!--
 
-->{{#if:{{{eo|}}}|{{Ill|{{{eo}}}|eo}}}} <!--
 
-->{{#if:{{{eo|}}}|{{Ill|{{{eo}}}|eo}}}} <!--
 
-->{{#if:{{{es|}}}|{{Ill|{{{es}}}|es}}}} <!--
 
-->{{#if:{{{es|}}}|{{Ill|{{{es}}}|es}}}} <!--

Revision as of 19:35, 2 June 2010

[view] [edit] [history] [purge] Documentation icon Template documentation

Usage

The {{H-langs}} template creates a formatted set of links between the various languages of the Research Wiki.

Example

  • {{H-langs|en=Main Page|es=Página_Principal}}

Available parameters

As shown in the above example, the most common parameter would be the language codes followed by the page name (in that language). The languages codes may be viewed in the IANA registry. If the current language code is passed as a parameter, that language will display as bold and not as a link.

Besides the language codes, the following parameters may be used:

  • help: Displays the help text specified, if used.
  • template: If this template was called by another template, you may include the template name and then an edit link will appear.