Template:Translation: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(removed reference to sortkey in documentation)
(use flag template, with 2 examples (one where flag exits, one where it doesn't))
Line 1: Line 1:
<includeonly><b><big>[[Image:{{{1}}}.png]] {{{1}}} translation</big></b><br>[[Category:Translations]][[Category:{{{1}}} translations]]</includeonly><noinclude>
<b><big>{{flag|{{{1}}}|show}}} translation</big></b><br><includeonly>[[Category:Translations]][[Category:{{{1}}} translations]]</includeonly><noinclude>
{{DisplayBox|bgcolor=g|text=
{{DisplayBox|bgcolor=g|text=
<nowiki>This template categorizes a page in [[:Category:Translations]] and in [[Category:<language> translations]].</nowiki>
This template categorizes a page in {{CiteCat|Translations}} and in [[Category:<language> translations]]. If the <language> flag exists, it is displayed.
;Usage:  
;Usage:  
<tt><nowiki>{{Translation|<language>}}</nowiki></tt>
<tt><nowiki>{{Translation|<language>}}</nowiki></tt>
;Examples:
*<tt><nowiki>{{Translation|Italian}}</nowiki></tt>
displays
: <big>'''{{flag|Italian|show}} translation'''</big>
*<tt><nowiki>{{Translation|Quenya}}</nowiki></tt>
displays
: <big>'''{{flag|Quenya|show}} translation'''</big>
}}<br>
}}<br>
{{prot-temp}}
{{prot-temp}}
[[Category:Templates|{{PAGENAME}}]]
[[Category:Templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 15:44, 10 January 2009

{{{1}}}} translation

This template categorizes a page in Translations and in [[Category:<language> translations]]. If the <language> flag exists, it is displayed.

Usage

{{Translation|<language>}}

Examples
  • {{Translation|Italian}}

displays

Italian.png Italian translation
  • {{Translation|Quenya}}

displays

Quenya translation