Template:Work: Difference between revisions

From Sax.Wiki
Jump to navigation Jump to search
Incorporate styles again
Tag: Reverted
No edit summary
Tags: Manual revert Reverted
Line 2: Line 2:
{{#template_params:title (label=Title)|aliases (label=Alias(es))|subtitle (label=Subtitle)|compose_start_date (label=Composition Started)|compose_end_date (label=Composition Completed)|catalog_ids (label=Catalog ID(s))|composers (label=Composer(s))|librettists (label=Librettist(s))|authors (label=Author(s))|commissioners (label=Commissioner(s))|dedicatees (label=Dedicatee(s))|publishers (label=Publisher(s))|compose_date (label=Composed)|genres (label=Genre(s))|difficulty (label=Difficulty)|duration (label=Duration)}}
{{#template_params:title (label=Title)|aliases (label=Alias(es))|subtitle (label=Subtitle)|compose_start_date (label=Composition Started)|compose_end_date (label=Composition Completed)|catalog_ids (label=Catalog ID(s))|composers (label=Composer(s))|librettists (label=Librettist(s))|authors (label=Author(s))|commissioners (label=Commissioner(s))|dedicatees (label=Dedicatee(s))|publishers (label=Publisher(s))|compose_date (label=Composed)|genres (label=Genre(s))|difficulty (label=Difficulty)|duration (label=Duration)}}
{{#cargo_declare:_table=works|title=String|aliases=List (,) of String|subtitle=String|compose_start_date=Start date|compose_end_date=End date|catalog_ids=List (,) of String|composers=List (,) of Page|librettists=List (,) of Page|authors=List (,) of Page|commissioners=List (,) of Page|dedicatees=List (,) of Page|publishers=List (,) of Page|compose_date=Date|genres=List (,) of String|difficulty=Rating|duration=String}}
{{#cargo_declare:_table=works|title=String|aliases=List (,) of String|subtitle=String|compose_start_date=Start date|compose_end_date=End date|catalog_ids=List (,) of String|composers=List (,) of Page|librettists=List (,) of Page|authors=List (,) of Page|commissioners=List (,) of Page|dedicatees=List (,) of Page|publishers=List (,) of Page|compose_date=Date|genres=List (,) of String|difficulty=Rating|duration=String}}
</noinclude>
</noinclude><includeonly>{{#cargo_store:_table=works}}
<includeonly>
{{#template_display:_format=infobox}}
<templatestyles src="Work/styles.css" />
{{#cargo_store:_table=works}}
{| class="works-infobox"
! colspan="2" class="infobox-title" | {{{title|{{PAGENAME}}}}}
{{#if: {{{subtitle|}}} |
{{!}}-
{{!}} colspan="2" class="infobox-subtitle" {{!}} {{{subtitle}}}
}}
{{#if: {{{aliases|}}} |
{{!}}-
! Alias(es)
{{!}} {{{aliases}}}
}}
{{#if: {{{compose_start_date|}}} |
{{!}}-
! Composition Started
{{!}} {{{compose_start_date}}}
}}
{{#if: {{{compose_end_date|}}} |
{{!}}-
! Composition Completed
{{!}} {{{compose_end_date}}}
}}
{{#if: {{{catalog_ids|}}} |
{{!}}-
! Catalog ID(s)
{{!}} {{{catalog_ids}}}
}}
|-
! Composer(s)
| {{#arraymap:{{{composers|}}}|,|@@@|[[@@@]]}}
{{#if: {{{librettists|}}} |
{{!}}-
! Librettist(s)
{{!}} {{#arraymap:{{{librettists}}}|,|@@@|[[@@@]]}}
}}
{{#if: {{{authors|}}} |
{{!}}-
! Author(s)
{{!}} {{#arraymap:{{{authors}}}|,|@@@|[[@@@]]}}
}}
{{#if: {{{commissioners|}}} |
{{!}}-
! Commissioner(s)
{{!}} {{#arraymap:{{{commissioners}}}|,|@@@|[[@@@]]}}
}}
{{#if: {{{dedicatees|}}} |
{{!}}-
! Dedicatee(s)
{{!}} {{#arraymap:{{{dedicatees}}}|,|@@@|[[@@@]]}}
}}
{{#if: {{{publishers|}}} |
{{!}}-
! Publisher(s)
{{!}} {{#arraymap:{{{publishers}}}|,|@@@|[[@@@]]}}
}}
{{#if: {{{compose_date|}}} |
{{!}}-
! Composed
{{!}} {{{compose_date}}}
}}
{{#if: {{{genres|}}} |
{{!}}-
! Genre(s)
{{!}} {{{genres}}}
}}
{{#if: {{{difficulty|}}} |
{{!}}-
! Difficulty
{{!}} {{{difficulty}}}
}}
{{#if: {{{duration|}}} |
{{!}}-
! Duration
{{!}} {{{duration}}}
}}
|}
[[Category:Works]]
[[Category:Works]]
</includeonly>
</includeonly>

Revision as of 03:24, 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.