Template:User Favorite Music: Difference between revisions

add new genre category field for color
m (roundy)
(add new genre category field for color)
Line 1: Line 1:
{| class="userboxitem" style="border: 1px solid #000; background: #EEE;{{#switch:{{{moz|yes}}}|yes={{roundy|60px}}|no=}}" cellspacing="0" cellpadding="0"
{|{| class="userboxitem" style="border: 1px solid #000; background: #{{#switch: {{{1|Rock}}}|Electronic|electronic=B8B8D0|Classical|classical=A65E9A|Country|country=BB9966|NewAge|newAge=ffffff|R&B|r&b=98D8D8|World|world=78C850|Pop|pop=FFD733|Jazz|jazz=ffc0cb|Metal|metal=111111|Rock|rock=F08030|HipHop|hipHop=FFAA00}}; {{#switch:{{{moz|yes}}}|yes={{roundy|60px}}|no=}}" cellspacing="0" cellpadding="0"
! style="background: #DDD; {{#switch:{{{moz|yes}}}|yes={{roundy|60px}}|no=}}" | [[File:{{{1|DP_Guitarist.png}}}|60px]]
! style="background: #{{#switch: {{{1|rock}}}|Electronic|electronic=999999||Classical|classical=800080|Country|country=964B00|NewAge|newAge=F1ECE9|R&B|r&b=1111FF|World|world=11BB11|Pop|pop=F8D030|Jazz|jazz=FF99BA|Metal|metal=000000|Rock|rock=FF1111 |HipHop|hipHop=FFCC33}}; {{#switch:{{{moz|yes}}}|yes={{roundy|60px}}|no=}}" | [[File:{{{2|DP Guitarist}}}.png|60px]]
| style=" color: #000;" | <font size="4">☆</font> This user's favorite genre of music is '''[[wp:{{{2|Rock}}} {{{4|music}}}|<span style="color: #000;">{{{3|Rock & Roll}}}</span>]]'''. <font size="4">☆</font>
| style="color: #{{#switch: {{{1|electronic}}}|Electronic|electronic|Classical|classical|Country|country|NewAge|newAge|R&B|r&b|World|world|Pop|pop|Jazz|jazz|Rock|rock=000000|Metal|metal=ffffff|HipHop|hipHop}};" | <font size="4">☆</font> This user's favorite genre of music is '''[[wp:{{{3|Rock}}} {{{5|music}}}|{{{4|Rock & Roll}}}]]'''. <font size="4">☆</font>
|}<noinclude>'''How to change'''
|}
Begin with <nowiki>{{User Favorite Music|</nowiki>.
 
<noinclude>Begin with <nowiki>{{User Favorite Music|</nowiki>.


For each of the other fields, put in information as follows in order:
For each of the other fields, put in information as follows in order:


#The image you want to place as the picture. Include the filename extension.
#The image you want to place as the picture. Include the filename extension.
#The categorization of the genre (determines color).
#The name of your favorite genre of music.
#The name of your favorite genre of music.
#The text you want to appear as the link.
#The text you want to appear as the link.
#If the name of the genre on {{wp|Main Page|Wikipedia}} is a disambiguation page or a page unrelated to the genre in question, use this field to include additional information to lead to the correct Wikipedia page.
#If the name of the genre on {{wp|Main Page|Wikipedia}} is a disambiguation page or a page unrelated to the genre in question, use this field to include additional information to lead to the correct Wikipedia page.
There are 11 preset genre categories:
* Electronic
* Classical
* Country
* NewAge
* R&B
* World
* Pop
* Jazz
* Metal
* Rock
* HipHop


For example, if you entered the following:
For example, if you entered the following:


<nowiki>{{User Favorite Music|441.png|Classical|classical|music}}</nowiki>
<nowiki> {{Template:User Favorite Music|Classical|441|Classical|classical|music}} </nowiki>


It should come out like this:
It should come out like this:


{{User Favorite Music|441.png|Classical|classical|music}}
{{Template:User Favorite Music|Classical|441|Classical|classical|music}}
 
[[Category:Favorite tags]]</noinclude>
[[Category:Favorite tags]]</noinclude>
344

edits