|
|
(38 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| <noinclude> | | <noinclude> |
| Changes to this template will be instantly live on many pages! Please keep this in mind if you edit, and consider copying the code and creating a new sandbox page instead.
| | Copy and paste this snippet into the place where the libretto should go. |
| <p>
| |
| This template handles the order and the stacking of the various versions and translations of a libretto. The style is all set globally, in [[Template:Custom/pjwiki.css]].
| |
| <p>
| |
| Using (transcluding) this template you will automatically categorize the page with the categories set on the bottom of the template.
| |
| See [[Help:Categories]]
| |
| <p>
| |
| Include the following on the page:
| |
| <pre> | | <pre> |
| {{Template:Libretti | | {{Libretti |
| <!-- use of this template automatically include [[Template:Custom/pjwiki.css]].
| | | country = |
| Please use [[Template:Lang]] for non-English words and sentences.
| | | language-note = |
| The listing below is consistent with the order in which the languages appear on the page. -IMPORTANT!- If you want to control the order the languages appear in, use this template more than once, only filling in one language at a time.
| | | libretto-text = |
| If you want to contribute a language not listed below, tell me and I will add it.
| |
| | italian-note = <!-- example: "Piedmontese dialect". Leave blank if not needed.--> | |
| | italian-libretto = <!-- example: {{lang|it|'''Recitativo''' ..... This field will be automatically styled by the <poem> syntax. --> | |
| | english-note = <!-- leave blank as default-->
| |
| | english-libretto = | |
| | french-note = <!-- leave blank as default-->
| |
| | french-libretto =
| |
| | german-note = <!-- leave blank as default-->
| |
| | german-libretto =
| |
| | spanish-note = <!-- leave blank as default, designate for example "Argentinian"-->
| |
| | spanish-libretto =
| |
| | catalan-note = <!-- leave blank as default-->
| |
| | catalan-libretto =
| |
| | portuguese-note = <!-- leave blank as default-->
| |
| | portuguese-libretto =
| |
| | brazilian-portuguese-note = <!-- leave blank as default-->
| |
| | brazilian-portuguese-libretto =
| |
| | japanese-note = <!-- leave blank as default-->
| |
| | japanese-libretto =
| |
| | polish-note = <!-- leave blank as default-->
| |
| | polish-libretto =
| |
| | russian-note = <!-- leave blank as default-->
| |
| | russian-libretto =
| |
| | ukrainian-note = <!-- leave blank as default-->
| |
| | ukrainian-libretto =
| |
| | ancientitalian-note = <!-- leave blank as default-->
| |
| | ancientitalian-libretto =
| |
| }} | | }} |
| </pre> | | </pre> |
| </noinclude>
| | The first variable uses [[Template:Flagicon]], so it can take the following values: |
| | <pre> |
| | Argentina |
| | Brazil |
| | Catalonia |
| | China |
| | France |
| | German |
| | Italy |
| | Japan |
| | Mexico |
| | Poland |
| | Portugal |
| | Spain |
| | Russia |
| | Turkey |
| | United Kingdom |
| | Ukraine |
| | United States |
| | Vatican State |
| | </pre> |
| | The second variable is meant for the language designation. This field can be empty. This could for example be "Piedmontese dialect" or "Ancient Italian".<p> |
| | The third variable is meant for the actual text of the libretto. It is not already preformatted by the poem tag. Example: <pre>| libretto-text =<poem>{{lang|it|Caldo sangue |
| | che bagnando il sen mi vai ... |
| | }}</pre> |
| | The language fields have to be joined directly, like so: <pre>}}{{Libretti</pre> for proper horizontal and vertical alignment.<p> |
| | After the last language field, it is important to close the row by <pre>{{Clear|left}}</pre> so the next section returns to the left of the page. |
| | </noinclude> |
| <templatestyles src="Custom/pjwiki.css" /> | | <templatestyles src="Custom/pjwiki.css" /> |
| {{#if:{{{italian-libretto|}}}
| | <div style="float:left"> |
| |<div class="libretto">
| | <table class="libretto"><tr><td> |
| <div class=”flagbox”>{{flagicon|Italy}}</div>
| | <div class=”flagbox”>{{flagicon|{{{country}}}}}</div> |
| {{#if:{{{italian-note|}}}
| | </td><td>{{#if:{{{language-note|}}}| |
| |<div class="languagedesignation">{{{italian-note}}}</div>
| | <div class="languagedesignation"><span>{{{language-note}}}</span></div>}}</td></tr> |
| }}
| | <tr><td colspan=2>{{{libretto-text}}}</td></tr></div></table> |
| {{Clear|left}}
| | </div> |
| <poem>{{{italian-libretto}}}</poem>
| | <noinclude> |
| </div>
| | [[Category:Jaroussky wiki templates]] |
| }}
| | </noinclude> |