Template:Ill/doc: Difference between revisions
(Create) |
(Add comment) |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | {{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->This template generates a link to an alternate language of the page. | ||
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 {{Tlx|edi|NAMEOFTEMPLATE}}, so that you have an edit link and a "terminator" required by older layouts. For details see [[Help:Help page footer templates|Help page footer templates]]. | Use this on Template:H-langs:NAMEOFPAGE style pages. Always finish off with a {{Tlx|edi|NAMEOFTEMPLATE}}, so that you have an edit link and a "terminator" required by older layouts. For details see [[Help:Help page footer templates|Help page footer templates]]. | ||
=== Syntax === | 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. | ||
* {{Tlx|ill|Link to page|Language code of page}} | |||
* {{Tlx|ill|Link to page|Language code of page|dir=rtl}} | === Syntax === | ||
*{{Tlx|ill|Link to page|Language code of page}} | |||
*{{Tlx|ill|Link to page|Language code of page|dir=rtl}} | |||
=== Examples === | |||
*{{Tlx|ill|Hauptseite|de}} | |||
*:{{ill|Hauptseite|de}} | |||
*{{Tlx|ill|Help:Template|en}} | |||
*:{{ill|Help:Template|en}} | |||
*{{Tlx|ill|עמוד ראשי|he|dir=rtl}} | |||
*:{{ill|עמוד ראשי|he|dir=rtl}} | |||
---- | ---- | ||
; Example of a template using this technique | |||
{{evaldemo|ParserFunctions|s==<small>}} | ;Example of a template using this technique: | ||
{{evaldemo|ParserFunctions|s==<small>}}. | |||
---- | ---- | ||
{{evaldemo|H-langs:Link|:}} | ;Caveat: | ||
Templates using [[Template:Ill|ill]] on '''separate''' lines can't be used '''within''' a [[Help:List|list]], e.g. | |||
{{evaldemo|H-langs:Link|:}} | |||
---- | ---- | ||
[[Category: | {{Ph:MediaWiki help policy}} | ||
[[Category:Handbook_templates|{{PAGENAME}}]] |
Revision as of 13:38, 2 June 2010
![]() |
This is a documentation subpage for Template:Ill (see that page for the template itself). It contains usage information, categories and other content that is not part of the original template page. |
This template generates a link to an alternate language of the page.
Usage[edit source]
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[edit source]
- {{ill{{{4}}}{{{5}}}{{{6}}}{{{7}}}{{{8}}}{{{9}}}{{{10}}}{{{11}}}...}}
- {{ill{{{5}}}{{{6}}}{{{7}}}{{{8}}}{{{9}}}{{{10}}}{{{11}}}...}}
Examples[edit source]
- {{ill{{{4}}}{{{5}}}{{{6}}}{{{7}}}{{{8}}}{{{9}}}{{{10}}}{{{11}}}...}}
- {{ill{{{4}}}{{{5}}}{{{6}}}{{{7}}}{{{8}}}{{{9}}}{{{10}}}{{{11}}}...}}
- English
- {{ill{{{5}}}{{{6}}}{{{7}}}{{{8}}}{{{9}}}{{{10}}}{{{11}}}...}}
- 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
}}