Template:Tune: Difference between revisions
From TANGOWIKI-TITAF
No edit summary |
No edit summary |
||
| (38 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{#set: | {{#set: | ||
|TuneTitle={{{ | |TuneTitle={{{TuneName|}}} | ||
|TuneName={{{TuneName|}}} | |||
|TuneAltTitle={{{Name_alt|}}} | |TuneAltTitle={{{Name_alt|}}} | ||
|TuneGenre={{{Genre|}}} | |TuneGenre={{{Genre|}}} | ||
|TuneAltSearch={{{Tune_altsearch|}}} | |TuneAltSearch={{{Tune_altsearch|}}} | ||
|TuneDescription={{{Description|}}} | |||
|CompositionYear={{{CompositionYear|}}} | |||
|TuneFirstLetter={{#invoke:FirstLetter|letter|{{{TuneName|}}}}} | |||
|TuneIndex={{#invoke:FirstLetter|block|{{{TuneName|}}}}} | |||
}} | }} | ||
<div style="display:none"> | |||
{{#arraymap:{{{Composer|}}}|;;|@@@|[[TuneComposer::@@@]]}} | |||
{{#arraymap:{{{Lyricist|}}}|;;|@@@|[[TuneLyricist::@@@]]}} | |||
</div> | |||
{{DISPLAYTITLE:{{{TuneName}}}}} | |||
'''{{{TuneName}}}'''{{#if:{{{Name_alt|}}}| ({{{Name_alt}}})}} {{#if:{{{Genre|}}}|is a '''[[{{{Genre}}}]]'''}}{{#if:{{{Composer|}}}|, composed by {{#arraymap:{{{Composer|}}}|;;|@@@|[[@@@]]| and }}}}{{#if:{{{Lyricist|}}}|, with lyrics by {{#arraymap:{{{Lyricist}}}|;;|@@@|[[@@@]]|, }}}}. | |||
{{#if:{{{Description|}}}| | |||
<p>{{{Description}}}</p> | |||
}} | |||
<!-- Infobox --> | |||
<div style="float:right; clear:right; width:340px; margin-left: 1em; padding:10px; background:#f9f9f9; border:1px solid #ccc; border-radius:10px; font-size:95%; font-family:'DM Sans', sans-serif;"> | |||
{{#if:{{{Genre|}}}| | |||
<p><b>Genre:</b> [[{{{Genre}}}]]</p> | |||
}} | |||
{{#if:{{{CompositionYear|}}}| | |||
<p><b>Year of composition:</b> {{{CompositionYear}}}</p> | |||
}} | |||
{{#if:{{{Composer|}}}| | |||
{{#if:{{{ | <p><b>Composer(s):</b> {{#arraymap:{{{Composer}}}|;;|@@@|[[@@@]]|, }}</p> | ||
}} | |||
{{#if:{{{Lyricist|}}}| | |||
<p><b>Lyricist(s):</b> {{#arraymap:{{{Lyricist}}}|;;|@@@|[[@@@]]|, }}</p> | |||
}} | |||
| | |||
</div> | |||
<!-- Ensure content starts below infobox if there's no FreeText --> | |||
<div style="clear:both;"></div> | |||
<!-- Recordings Section --> | |||
== Recordings == | == Recordings == | ||
<div style="font-size:90%; line-height:1.3em;"> | |||
{{#ask: | {{#ask: | ||
[[Category:Recording]] | [[Category:Recording]] | ||
| Line 64: | Line 75: | ||
}} | }} | ||
<small>{{#formlink:form=Recording|link text=+ add a new recording|link type=link|new window|query string=Recording[RelatedTuneID]={{ | <small>{{#formlink:form=Recording|link text=+ add a new recording|link type=link|new window|query string=Recording[RelatedTuneID]={{PAGENAME}}}}</small> | ||
</div> | |||
[[Category:Tune]] | [[Category:Tune]] | ||
</includeonly> | </includeonly> | ||
<noinclude>[[Category:TuneClass]]</noinclude> | <noinclude>[[Category:TuneClass]]</noinclude> | ||