Template:Ill/doc: Difference between revisions

(Put in alphabetical order)
m (remove { from templates)
 
(One intermediate revision by one other user not shown)
Line 9: Line 9:
=== Syntax  ===
=== Syntax  ===


*{{Tlx|ill|Link to page|Language code of page}}  
*{{Tlx|ill|name of page|Language code of page}}  
*{{Tlx|ill|Link to page|Language code of page|dir=rtl}}
*{{Tlx|ill|name of page|Language code of page|dir=rtl}}


=== Examples  ===
=== Examples  ===
Line 28: Line 28:
:
:


{{evaldemo|ParserFunctions|s==<small>}}.  
evaldemo ParserFunctions s==<small>.  


----
----
Line 37: Line 37:
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.  


{{evaldemo|H-langs:Link|:}}
evaldemo H-langs:Link|:  


----
----


{{Ph:MediaWiki help policy}}
Ph:MediaWiki help policy


[[Category:Handbook_templates|{{PAGENAME}}]]
[[Category:Handbook_templates|{{PAGENAME}}]]

Latest revision as of 11:45, 9 January 2019

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{{{3}}}{{{4}}}{{{5}}}{{{6}}}{{{7}}}{{{8}}}{{{9}}}{{{10}}}{{{11}}}...}}, 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{{{4}}}{{{5}}}{{{6}}}{{{7}}}{{{8}}}{{{9}}}{{{10}}}{{{11}}}...}}
  • {{ill{{{5}}}{{{6}}}{{{7}}}{{{8}}}{{{9}}}{{{10}}}{{{11}}}...}}

Examples

  • {{ill{{{4}}}{{{5}}}{{{6}}}{{{7}}}{{{8}}}{{{9}}}{{{10}}}{{{11}}}...}}
    Deutsch
  • {{ill{{{4}}}{{{5}}}{{{6}}}{{{7}}}{{{8}}}{{{9}}}{{{10}}}{{{11}}}...}}
    English
  • {{ill{{{4}}}{{{5}}}{{{6}}}{{{7}}}{{{8}}}{{{9}}}{{{10}}}{{{11}}}...}}
    español
  • {{ill{{{5}}}{{{6}}}{{{7}}}{{{8}}}{{{9}}}{{{10}}}{{{11}}}...}}
    עברית

Example of a template using this technique

evaldemo ParserFunctions s==.


Caveat

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

evaldemo H-langs:Link|:


Ph:MediaWiki help policy