Difference between revisions of "Template:Infobox hymn"

From blackwiki
Jump to navigation Jump to search
imported>M.O.X
m (Fix)
imported>Frietjes
m (switch to infobox)
Line 1: Line 1:
<noinclude>{{esoteric}}</noinclude>
+
<noinclude>
{| class="infobox" style="width: 20em;"
+
{{esoteric}}
|-
+
</noinclude>{{infobox
! style="background: {{Infobox hymn/color}}; text-align: center;" colspan="3" | "{{{Name}}}"
+
| abovestyle = font-size: 110%; background: {{Infobox hymn/color}}
|-
+
| subheaderstyle = font-weight: bold; background: {{Infobox hymn/color}}
! style="background: {{Infobox hymn/color}}; text-align: center;" colspan="3" | Music: {{{MusicBy}}}
+
| belowstyle = border-top: {{Infobox hymn/color}} 1px solid;
|-
+
 
! style="background: {{Infobox hymn/color}}; text-align: center;" colspan="3" | Words: {{{WordsBy}}}
+
| above = "{{{Name}}}"
|-
+
| subheader1 = Music: {{{MusicBy}}}
! colspan="3" | {{#if:{{{Image<includeonly>|</includeonly>}}} | {{{Image}}}}}
+
| subheader2 = Words: {{{WordsBy}}}
|-
+
 
{{#if:{{{Published<includeonly>|</includeonly>}}} |
+
| image =  {{{Image<includeonly>|</includeonly>}}}
{{!}}'''Published'''
+
 
{{!}} colspan="2" {{!}} {{{Published}}}
+
| label1 = Published
{{!-}}
+
| data1 = {{{Published<includeonly>|</includeonly>}}}
}}
+
 
{{#if:{{{OrigLanguage<includeonly>|</includeonly>}}} |
+
| label2 = Language
{{!}}'''Language'''
+
| data2 = {{{OrigLanguage<includeonly>|</includeonly>}}}
{{!}} colspan="2" {{!}} {{{OrigLanguage}}}
+
 
{{!-}}
+
| label3 = Translated by
}}
+
| data3 = {{{TranslatedBy<includeonly>|</includeonly>}}}
{{#if:{{{TranslatedBy<includeonly>|</includeonly>}}} |
+
 
{{!}}'''Translated by'''
+
| label4 = Translation published
{{!}} colspan="2" {{!}} {{{TranslatedBy}}}
+
| data4 = {{{TranslatedPub<includeonly>|</includeonly>}}}
{{!-}}
+
 
}}
+
| label5 = [[Meter (hymn)|Meter]]
{{#if:{{{TranslatedPub<includeonly>|</includeonly>}}} |
+
| data5 = {{{Meter<includeonly>|</includeonly>}}}
{{!}}'''Translation published'''
+
 
{{!}} colspan="2" {{!}} {{{TranslatedPub}}}
+
| label6 = Melody name
{{!-}}
+
| data6 = {{{TradMelodyName<includeonly>|</includeonly>}}}
}}
+
 
{{#if:{{{Meter<includeonly>|</includeonly>}}} |
+
| below = {{{Misc<includeonly>|</includeonly>}}}
{{!}}'''[[Meter (hymn)|Meter]]'''
+
}}{{#ifeq: {{{Audio sample?|}}} | yes ||[[Category:Song articles missing an audio sample]]}}<noinclude>
{{!}} colspan="2" {{!}} {{{Meter}}}
 
{{!-}}
 
}}
 
{{#if:{{{TradMelodyName<includeonly>|</includeonly>}}} |
 
{{!}}'''Melody name'''
 
{{!}} colspan="2" {{!}} {{{TradMelodyName}}}
 
}}
 
{{{Misc|}}}
 
{{#ifeq: {{{Audio sample?|}}} | yes ||[[Category:Song articles missing an audio sample]]}}
 
|-
 
|}<noinclude>
 
  
 
==Example==
 
==Example==

Revision as of 18:39, 20 October 2012

"{{{Name}}}"
Music: {{{MusicBy}}}
Words: {{{WordsBy}}}
{{{Image}}}
Published{{{Published}}}
Language{{{OrigLanguage}}}
Translated by{{{TranslatedBy}}}
Translation published{{{TranslatedPub}}}
Meter{{{Meter}}}
Melody name{{{TradMelodyName}}}
{{{Misc}}}

[[Category:Infobox templates|Template:Remove first word]]

Example

{{Infobox hymn
| Name           = 
| MusicBy        = 
| WordsBy        = 
| Published      = 
| OrigLanguage   = 
| TranslatedBy   = 
| TranslatedPub  = 
| Meter          = 
| TradMelodyName = 
| Misc           = 
| Audio sample?  =
}}

Example of use

"A Mighty Fortress Is Our God"
Music: Martin Luther
Words: Martin Luther
Published1531 (or 1529)
LanguageGerman
Translated byMyles Coverdale
Translation published1539
Melody nameEin Feste Burg
Most popular translation by Frederick H. Hedge in 1853

[[Category:Infobox templates|Template:Remove first word]]

Here is an example how to use this template: