Template:Text: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(documentation added)
(make template categorize a page in Category:Texts)
Line 3: Line 3:
|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|{{{9|{{PAGENAME}}}}}]][[Category:{{{3}}} texts|{{{9|{{PAGENAME}}}}}]][[Category:{{{4}}} texts|{{{9|{{PAGENAME}}}}}]]</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|{{{9|{{PAGENAME}}}}}]]</includeonly>
}}<includeonly>[[Category:Texts-translations]]</includeonly><noinclude>
}}<includeonly>[[Category:Texts-translations|{{{9|{{PAGENAME}}}}}]][[Category:Texts|{{{9|{{PAGENAME}}}}}]]</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 16:14, 10 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.