Template:Text: Difference between revisions
Jump to navigation
Jump to search
Documentation
No edit summary |
(use flag template (no flag appears if the corresponding language flag is missing) - and show 2 examples) |
||
Line 1: | Line 1: | ||
{{switch|{{{1}}} | {{switch|{{{1}}} | ||
|case: 2=<b><big> | |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> | |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>{{ | |default=<b><big>{{flag|{{{1}}}|show}} 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> | ||
Line 17: | Line 17: | ||
In all cases the template also inserts the page in the corresponding [[:Category:Language texts|Language texts]] category for each language. | In all cases the template also inserts the page in the corresponding [[:Category:Language texts|Language texts]] category for each language. | ||
'''Examples:''' | |||
*<tt><nowiki>{{Text|2|Latin|German}}</nowiki></tt> | |||
displays as: | |||
: <big>'''{{flag|Latin|show}} and {{flag|German|show}} text'''</big> | |||
*<tt><nowiki>{{Text|Quenya}}</nowiki></tt> | |||
(for which there is no corresponding language flag) displays as: | |||
: <big>'''{{flag|Quenya|show}} text'''</big> | |||
</div>[[Category:Templates|{{PAGENAME}}]]</noinclude> | </div>[[Category:Templates|{{PAGENAME}}]]</noinclude> |
Revision as of 15:34, 10 January 2009
{{{1}}} text
This high-risk template has been protected from editing to prevent vandalism. Please use the talk page to ask an administrator about making an edit to change this template. |
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 and German text
- {{Text|Quenya}}
(for which there is no corresponding language flag) displays as:
- Quenya text