Template:Text: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(paragraph instead of line break)
Line 47: Line 47:
}}</pre>
}}</pre>
}}
}}
[[Category:Templates]]</noinclude>
[[Category:Text formatting templates]]</noinclude>

Revision as of 23:31, 24 May 2014

{{{1}}} text


Documentation

Accepted syntaxes for this template:

  • {{Text|2|Language1|Language2}}
  • {{Text|3|Language1|Language2|Language3}}
  • {{Text|Language|cat=no}}
  • {{Text|2|Language1|Language2|cat=no}}
  • {{Text|3|Language1|Language2|Language3|cat=no}}

In the first three cases the template also inserts the page in the corresponding "Language texts" category for each language, as well as in Macaronic texts. In the second three case, the page is not categorized in any of the Language texts categories (one may also use |Cat=no with the same effect). The default value |cat=yes (or |Cat=yes) need not be entered).

Examples:

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

displays as:

Latin.png Latin and German.png German text

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

Quenya text

Text formatting:

1. Using external <poem> tags:

{{Text|Latin}}
<poem>
Ave Maria, gratia plena, Dominus tecum.
Benedicta tu in mulieribus,
et benedictus fructus ventris tui, Jesus. 
</poem>

2. Using the internal functionality (text is enclosed by the template):

{{Text|Latin|
Ave Maria, gratia plena, Dominus tecum.
Benedicta tu in mulieribus,
et benedictus fructus ventris tui, Jesus. 
}}