Difference between revisions of "Template:Infobox anthem/doc"

From blackwiki
Jump to navigation Jump to search
imported>Kpalion
m
imported>Izno
(→‎Parameters: div col)
 
(75 intermediate revisions by 40 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. -->
+
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
==Code==
+
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Unsubst-infobox|Module:Check for unknown parameters}}
 +
{{Uses TemplateStyles|Template:Infobox anthem/styles.css}}
 +
 
 +
== Blank syntax ==
 +
 
 
<pre>
 
<pre>
 
{{Infobox anthem
 
{{Infobox anthem
| title         =  
+
| title         =  
| transcription =  
+
| transcription =  
  | english_title =  
+
| english_title =
| alt_title     =  
+
| image          =  
| en_alt_title  =  
+
| image_size     =  
| alt_title_2  =  
+
| alt            =
| en_alt_title_2=  
+
| caption        =  
| image        =  
+
| prefix        =  
| image_size    =  
+
| type          =  
| caption      =  
+
| country        =  
| prefix        =  
+
| alt_title      =  
| country      =  
+
| en_alt_title  =  
| author       =  
+
| alt_title_2    =  
| lyrics_date   =  
+
| en_alt_title_2 =  
| composer     =  
+
| author         =  
| music_date   =  
+
| lyrics_date   =  
| adopted       =  
+
| composer       =  
| until         =  
+
| music_date     =
| sound         =  
+
| published      =  
| sound_title   =  
+
| adopted       =
 +
| readopted      =  
 +
| until         =
 +
| successor      =
 +
| predecessor    =  
 +
| sound         =  
 +
| sound_title   =  
 
}}
 
}}
 
</pre>
 
</pre>
  
== Use ==
+
== Parameters ==
 +
 
 
All parameters are optional.
 
All parameters are optional.
 +
{{div col}}
 
; title          : Title of the anthem in the native language; defaults to page title
 
; title          : Title of the anthem in the native language; defaults to page title
 
; transcription  : Transcription of the title (if the native language uses a non-Latin alphabet)
 
; transcription  : Transcription of the title (if the native language uses a non-Latin alphabet)
Line 34: Line 46:
 
; alt_title      : Alternative title in the native language
 
; alt_title      : Alternative title in the native language
 
; en_alt_title  : Meaning of the alternative title in English
 
; en_alt_title  : Meaning of the alternative title in English
; alt_title_2    : Second alternative title in the native language  
+
; alt_title_2    : Second alternative title in the native language
 
; en_alt_title_2 : Meaning of the second alternative title in English
 
; en_alt_title_2 : Meaning of the second alternative title in English
 
; image          : Name of an image file (e.g. a lyrics sheet or sheet music)
 
; image          : Name of an image file (e.g. a lyrics sheet or sheet music)
 
; image_size    : Image width (not greater than 220px); plain integer, no "px"
 
; image_size    : Image width (not greater than 220px); plain integer, no "px"
 +
; alt            : Description of image for those who cannot see it ([[WP:ALT|alt text]])
 
; caption        : Image caption
 
; caption        : Image caption
; prefix        : Additional description of the anthem, such as "National" or "Royal"
+
; prefix        : Additional description of the anthem, such as "National" or "Royal". Defaults to "National" if parameter not used.
 +
; type          : Type of composition (anthem, march, song, etc.). Defaults to "anthem" if parameter not used.
 
; country        : Country or other entity which uses the anthem
 
; country        : Country or other entity which uses the anthem
 
; author        : Author of the lyrics
 
; author        : Author of the lyrics
Line 45: Line 59:
 
; composer      : Composer of the music
 
; composer      : Composer of the music
 
; music_date    : Date when the music was written
 
; music_date    : Date when the music was written
 +
; published      : Date when published, if not adopted
 
; adopted        : Date when the song was adopted as an anthem
 
; adopted        : Date when the song was adopted as an anthem
 +
; readopted      : Date readopted if previously relinquished
 
; until          : Date when the song ceased to be an anthem
 
; until          : Date when the song ceased to be an anthem
 +
; predecessor    : Song that preceded it, if applicable
 +
; successor      : If no longer in use, the song that succeeded it, if applicable
 
; sound          : Name of a sound file
 
; sound          : Name of a sound file
 
; sound_title    : Title of the sound; required if parameter '''sound''' is given
 
; sound_title    : Title of the sound; required if parameter '''sound''' is given
 +
{{div col end}}
  
 
== Examples ==
 
== Examples ==
<pre>
+
{{{{PAGENAMETDOC}}
 +
| title      = God Save the Queen
 +
| image      = gstk.png
 +
| image_size  =
 +
| alt        =
 +
| caption    = Publication of an early version in ''[[The Gentleman's Magazine]]'', 15 October 1745. The title, on the Contents page, is given as "God save our lord the king: A new song set for two voices".
 +
| prefix      = National and Royal
 +
| country    = <br>[[Australia]] (royal)<br>[[Canada]] (royal)<br>[[Jamaica]] (royal)<br>[[New Zealand]] (national and royal)<br>[[United Kingdom]] (national and royal)
 +
| alt_title  = God Save the King
 +
| author      = Author unknown
 +
| lyrics_date =
 +
| composer    = Composer unknown
 +
| music_date  =
 +
| adopted    =
 +
| until      =
 +
| sound      = United States Navy Band - God Save the Queen.ogg
 +
| sound_title = "God Save the Queen" (instrumental)
 +
}}
 +
<pre style="font-size: 95%; overflow: auto;">
 
{{Infobox anthem
 
{{Infobox anthem
| title         = God Save the Queen
+
| title       = God Save the Queen
| alt_title    = God Save the King <br><small>''(when the monarch is a male)''</small>
+
| image      = gstk.png
  | image         = gstk.png
+
| image_size =
| caption       = Publication of an early version in ''[[The Gentleman's Magazine]]'', [[15 October]] [[1745]]. The title, on the Contents page, is given as "God save our lord the king: A new song set for two voices".
+
| alt         =
| prefix       = National and Royal
+
| caption     = Publication of an early version in ''[[The Gentleman's Magazine]]'', 15 October 1745. The title, on the Contents page, is given as "God save our lord the king: A new song set for two voices".
| country       = {{Aus}} (royal)<br>{{CAN}} (royal)<br>{{JAM}} (royal)<br>{{NZ}} (national and royal)<br>{{GBR}} (national and royal)
+
| prefix     = National and Royal
| author       = Author unknown
+
| country     = <br>[[Australia]] (royal)<br>[[Canada]] (royal)<br>[[Jamaica]] (royal)<br>[[New Zealand]] (national and royal)<br>[[United Kingdom]] (national and royal)
| composer     = Composer unknown
+
| alt_title  = God Save the King
  | sound         = United States Navy Band - God Save the Queen.ogg
+
| author     = Author unknown
| sound_title   = ''God Save the Queen'' (instrumental)
+
| lyrics_date =
 +
| composer   = Composer unknown
 +
| music_date =
 +
| adopted    =
 +
| until      =
 +
| sound       = United States Navy Band - God Save the Queen.ogg
 +
| sound_title = ''God Save the Queen'' (instrumental)
 
}}
 
}}
 
</pre>
 
</pre>
 +
{{clear}}
  
{{Infobox anthem
+
{{{{PAGENAMETDOC}}
| title         = God Save the Queen
+
| title         = Mazurek Dąbrowskiego
  | alt_title    = God Save the King <br><small>''(when the monarch is a male)''</small>
+
| english_title = Dąbrowski's Mazurka
| image         = gstk.png
+
| image         = Pieśń Legionów 1.jpg
| image_size   =  
+
| image_size     = 180
| border        =  
+
| alt            =
| caption       = Publication of an early version in ''[[The Gentleman's Magazine]]'', [[15 October]] [[1745]]. The title, on the Contents page, is given as "God save our lord the king: A new song set for two voices".
+
| caption       = One of a series of postcards, designed by [[Juliusz Kossak]], illustrating the lyrics of ''Mazurek Dąbrowskiego''.
| prefix        = National and Royal
+
| prefix        = National
| country      = {{Aus}} (royal)<br>{{CAN}} (royal)<br>{{JAM}} (royal)<br>{{NZ}} (national and royal)<br>{{GBR}} (national and royal)
+
| country        = [[Poland]]
| author       = Author unknown
+
| alt_title      = Pieśń Legionów Polskich we Włoszech
| lyrics_date   =  
+
| en_alt_title  = Song of the Polish Legions in Italy
| composer     = Composer unknown
+
| alt_title_2    = Jeszcze Polska nie zginęła
| music_date   =  
+
| en_alt_title_2 = Poland Is Not Yet Lost
| adopted       =  
+
| author         = [[Józef Wybicki]]
| until         =  
+
| lyrics_date   = 1797
| sound         = United States Navy Band - God Save the Queen.ogg
+
| composer       = Composer unknown
| sound_title   = ''God Save the Queen'' (instrumental)
+
| music_date     =
 +
| adopted       = 1926
 +
| until         =
 +
| sound         = Mazurek Dabrowskiego.ogg
 +
| sound_title   = "Mazurek Dąbrowskiego" (instrumental)
 
}}
 
}}
 
+
<pre style="font-size:95%; overflow:auto;">
<br clear=both>
 
<pre>
 
 
{{Infobox anthem
 
{{Infobox anthem
| title         = Mazurek Dąbrowskiego
+
| title         = Mazurek Dąbrowskiego
| english_title = Dąbrowski's Mazurka
+
| english_title = Dąbrowski's Mazurka
| image         = Pieśń Legionów 1.jpg
+
| image         = Pieśń Legionów 1.jpg
| image_size   = 180
+
| image_size     = 180
| caption       = One of a series of postcards, designed by [[Juliusz Kossak]], illustrating the lyrics of ''Mazurek Dąbrowskiego''  
+
| alt            =
| alt_title     = Pieśń Legionów Polskich we Włoszech
+
| caption       = One of a series of postcards, designed by [[Juliusz Kossak]], illustrating the lyrics of ''Mazurek Dąbrowskiego''.
| en_alt_title = Song of the Polish Legions in Italy
+
| prefix        = National
| alt_title_2   = Jeszcze Polska nie zginęła
+
| country        = [[Poland]]
| en_alt_title_2= Poland Is Not Yet Lost
+
| alt_title     = Pieśń Legionów Polskich we Włoszech
| prefix        = National
+
| en_alt_title   = Song of the Polish Legions in Italy
| country      = {{POL}}
+
| alt_title_2   = Jeszcze Polska nie zginęła
| composer     = Composer unknown
+
| en_alt_title_2 = Poland Is Not Yet Lost
| author        = [[Józef Wybicki]]
+
| author        = [[Józef Wybicki]]
| lyrics_date  = 1797
+
| lyrics_date    = 1797
| adopted      = 1926
+
| composer       = Composer unknown
| sound         = Mazurek Dabrowskiego.ogg
+
| music_date    =
| sound_title   = ''Mazurek Dąbrowskiego'' (instrumental)
+
| adopted        = 1926
 +
| until          =
 +
| sound         = Mazurek Dabrowskiego.ogg
 +
| sound_title   ="Mazurek Dąbrowskiego" (instrumental)
 
}}
 
}}
 
</pre>
 
</pre>
 +
{{clear}}
  
{{Infobox anthem
+
{{{{PAGENAMETDOC}}
| title        = Mazurek Dąbrowskiego
+
| title        = Мы, беларусы
| english_title = Dąbrowski's Mazurka
+
| transcription = My, belarusy
| image        = Pieśń Legionów 1.jpg
+
| english_title = We, Belarussians
| image_size    = 180
+
| image        =
| caption      = One of a series of postcards, designed by [[Juliusz Kossak]], illustrating the lyrics of ''Mazurek Dąbrowskiego''
+
| image_size    =
| alt_title    = Pieśń Legionów Polskich we Włoszech
+
| alt          =
| en_alt_title  = Song of the Polish Legions in Italy
+
| caption      =
| alt_title_2  = Jeszcze Polska nie zginęła
+
| prefix        = National
| en_alt_title_2= Poland Is Not Yet Lost
+
| country      = [[Belarus]]
| prefix       = National
+
| alt_title    = Dzyarzhawny himn Respubliki Belarus'
| country      = {{POL}}
+
| en_alt_title  = National Anthem of the Republic of Belarus
| composer      = Composer unknown
+
| author       = [[Michael Klimovich]]
| author        = [[Józef Wybicki]]
+
| lyrics_date  = 1944
| lyrics_date  = 1797
+
| composer      = [[Nestar Sakalowski]]
| adopted      = 1926
+
| music_date    = 1944
| sound         = Mazurek Dabrowskiego.ogg
+
| adopted      = 1955
| sound_title  = ''Mazurek Dąbrowskiego'' (instrumental)
+
| until         =
 
}}
 
}}
 
+
<pre style="font-size: 95%; overflow: auto;">
<br clear=both>
 
<pre>
 
 
{{Infobox anthem
 
{{Infobox anthem
| title = Мы, беларусы
+
| title         = Мы, беларусы
| transcription = My, belarusy
+
| transcription = My, belarusy
| english_title = We, Belarussians
+
| english_title = We, Belarussians
| alt_title    = Dzyarzhawny himn Respubliki Belarus'
+
| image        =
| en_alt_title  = National Anthem of the Republic of Belarus
+
| image_size    =
| prefix        = National
+
| alt          =
| country      = {{BLR}}
+
| caption      =
| author        = [[Michael Klimovich]]
+
| prefix        = National
| lyrics_date  = 1944
+
| country      = [[Belarus]]
| composer      = [[Nestar Sakalowski]]
+
| alt_title    = Dzyarzhawny himn Respubliki Belarus'
| music_date    = 1944
+
| en_alt_title  = National Anthem of the Republic of Belarus
| adopted      = 1955
+
| author        = [[Michael Klimovich]]
 +
| lyrics_date  = 1944
 +
| composer      = [[Nestar Sakalowski]]
 +
| music_date    = 1944
 +
| adopted      = 1955
 +
| until        =
 
}}
 
}}
 
</pre>
 
</pre>
  
{{Infobox anthem
+
== Tracking category ==
| title = Мы, беларусы
+
* {{clc|Pages using infobox anthem with unknown parameters}}
| transcription = My, belarusy
 
| english_title = We, Belarussians
 
| alt_title    = Dzyarzhawny himn Respubliki Belarus'
 
| en_alt_title  = National Anthem of the Republic of Belarus
 
| prefix        = National
 
| country      = {{BLR}}
 
| author        = [[Michael Klimovich]]
 
| lyrics_date  = 1944
 
| composer      = [[Nestar Sakalowski]]
 
| music_date    = 1944
 
| adopted      = 1955
 
}}
 
 
 
<includeonly><!--
 
++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, INSIDE INCLUDEONLY TAGS, THANK YOU. -->
 
[[Category:Infobox templates|Anthem]]
 
  
[[ja:Template:Infobox anthem]]
+
<includeonly>{{sandbox other||
</includeonly>
+
<!-- Categories below this line, please; interwikis at Wikidata -->
 +
[[Category:Music infobox templates|Anthem]]
 +
[[Category:Templates that add a tracking category|{{PAGENAME}}]]
 +
}}</includeonly>

Latest revision as of 15:47, 13 February 2021

Script error: No such module "Uses TemplateStyles".

Blank syntax

{{Infobox anthem
| title          = 
| transcription  = 
| english_title  = 
| image          = 
| image_size     = 
| alt            = 
| caption        = 
| prefix         = 
| type           = 
| country        = 
| alt_title      = 
| en_alt_title   = 
| alt_title_2    = 
| en_alt_title_2 = 
| author         = 
| lyrics_date    = 
| composer       = 
| music_date     = 
| published      = 
| adopted        = 
| readopted      = 
| until          = 
| successor      = 
| predecessor    = 
| sound          = 
| sound_title    = 
}}

Parameters

All parameters are optional.

title
Title of the anthem in the native language; defaults to page title
transcription
Transcription of the title (if the native language uses a non-Latin alphabet)
english_title
Meaning of the title in English
alt_title
Alternative title in the native language
en_alt_title
Meaning of the alternative title in English
alt_title_2
Second alternative title in the native language
en_alt_title_2 
Meaning of the second alternative title in English
image
Name of an image file (e.g. a lyrics sheet or sheet music)
image_size
Image width (not greater than 220px); plain integer, no "px"
alt
Description of image for those who cannot see it (alt text)
caption
Image caption
prefix
Additional description of the anthem, such as "National" or "Royal". Defaults to "National" if parameter not used.
type
Type of composition (anthem, march, song, etc.). Defaults to "anthem" if parameter not used.
country
Country or other entity which uses the anthem
author
Author of the lyrics
lyrics_date
Date when the lyrics were written
composer
Composer of the music
music_date
Date when the music was written
published
Date when published, if not adopted
adopted
Date when the song was adopted as an anthem
readopted
Date readopted if previously relinquished
until
Date when the song ceased to be an anthem
predecessor
Song that preceded it, if applicable
successor
If no longer in use, the song that succeeded it, if applicable
sound
Name of a sound file
sound_title
Title of the sound; required if parameter sound is given

Examples

{{Template:PAGENAMETDOC | title = God Save the Queen | image = gstk.png | image_size = | alt = | caption = Publication of an early version in The Gentleman's Magazine, 15 October 1745. The title, on the Contents page, is given as "God save our lord the king: A new song set for two voices". | prefix = National and Royal | country =
Australia (royal)
Canada (royal)
Jamaica (royal)
New Zealand (national and royal)
United Kingdom (national and royal) | alt_title = God Save the King | author = Author unknown | lyrics_date = | composer = Composer unknown | music_date = | adopted = | until = | sound = United States Navy Band - God Save the Queen.ogg | sound_title = "God Save the Queen" (instrumental) }}

{{Infobox anthem
| title       = God Save the Queen
| image       = gstk.png
| image_size  =
| alt         =
| caption     = Publication of an early version in ''[[The Gentleman's Magazine]]'', 15 October 1745. The title, on the Contents page, is given as "God save our lord the king: A new song set for two voices".
| prefix      = National and Royal
| country     = <br>[[Australia]] (royal)<br>[[Canada]] (royal)<br>[[Jamaica]] (royal)<br>[[New Zealand]] (national and royal)<br>[[United Kingdom]] (national and royal)
| alt_title   = God Save the King
| author      = Author unknown
| lyrics_date =
| composer    = Composer unknown
| music_date  =
| adopted     =
| until       =
| sound       = United States Navy Band - God Save the Queen.ogg
| sound_title = ''God Save the Queen'' (instrumental)
}}

{{Template:PAGENAMETDOC | title = Mazurek Dąbrowskiego | english_title = Dąbrowski's Mazurka | image = Pieśń Legionów 1.jpg | image_size = 180 | alt = | caption = One of a series of postcards, designed by Juliusz Kossak, illustrating the lyrics of Mazurek Dąbrowskiego. | prefix = National | country = Poland | alt_title = Pieśń Legionów Polskich we Włoszech | en_alt_title = Song of the Polish Legions in Italy | alt_title_2 = Jeszcze Polska nie zginęła | en_alt_title_2 = Poland Is Not Yet Lost | author = Józef Wybicki | lyrics_date = 1797 | composer = Composer unknown | music_date = | adopted = 1926 | until = | sound = Mazurek Dabrowskiego.ogg | sound_title = "Mazurek Dąbrowskiego" (instrumental) }}

{{Infobox anthem
| title          = Mazurek Dąbrowskiego
| english_title  = Dąbrowski's Mazurka
| image          = Pieśń Legionów 1.jpg
| image_size     = 180
| alt            =
| caption        = One of a series of postcards, designed by [[Juliusz Kossak]], illustrating the lyrics of ''Mazurek Dąbrowskiego''.
| prefix         = National
| country        = [[Poland]]
| alt_title      = Pieśń Legionów Polskich we Włoszech
| en_alt_title   = Song of the Polish Legions in Italy
| alt_title_2    = Jeszcze Polska nie zginęła
| en_alt_title_2 = Poland Is Not Yet Lost
| author         = [[Józef Wybicki]]
| lyrics_date    = 1797
| composer       = Composer unknown
| music_date     =
| adopted        = 1926
| until          =
| sound          = Mazurek Dabrowskiego.ogg
| sound_title    ="Mazurek Dąbrowskiego" (instrumental)
}}

{{Template:PAGENAMETDOC | title = Мы, беларусы | transcription = My, belarusy | english_title = We, Belarussians | image = | image_size = | alt = | caption = | prefix = National | country = Belarus | alt_title = Dzyarzhawny himn Respubliki Belarus' | en_alt_title = National Anthem of the Republic of Belarus | author = Michael Klimovich | lyrics_date = 1944 | composer = Nestar Sakalowski | music_date = 1944 | adopted = 1955 | until = }}

{{Infobox anthem
| title         = Мы, беларусы
| transcription = My, belarusy
| english_title = We, Belarussians
| image         =
| image_size    =
| alt           =
| caption       =
| prefix        = National
| country       = [[Belarus]]
| alt_title     = Dzyarzhawny himn Respubliki Belarus'
| en_alt_title  = National Anthem of the Republic of Belarus
| author        = [[Michael Klimovich]]
| lyrics_date   = 1944
| composer      = [[Nestar Sakalowski]]
| music_date    = 1944
| adopted       = 1955
| until         =
}}

Tracking category