Jump to content

Template:Work infobox: Difference between revisions

From PentaLatin
Phase 2: work infobox template
 
Phase 2: fix table/parser-function pipe conflict
 
Line 2: Line 2:
! colspan="2" style="background:#B2472F; color:#F7F1E6; font-family:Georgia,'Times New Roman',serif;" | {{{title|{{PAGENAME}}}}}
! colspan="2" style="background:#B2472F; color:#F7F1E6; font-family:Georgia,'Times New Roman',serif;" | {{{title|{{PAGENAME}}}}}
|-
|-
{{#if:{{{composer|}}}|
| '''Composer''' || {{#if:{{{composer|}}}|[[{{{composer}}}]]|—}}
| '''Composer''' || [[{{{composer}}}]]
|-
|-
}}
| '''Genre''' || {{#if:{{{genre|}}}|[[:Category:{{{genre}}}|{{{genre}}}]]|—}}
{{#if:{{{genre|}}}|
| '''Genre''' || [[:Category:{{{genre}}}|{{{genre}}}]]
|-
|-
}}
| '''Country''' || {{#if:{{{country|}}}|[[:Category:Composers from {{{country}}}|{{{country}}}]]|—}}
{{#if:{{{country|}}}|
| '''Country''' || [[:Category:Composers from {{{country}}}|{{{country}}}]]
|-
|-
}}
| '''Year''' || {{{year|—}}}
{{#if:{{{year|}}}|
| '''Year''' || {{{year}}}
|-
|-
}}
| '''Instrumentation''' || {{{instrumentation|—}}}
{{#if:{{{instrumentation|}}}|
| '''Instrumentation''' || {{{instrumentation}}}
|-
}}
|}
|}
{{{description|}}}
{{{description|}}}

Latest revision as of 20:17, 17 July 2026

This template renders a standard infobox for Work/Piece/Song pages.

Usage:

{{Work infobox
|title=Arrullo
|composer=Blas Galindo
|genre=Voz y piano
|country=Mexico
|year=
|instrumentation=Voice and piano
|description=Short description of the piece goes here.
}}

Link to the score/recording file separately in the article body, e.g.:

== Score ==
* [[File:Arrullo - Blas Galindo.pdf]]

See also: Template:Composer infobox, PentaLatin:Naming conventions.