Template:Tune: Difference between revisions

From TANGOWIKI-TITAF
No edit summary
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 3: Line 3:
{{#set:
{{#set:
  |TuneTitle={{{TuneName|}}}
  |TuneTitle={{{TuneName|}}}
|TuneName={{{TuneName|}}}
  |TuneAltTitle={{{Name_alt|}}}
  |TuneAltTitle={{{Name_alt|}}}
  |TuneGenre={{{Genre|}}}
  |TuneGenre={{{Genre|}}}
Line 8: Line 9:
  |TuneDescription={{{Description|}}}
  |TuneDescription={{{Description|}}}
  |CompositionYear={{{CompositionYear|}}}
  |CompositionYear={{{CompositionYear|}}}
|TuneFirstLetter={{#invoke:FirstLetter|letter|{{{TuneName|}}}}}
|TuneIndex={{#invoke:FirstLetter|block|{{{TuneName|}}}}}
}}
}}
<div style="display:none">
<div style="display:none">
   {{#arraymap:{{{Composer|}}}|;;|@@@|[[TuneComposer::@@@]]}}
   {{#arraymap:{{{Composer|}}}|;;|@@@|[[TuneComposer::@@@]]}}
Line 17: Line 19:
{{DISPLAYTITLE:{{{TuneName}}}}}
{{DISPLAYTITLE:{{{TuneName}}}}}


'''{{{TuneName}}}'''{{#if:{{{Name_alt|}}}| ({{{Name_alt}}})}} {{#if:{{{Genre|}}}|is a '''[[{{{Genre}}}]]'''}}{{#if:{{{Composer|}}}|, composed by {{#arraymap:{{{Composer|}}}|;;|@@@|[[@@@]]|&nbsp;and&nbsp;}}}}{{#if:{{{Lyricist|}}}|, with lyrics by {{#arraymap:{{{Lyricist}}}|;;|@@@|[[@@@]]|,&nbsp;}}}}.
'''{{{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;}}}}.


{{#if:{{{Description|}}}|
{{#if:{{{Description|}}}|
Line 72: Line 74:
  |default=''No recordings are currently linked to this tune.''
  |default=''No recordings are currently linked to this tune.''
}}
}}
{{#set:
...
|TuneIndex={{#switch: {{{TuneName|}}}
  |A|B|C|D=A–D
  |E|F|G|H=E–H
  |I|J|K|L=I–L
  |M|N|O|P=M–P
  |Q|R|S|T=Q–T
  |U|V|W|X|Y|Z=U–Z
  |#default=Other
}}
}}


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

Latest revision as of 07:56, 11 June 2025