Template:Ill/doc

From FamilySearch Wiki

(Difference between revisions)
(Examples: add example)
(Put in alphabetical order)
Line 15: Line 15:
  
 
*{{Tlx|ill|Hauptseite|de}}  
 
*{{Tlx|ill|Hauptseite|de}}  
*:{{ill|Hauptseite|de}}
+
*:{{ill|Hauptseite|de}}  
*{{Tlx|ill|Argentina: Archivos y Bibliotecas|es}}
+
*:{{ill|Argentina: Archivos y Bibliotecas|es}}
+
 
*{{Tlx|ill|Help:Template|en}}  
 
*{{Tlx|ill|Help:Template|en}}  
*:{{ill|Help:Template|en}}
+
*:{{ill|Help:Template|en}}
 +
*{{Tlx|ill|Argentina: Archivos y Bibliotecas|es}}
 +
*:{{ill|Argentina: Archivos y Bibliotecas|es}}  
 
*{{Tlx|ill|עמוד ראשי|he|dir=rtl}}  
 
*{{Tlx|ill|עמוד ראשי|he|dir=rtl}}  
 
*:{{ill|עמוד ראשי|he|dir=rtl}}
 
*:{{ill|עמוד ראשי|he|dir=rtl}}
Line 25: Line 25:
 
----
 
----
  
;Example of a template using this technique:
+
;Example of a template using this technique  
 +
:
  
 
{{evaldemo|ParserFunctions|s==<small>}}.  
 
{{evaldemo|ParserFunctions|s==<small>}}.  
Line 31: Line 32:
 
----
 
----
  
;Caveat:
+
;Caveat  
 +
:
  
 
Templates using [[Template:Ill|ill]] on '''separate''' lines can't be used '''within''' a [[Help:List|list]], e.g.  
 
Templates using [[Template:Ill|ill]] on '''separate''' lines can't be used '''within''' a [[Help:List|list]], e.g.  

Revision as of 01:58, 26 June 2012

This template generates a link to an alternate language of the page.

Usage

Use this on Template:H-langs:NAMEOFPAGE style pages. Always finish off with a {{edi|NAMEOFTEMPLATE}}, so that you have an edit link and a "terminator" required by older layouts. For details see Help page footer templates.

If the language code passed in is the same as the CONTENTLANG, the language text is automatically made bold and will not be a link.

Syntax

  • {{ill|Link to page|Language code of page}}
  • {{ill|Link to page|Language code of page|dir=rtl}}

Examples


Example of a template using this technique

{{ ParserFunctions }} = Template:ParserFunctions.


Caveat

Templates using ill on separate lines can't be used within a list, e.g.

{{ H-langs:Link }}

Template:H-langs:Link

Template:Ph:MediaWiki help policy