Template:Text: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(make template categorize a page in Category:Texts)
(rm Category:Texts-translations from template)
Line 1: Line 1:
{{switch|{{{1}}}
{{switch|{{{1}}}
|case: 2=<b><big>[[Image:{{{2}}}.png]] {{{2}}} and [[Image:{{{3}}}.png]] {{{3}}} text</big></b><br><includeonly>[[Category:{{{2}}} texts|{{{9|{{PAGENAME}}}}}]][[Category:{{{3}}} texts|{{{9|{{PAGENAME}}}}}]]</includeonly>
|case: 2=<b><big>[[Image:{{{2}}}.png]] {{{2}}} and [[Image:{{{3}}}.png]] {{{3}}} text</big></b><br><includeonly>[[Category:{{{2}}} texts]][[Category:{{{3}}} texts]]</includeonly>
|case: 3=<b><big>[[Image:{{{2}}}.png]] {{{2}}}, [[Image:{{{3}}}.png]] {{{3}}} and [[Image:{{{4}}}.png]] {{{4}}} text</big></b><br><includeonly>[[Category:{{{2}}} texts|{{{9|{{PAGENAME}}}}}]][[Category:{{{3}}} texts|{{{9|{{PAGENAME}}}}}]][[Category:{{{4}}} texts|{{{9|{{PAGENAME}}}}}]]</includeonly>
|case: 3=<b><big>[[Image:{{{2}}}.png]] {{{2}}}, [[Image:{{{3}}}.png]] {{{3}}} and [[Image:{{{4}}}.png]] {{{4}}} text</big></b><br><includeonly>[[Category:{{{2}}} texts]][[Category:{{{3}}} texts]][[Category:{{{4}}} texts]]</includeonly>
|default=<b><big>{{{2|[[Image:{{{1}}}.png]] }}}{{{1}}} text</big></b><br><includeonly>[[Category:{{{1}}} texts|{{{9|{{PAGENAME}}}}}]]</includeonly>
|default=<b><big>{{{2|[[Image:{{{1}}}.png]] }}}{{{1}}} text</big></b><br><includeonly>[[Category:{{{1}}} texts]]</includeonly>
}}<includeonly>[[Category:Texts-translations|{{{9|{{PAGENAME}}}}}]][[Category:Texts|{{{9|{{PAGENAME}}}}}]]</includeonly><noinclude>
}}<includeonly>[[Category:Texts]]</includeonly><noinclude>
{{prot-temp}}<br>
{{prot-temp}}<br>
<div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #3399ff; padding: 1em 1em 1em 1em; background-color:#ddffdd">
<div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #3399ff; padding: 1em 1em 1em 1em; background-color:#ddffdd">

Revision as of 17:27, 11 October 2008

[[Image:{{{1}}}.png]] {{{1}}} text


Documentation

Accepted syntaxes for this template:

{{Text|Language}}
{{Text|Language|9=Messiah, The}}


{{Text|2|Language1|Language2}}
{{Text|2|Language1|Language2|9=Messiah, The}}


{{Text|3|Language1|Language2|Language3}}
{{Text|3|Language1|Language2|Language3|9=Messiah, The}}


The sort key parameter "9=..." is always optional.

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