Template:Infobox musical artist: Difference between revisions
From MicrasWiki
Jump to navigationJump to search
(Created page with '{{Infobox | child = {{lc:{{{embed}}}}} | bodyclass = vcard plainlist | title = {{#ifeq:{{lc:{{{embed}}}}}|yes|Musical career}} | aboveclass = {{Infobox musical …') |
mNo edit summary |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Infobox | {{#switch:{{{embed|}}} | ||
| child = | |no={{Infobox | ||
| child = {{{embed}}} | |||
| bodyclass = vcard plainlist | | bodyclass = vcard plainlist | ||
| title = {{#ifeq | | title = {{#ifeq:{{{embed}}}|yes|Musical career}} | ||
| aboveclass = {{Infobox musical artist/hCard class|{{{Background|{{{background|}}}}}}}} | | aboveclass = {{Infobox musical artist/hCard class|{{{Background|{{{background|}}}}}}}} | ||
| abovestyle = background-color: {{Infobox musical artist/color|{{{Background|{{{background|}}}}}}}} | | abovestyle = background-color: {{Infobox musical artist/color|{{{Background|{{{background|}}}}}}}} | ||
| above = {{#ifeq | | above = {{#ifeq:{{{embed}}}|yes||{{#if:{{{Name|{{{name|}}}}}}|{{{Name|{{{name}}}}}}|<includeonly>{{BASEPAGENAME}}</includeonly>}}}} | ||
| image = {{# | | image = {{#if:{{{image|}}}|[[File:{{{image|}}}|{{{image_size|}}}|{{{alt|}}}]]}} | ||
| caption = {{{Img_capt|{{{caption|}}}}}} | | caption = {{{Img_capt|{{{caption|}}}}}} | ||
Line 29: | Line 30: | ||
| label5 = Born | | label5 = Born | ||
| data5 = {{ | | data5 = {{#if:{{{birth_date|}}}{{{birth_place|}}}|{{{Birth_date|{{{birth_date|}}}}}}<br>{{{Birth_place|{{{birth_place|}}}}}}}} | ||
| label6 = Origin | | label6 = Origin | ||
Line 35: | Line 36: | ||
| label7 = Died | | label7 = Died | ||
| data7 = {{ | | data7 = {{#if:{{{death_date|}}}{{{death_place|}}}|{{{Death_date|{{{death_date|}}}}}}<br>{{{Death_place|{{{death_place|}}}}}}}} | ||
| label8 = [[Music genre|Genres]] | | label8 = [[wikipedia:Music genre|Genres]] | ||
| data8 = {{{Genre|{{{genre|}}}}}} | | data8 = {{{Genre|{{{genre|}}}}}} | ||
Line 51: | Line 52: | ||
| data11 = {{{Years_active|{{{years_active|{{{yearsactive|}}}}}}}}} | | data11 = {{{Years_active|{{{years_active|{{{yearsactive|}}}}}}}}} | ||
| label12 = [[Record label|Labels]] | | label12 = [[wikipedia:Record label|Labels]] | ||
| data12 = {{{Label|{{{label|}}}}}} | | data12 = {{{Label|{{{label|}}}}}} | ||
Line 74: | Line 75: | ||
| class20 = note | | class20 = note | ||
| data20 = {{{Notable_instruments|{{{notable_instruments|}}}}}} | | data20 = {{{Notable_instruments|{{{notable_instruments|}}}}}} | ||
}}<includeonly>{{ | |||
| data21 = {{{module|{{{Module|}}}}}} | |||
| data22 = {{{module2|{{{Module 2|}}}}}} | |||
| data23 = {{{module3|{{{Module 3|}}}}}} | |||
| below = | |||
}} | |||
|yes={{Infobox/row | |||
| headerstyle = background: {{Infobox musical artist/color|{{{Background|{{{background|}}}}}}}} | |||
| header = Musical career | |||
}}{{Infobox/row | |||
| label = Also known as | |||
| data = {{{Alias|{{{alias|}}}}}} | |||
}}{{Infobox/row | |||
| label = Origin | |||
| data = {{{Origin|{{{origin|}}}}}} | |||
}}{{Infobox/row | |||
| label = [[wikipedia:Music genre|Genres]] | |||
| data = {{{Genre|{{{genre|}}}}}} | |||
}}{{Infobox/row | |||
| class = role | |||
| label = Occupations | |||
| data = {{{Occupation|{{{occupation|}}}}}} | |||
}}{{Infobox/row | |||
| class = note | |||
| label = Instruments | |||
| data = {{{Instrument|{{{instrument|}}}}}} | |||
}}{{Infobox/row | |||
| label = Years active | |||
| data = {{{Years_active|{{{years_active|{{{yearsactive|}}}}}}}}} | |||
}}{{Infobox/row | |||
| label = [[wikipedia:Record label|Labels]] | |||
| data = {{{Label|{{{label|}}}}}} | |||
}}{{Infobox/row | |||
| label = Associated acts | |||
| data = {{{Associated_acts|{{{associated_acts|}}}}}} | |||
}}{{Infobox/row | |||
| label = Member of | |||
| data = {{{current_member_of|}}} | |||
}}{{Infobox/row | |||
| label = Formerly of | |||
| data = {{{past_member_of|}}} | |||
}}{{Infobox/row | |||
| label = Spinoffs | |||
| data = {{{spinoffs|}}} | |||
}}{{Infobox/row | |||
| label = Spinoff of | |||
| data = {{{spinoff_of|}}} | |||
}}{{Infobox/row | |||
| header = <nowiki /> | |||
}}{{Infobox/row | |||
| label = Website | |||
| data = {{{website|{{{URL|{{{url|}}}}}}}}} | |||
}} | |||
|#default={{Infobox | |||
| child = {{{embed}}} | |||
| bodyclass = vcard plainlist | |||
| title = {{#ifeq:{{{embed}}}|yes|Musical career}} | |||
| aboveclass = {{Infobox musical artist/hCard class|{{{Background|{{{background|}}}}}}}} | |||
| abovestyle = background-color: {{Infobox musical artist/color|{{{Background|{{{background|}}}}}}}} | |||
| above = {{#ifeq:{{{embed}}}|yes||{{#if:{{{Name|{{{name|}}}}}}|{{{Name|{{{name}}}}}}|<includeonly>{{BASEPAGENAME}}</includeonly>}}}} | |||
| image = {{#if:{{{image|}}}|[[File:{{{image|}}}|{{{image_size|}}}|{{{alt|}}}]]}} | |||
| caption = {{{Img_capt|{{{caption|}}}}}} | |||
| headerstyle = background-color: {{Infobox musical artist/color|{{{Background|{{{background|}}}}}}}} | |||
| header1 = {{#if:{{{Img|{{{image|}}}}}}|Background information}} | |||
| label2 = Native name | |||
| data2 = {{#if:{{{native_name|}}}|<span class="nickname" {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}" xml:lang="{{{native_name_lang}}}"}}>{{{native_name}}}</span> }} | |||
| class3 = nickname | |||
| label3 = Birth name | |||
| data3 = {{{Birth_name|{{{birth_name|}}}}}} | |||
| class4 = nickname | |||
| label4 = Also known as | |||
| data4 = {{{Alias|{{{alias|}}}}}} | |||
| label5 = Born | |||
| data5 = {{#if:{{{birth_date|}}}{{{birth_place|}}}|{{{Birth_date|{{{birth_date|}}}}}}<br>{{{Birth_place|{{{birth_place|}}}}}}}} | |||
| label6 = Origin | |||
| data6 = {{{Origin|{{{origin|}}}}}} | |||
| label7 = Died | |||
| data7 = {{#if:{{{death_date|}}}{{{death_place|}}}|{{{Death_date|{{{death_date|}}}}}}<br>{{{Death_place|{{{death_place|}}}}}}}} | |||
| label8 = [[wikipedia:Music genre|Genres]] | |||
| data8 = {{{Genre|{{{genre|}}}}}} | |||
| class9 = role | |||
| label9 = Occupations | |||
| data9 = {{{Occupation|{{{occupation|}}}}}} | |||
| class10 = note | |||
| label10 = Instruments | |||
| data10 = {{{Instrument|{{{instrument|}}}}}} | |||
| label11 = Years active | |||
| data11 = {{{Years_active|{{{years_active|{{{yearsactive|}}}}}}}}} | |||
| label12 = [[wikipedia:Record label|Labels]] | |||
| data12 = {{{Label|{{{label|}}}}}} | |||
| label13 = Associated acts | |||
| data13 = {{{Associated_acts|{{{associated_acts|}}}}}} | |||
| label14 = Website | |||
| data14 = {{{website|{{{URL|{{{url|}}}}}}}}} | |||
| header15 = {{#if:{{{Current_members|{{{current_members|}}}}}}|<nowiki />}} | |||
| label16 = Members | |||
| data16 = {{{Current_members|{{{current_members|}}}}}} | |||
| header17 = {{#if:{{{Past_members|{{{past_members|}}}}}}|<nowiki />}} | |||
| label18 = Past members | |||
| data18 = {{{Past_members|{{{past_members|}}}}}} | |||
| header19 = {{#if:{{{Notable_instruments|{{{notable_instruments|}}}}}}|Notable instruments}} | |||
| class20 = note | |||
| data20 = {{{Notable_instruments|{{{notable_instruments|}}}}}} | |||
| data21 = {{{module|{{{Module|}}}}}} | |||
| data22 = {{{module2|{{{Module 2|}}}}}} | |||
| data23 = {{{module3|{{{Module 3|}}}}}} | |||
| below = | |||
}} | |||
}}[[Category:Musical artists]]<includeonly>{{ns0|{{Infobox musical artist/tracking|{{{Background|{{{background|}}}}}}}}{{#if:{{{pronunciation|}}}|[[Category:Biography template using pronunciation]]}}}}</includeonly><noinclude><!-- Please add metadata to the <includeonly> section at the bottom of the /doc subpage -->{{documentation}} | |||
[[Category: Infobox templates]] | |||
</noinclude> |
Latest revision as of 21:10, 5 May 2024
[edit] [ ] Template documentation
This is the documentation for Template:Infobox musical artist. This template is used to create an infobox for a musical artist, band or musician.
Usage
To use this template, copy the following code and fill in the appropriate parameters:
{{Infobox musical artist | embed = | Name = | image = | image_size = | alt = | caption = | background = | native_name = | native_name_lang = | birth_name = | alias = | birth_date = <!-- {{Birth date and age|YYYY|MM|DD}} --> | birth_place = | origin = | death_date = <!-- {{Death date and age|YYYY|MM|DD|YYYY|MM|DD}} --> | death_place = | genre = | occupation = | instrument = | years_active = | label = | associated_acts = | website = <!-- {{URL|example.com}} --> | current_members = | past_members = | notable_instruments = }}
Example
Here is an example of how to use this template:
{{Infobox musical artist | Name = John Doe | image = John_Doe.jpg | caption = John Doe performing at XYZ festival | background = solo_singer | birth_date = {{Birth date and age|1970|1|1}} | birth_place = Anytown, Anycountry | genre = Rock, Folk | occupation = Singer-songwriter, Guitarist | instrument = Vocals, Guitar | years_active = 1990–present | label = Big Records | website = {{URL|johndoe.com}} }}
Please add categories and interwiki links as needed.
The above documentation is transcluded from Template:Infobox musical artist/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |