Template:Text: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(use flag template (no flag appears if the corresponding language flag is missing) - and show 2 examples)
(testing new parameters)
Line 2: Line 2:
|case: 2=<b><big>{{flag|{{{2}}}|show}} and {{flag|{{{3}}}|show}}  text</big></b><br><includeonly>[[Category:{{{2}}} texts]][[Category:{{{3}}} texts]]</includeonly>
|case: 2=<b><big>{{flag|{{{2}}}|show}} and {{flag|{{{3}}}|show}}  text</big></b><br><includeonly>[[Category:{{{2}}} texts]][[Category:{{{3}}} texts]]</includeonly>
|case: 3=<b><big>{{flag|{{{2}}}|show}}, {{flag|{{{3}}}|show}} and {{flag|{{{4}}}|show}} text</big></b><br><includeonly>[[Category:{{{2}}} texts]][[Category:{{{3}}} texts]][[Category:{{{4}}} texts]]</includeonly>
|case: 3=<b><big>{{flag|{{{2}}}|show}}, {{flag|{{{3}}}|show}} and {{flag|{{{4}}}|show}} text</big></b><br><includeonly>[[Category:{{{2}}} texts]][[Category:{{{3}}} texts]][[Category:{{{4}}} texts]]</includeonly>
|default=<b><big>{{flag|{{{1}}}|show}} text</big></b><br><includeonly>[[Category:{{{1}}} texts]]</includeonly>
|default=<b><big>{{flag|{{{1}}}}} {{{2|}}} {{{1}}} {{{3|}}} text</big></b><br><includeonly>[[Category:{{{1}}} texts]]</includeonly>
}}<includeonly>[[Category:Texts]]</includeonly><noinclude>
}}<includeonly>[[Category:Texts]]</includeonly><noinclude>
{{prot-temp}}<br>
{{prot-temp}}<br>

Revision as of 00:37, 15 April 2009

{{{1}}} text


Documentation

Accepted syntaxes for this template:

  • {{Text|Language}}
  • {{Text|2|Language1|Language2}}
  • {{Text|3|Language1|Language2|Language3}}

In all cases the template also inserts the page in the corresponding Language texts category for each language.

Examples:

  • {{Text|2|Latin|German}}

displays as:

Latin.png Latin and German.png German text
  • {{Text|Quenya}}

(for which there is no corresponding language flag) displays as:

Quenya text