Template:Work: Difference between revisions

From Sax.Wiki
Jump to navigation Jump to search
Third time's the charm
Tag: Reverted
Testing trailing pipe
Tag: Reverted
Line 6: Line 6:
<tr><th colspan="2" class="works-infobox-title">{{{title|{{PAGENAME}}}}}</th></tr>
<tr><th colspan="2" class="works-infobox-title">{{{title|{{PAGENAME}}}}}</th></tr>
{{#if:{{{subtitle|}}}|<tr><td colspan="2" class="works-infobox-subtitle">{{{subtitle}}}</td></tr>}}
{{#if:{{{subtitle|}}}|<tr><td colspan="2" class="works-infobox-subtitle">{{{subtitle}}}</td></tr>}}
{{#if:{{{aliases|}}}|<tr><th>Alias(es)</th><td>{{{aliases}}}</td></tr>}}
{{#if:{{{aliases|}}}|<tr><th>Alias(es)</th><td>{{{aliases|}}}</td></tr>}}
{{#if:{{{compose_start_date|}}}{{{compose_end_date|}}}|<tr><th>Composition</th><td>{{{compose_start_date|}}}{{#if:{{{compose_start_date|}}}|{{#if:{{{compose_end_date|}}}|&nbsp;–&nbsp;}}}}{{{compose_end_date|}}}</td></tr>}}
{{#if:{{{compose_start_date|}}}{{{compose_end_date|}}}|<tr><th>Composition</th><td>{{{compose_start_date|}}}{{#if:{{{compose_start_date|}}}|{{#if:{{{compose_end_date|}}}|&nbsp;–&nbsp;}}}}{{{compose_end_date|}}}</td></tr>}}
{{#if:{{{compose_date|}}}|<tr><th>Composed</th><td>{{{compose_date}}}</td></tr>}}
{{#if:{{{compose_date|}}}|<tr><th>Composed</th><td>{{{compose_date}}}</td></tr>}}
Line 16: Line 16:
{{#if:{{{dedicatees|}}}|<tr><th>Dedicatee(s)</th><td>{{#arraymap:{{{dedicatees}}}|,|@@@|[[@@@]]|,&#32;}}</td></tr>}}
{{#if:{{{dedicatees|}}}|<tr><th>Dedicatee(s)</th><td>{{#arraymap:{{{dedicatees}}}|,|@@@|[[@@@]]|,&#32;}}</td></tr>}}
{{#if:{{{publishers|}}}|<tr><th>Publisher(s)</th><td>{{#arraymap:{{{publishers}}}|,|@@@|[[@@@]]|,&#32;}}</td></tr>}}
{{#if:{{{publishers|}}}|<tr><th>Publisher(s)</th><td>{{#arraymap:{{{publishers}}}|,|@@@|[[@@@]]|,&#32;}}</td></tr>}}
{{#if:{{{genres|}}}|<tr><th>Genre(s)</th><td>{{{genres}}}</td></tr>}}
{{#if:{{{genres|}}}|<tr><th>Genre(s)</th><td>{{{genres|}}}</td></tr>}}
{{#if:{{{difficulty|}}}|<tr><th>Difficulty</th><td><span class="works-stars-filled">{{padleft:|{{{difficulty}}}|★}}</span><span class="works-stars-empty">{{padleft:|{{#expr:5 - {{{difficulty}}}}}|☆}}</span></td></tr>}}
{{#if:{{{difficulty|}}}|<tr><th>Difficulty</th><td><span class="works-stars-filled">{{padleft:|{{{difficulty}}}|★}}</span><span class="works-stars-empty">{{padleft:|{{#expr:5 - {{{difficulty}}}}}|☆}}</span></td></tr>}}
{{#if:{{{duration|}}}|<tr><th>Duration</th><td>{{{duration}}}</td></tr>}}
{{#if:{{{duration|}}}|<tr><th>Duration</th><td>{{{duration}}}</td></tr>}}
</table>
</table>
[[Category:Works]]</includeonly>
[[Category:Works]]</includeonly>

Revision as of 03:06, 8 July 2026

This is the "Work" template.

It should be called in the following format:

{{Work
|title=
|aliases=
|subtitle=
|compose_start_date=
|compose_end_date=
|catalog_ids=
|composers=
|librettists=
|authors=
|commissioners=
|dedicatees=
|publishers=
|compose_date=
|genres=
|difficulty=
|duration=
}}

Edit the page to see the template text.

This template defines the table "works". View table.