Difference between revisions of "Template:LilyPondTune"

From music @ maden.org
Jump to navigation Jump to search
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
[[File:{{{filename}}}.pdf|thumb|200px|“[[{{PAGENAME}}|{{{title}}}]].” Download [[Media:{{{filename}}}.pdf|the PDF]], [[Media:{{{filename}}}.midi|a MIDI rendering]], or [[Media:{{{filename}}}_tune.ly|the LilyPond source]] and [[Media:{{{filename}}}.ly|its wrapper file]] (and see also [[tunes from LilyPond]]).]]
 
[[File:{{{filename}}}.pdf|thumb|200px|“[[{{PAGENAME}}|{{{title}}}]].” Download [[Media:{{{filename}}}.pdf|the PDF]], [[Media:{{{filename}}}.midi|a MIDI rendering]], or [[Media:{{{filename}}}_tune.ly|the LilyPond source]] and [[Media:{{{filename}}}.ly|its wrapper file]] (and see also [[tunes from LilyPond]]).]]
 +
 
[[{{PAGENAME}}|“{{{title}}}”]]
 
[[{{PAGENAME}}|“{{{title}}}”]]
 
is
 
is
{{
+
{{#if: {{{origin|}}}
#switch: {{#sub:{{{origin}}}|0|1}}
+
| {{#switch: {{#sub:{{{origin}}}|0|1}}
| a=an | A=an
+
    | a=an | A=an
| e=an | E=an
+
    | e=an | E=an
| i=an | I=an
+
    | i=an | I=an
| o=an | O=an
+
    | o=an | O=an
| u=an | U=an
+
    | u=an | U=an
| a
+
    | a
 +
    }} {{{origin}}}
 +
| {{#if: {{{subtype|}}}
 +
  | {{#switch: {{#sub:{{{subtype}}}|0|1}}
 +
    | a=an | A=an
 +
    | e=an | E=an
 +
    | i=an | I=an
 +
    | o=an | O=an
 +
    | u=an | U=an
 +
    | a
 +
    }}
 +
  | {{#switch: {{#sub:{{{tunetype}}}|0|1}}
 +
    | a=an | A=an
 +
    | e=an | E=an
 +
    | i=an | I=an
 +
    | o=an | O=an
 +
    | u=an | U=an
 +
    | a
 +
    }}
 +
  }}
 
}}
 
}}
{{{origin}}}
+
{{#if: {{{subtype|}}} | {{{subtype}}} | {{{tunetype}}}}}{{#if: {{{key|}}}| in {{{key}}}}}{{#if: {{{composer|}}}| by {{{composer}}}}}.
{{{tunetype}}}
+
 
in
 
{{{key}}}{{#if: {{{composer|}}}| by {{{composer}}}}}.
 
 
{{#if: {{{altname|}}}|
 
{{#if: {{{altname|}}}|
 
== Alternate names ==
 
== Alternate names ==
Line 38: Line 56:
 
{{#if: {{{altname20|}}}|* {{{altname20}}}}}
 
{{#if: {{{altname20|}}}|* {{{altname20}}}}}
 
}}
 
}}
== External links ==
 
{{#if: {{{thesession|}}}|* [https://thesession.org/tunes/{{{thesession}}} “{{{title}}}” at The Session]}}
 
{{#if: {{{wikipedia|}}}|* [https://en.wikipedia.org/wiki/{{{wikipedia}}} “{{{title}}}” at Wikipedia]}}
 
{{#if: {{{digitrad|}}}|* [http://mudcat.org/@displaysong.cfm?SongID={{{digitrad}}} “{{{title}}}” at The Digital Tradition on the Mudcat Café]}}
 
{{#if: {{{mudcat|}}}|* [http://mudcat.org/thread.cfm?threadid={{{mudcat}}} “{{{title}}}” discussion on the Mudcat Café]}}
 
  
{{CategorySort|category={{{origin}}} {{{tunetype}}}s|categorysort={{{titlesort}}}}}
+
{{
{{CategorySort|category=Tunes in {{{key}}}|categorysort={{{titlesort}}}}}
+
ExternalLinks
 +
| title={{{title}}}
 +
| thesession={{#if: {{{thesession|}}}|{{{thesession}}}}}
 +
| wikipedia={{#if: {{{wikipedia|}}}|{{{wikipedia}}}}}
 +
| digitrad={{#if: {{{digitrad|}}}|{{{digitrad}}}}}
 +
| mudcat={{#if: {{{mudcat|}}}|{{{mudcat}}}}}
 +
| musicbrainz={{#if: {{{musicbrainz|}}}|{{{musicbrainz}}}}}
 +
}}
 +
 
 +
{{#if: {{{titlesort|}}}
 +
  | {{#if: {{{subtype|}}}
 +
      | [[Category:{{#if:{{{origin|}}}|{{{origin}}}}} {{#switch:{{{subtype}}}|waltz=waltzes|{{{subtype}}}s}}|{{{titlesort}}}]]
 +
      | [[Category:{{#if:{{{origin|}}}|{{{origin}}}}} {{#switch:{{{tunetype}}}|waltz=waltzes|{{{tunetype}}}s}}|{{{titlesort}}}]]
 +
    }}
 +
    {{#if:{{{key|}}}|[[Category:Tunes in {{{key}}}|{{{titlesort}}}]]}}
 +
  | {{#if: {{{subtype|}}}
 +
      | [[Category:{{#if:{{{origin|}}}|{{{origin}}}}} {{#switch:{{{subtype}}}|waltz=waltzes|{{{subtype}}}s}}]]
 +
      | [[Category:{{#if:{{{origin|}}}|{{{origin}}}}} {{#switch:{{{tunetype}}}|waltz=waltzes|{{{tunetype}}}s}}]]
 +
    }}
 +
    {{#if:{{{key|}}}|[[Category:Tunes in {{{key}}}]]}}
 +
}}
 +
 
 
<noinclude>
 
<noinclude>
 
== Usage ==
 
== Usage ==
For tunes (but not songs!) that have [[LilyPond]] source files.
+
For tunes or songs that have [[LilyPond]] source files.
 
<pre>
 
<pre>
 
{{
 
{{
Line 56: Line 90:
 
| origin=imaginary
 
| origin=imaginary
 
| tunetype=jeel
 
| tunetype=jeel
 +
| subtype=superfast jeel
 
| key=A mixolydian
 
| key=A mixolydian
 +
| composer=Some Guy
 
| filename=sample_tune
 
| filename=sample_tune
 +
| altname=The Simple Tune
 +
| altname2=Sampletown
 
| thesession=123
 
| thesession=123
 
| wikipedia=The_Sample_Tune
 
| wikipedia=The_Sample_Tune
 
| digitrad=54322
 
| digitrad=54322
 
| mudcat=6411
 
| mudcat=6411
 +
| musicbrainz=52d24891-c4ca-47d1-af68-a178c3bc603a
 
}}
 
}}
 
</pre>
 
</pre>

Revision as of 21:15, 11 September 2018

[[File:{{{filename}}}.pdf|thumb|200px|“{{{title}}}.” Download [[Media:{{{filename}}}.pdf|the PDF]], [[Media:{{{filename}}}.midi|a MIDI rendering]], or [[Media:{{{filename}}}_tune.ly|the LilyPond source]] and [[Media:{{{filename}}}.ly|its wrapper file]] (and see also tunes from LilyPond).]]

“{{{title}}}” is a {{{tunetype}}}.


External links

[[Category: {{{tunetype}}}s]]


Usage

For tunes or songs that have LilyPond source files.

{{
LilyPondTune
| title=The Sample Tune
| titlesort=Sample Tune, The
| origin=imaginary
| tunetype=jeel
| subtype=superfast jeel
| key=A mixolydian
| composer=Some Guy
| filename=sample_tune
| altname=The Simple Tune
| altname2=Sampletown
| thesession=123
| wikipedia=The_Sample_Tune
| digitrad=54322
| mudcat=6411
| musicbrainz=52d24891-c4ca-47d1-af68-a178c3bc603a
}}