Template:Tune: Difference between revisions

From TANGOWIKI-TITAF
No edit summary
No edit summary
 
(41 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{{#if:{{{Name|}}}|{{DISPLAYTITLE:{{{Name}}}}}}}
{{#set:
{{#set:
  |TuneTitle={{{Name}}}
  |TuneTitle={{{TuneName|}}}
  |TuneTitleAlt={{{Name_alt|}}}
|TuneName={{{TuneName|}}}
  |TuneAltTitle={{{Name_alt|}}}
  |TuneGenre={{{Genre|}}}
  |TuneGenre={{{Genre|}}}
  |TuneComposer={{{Composer|}}}
  |TuneAltSearch={{{Tune_altsearch|}}}
  |TuneLyricist={{{author|}}}
  |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>


'''{{{Name}}}'''{{#if:{{{Name_alt|}}}| ({{{Name_alt}}})}} is a [[{{{Genre}}}]] composed by {{#arraymap:{{{Composer}}}|;;|@@@|[[@@@]]}}.
{{DISPLAYTITLE:{{{TuneName}}}}}
{{#if:{{{author|}}}| The lyrics were written by {{#arraymap:{{{author}}}|;;|@@@|[[@@@]]}}.}}
 
'''{{{TuneName}}}'''{{#if:{{{Name_alt|}}}|&nbsp;({{{Name_alt}}})}} {{#if:{{{Genre|}}}|is a '''[[{{{Genre}}}]]'''}}{{#if:{{{Composer|}}}|, composed by {{#arraymap:{{{Composer|}}}|;;|@@@|[[@@@]]|&nbsp;and&nbsp;}}}}{{#if:{{{Lyricist|}}}|, with lyrics by {{#arraymap:{{{Lyricist}}}|;;|@@@|[[@@@]]|,&nbsp;}}}}.


<!-- Optional description -->
{{#if:{{{Description|}}}|
{{#if:{{{Description|}}}|
<div style="margin-top:1em;">{{{Description}}}</div>
<p>{{{Description}}}</p>
}}
}}


== Tune Info ==
<!-- Infobox -->
{| class="tune"
<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;">
|-
 
! Title
  {{#if:{{{Genre|}}}|
| [[TuneTitle::{{{Name}}}]]
    <p><b>Genre:</b> [[{{{Genre}}}]]</p>
|-
  }}
! Alternative Title
 
| [[TuneTitleAlt::{{{Name_alt}}}]]
  {{#if:{{{CompositionYear|}}}|
|-
    <p><b>Year of composition:</b> {{{CompositionYear}}}</p>
! Genre
  }}
| [[TuneGenre::{{{Genre}}}]]
 
|-
  {{#if:{{{Composer|}}}|
! Composer(s)
    <p><b>Composer(s):</b> {{#arraymap:{{{Composer}}}|;;|@@@|[[@@@]]|,&nbsp;}}</p>
| {{#arraymap:{{{Composer}}}|;;|@@@|[[TuneComposer::@@@]] ([[@@@]])<br />}}
  }}
|-
! Lyricist(s)
| {{#arraymap:{{{author}}}|;;|@@@|[[TuneLyricist::@@@]] ([[@@@]])<br />}}
|}


  {{#if:{{{Lyricist|}}}|
    <p><b>Lyricist(s):</b> {{#arraymap:{{{Lyricist}}}|;;|@@@|[[@@@]]|,&nbsp;}}</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]]
  [[RecordingRelatedTuneID::{{FULLPAGENAME}}]]
  [[RecordingRelatedTuneID::{{FULLPAGENAME}}]]
  |?RecordingOrchestraLeader
  |?RecordingOrchestraLeader
Line 60: Line 75:
}}
}}


<small>{{#formlink:form=Recording
<small>{{#formlink:form=Recording|link text=+ add a new recording|link type=link|new window|query string=Recording[RelatedTuneID]={{PAGENAME}}}}</small>
|link text=+ add a new recording
</div>
|link type=link
|new window
|query string=Recording[RelatedTuneID]={{FULLPAGENAME}}
}}</small>
 
[[Category:Tune]]
[[Category:Tune]]
</includeonly>
</includeonly>
<noinclude>[[Category:TuneClass]]</noinclude>
<noinclude>[[Category:TuneClass]]</noinclude>

Latest revision as of 07:56, 11 June 2025