Template:Music: Difference between revisions

From The Skullgirls Wiki
Jump to navigation Jump to search
mNo edit summary
mediawiki>VesnaTheRussianWarcriminal
(Created page with "<includeonly> {| align="left" style="border:solid 1px black; width:100%;box-shadow: rgb(1,1,0,0.5) 0px 5px 20px; background-color: {{{bg|#8800bb}}}; border-radius: 10px" {{#if:{{{3|}}}|{{!}}[[File:{{{3|}}}|100px|link=]]}} |{{Color|{{#ifeq:{{{4|}}}|true|white|black}}|<small>Now playing:</small> <big>{{{2|Music Name}}}</big><br>}} [[File:{{{1|Error.mp3}}}|{{#ifeq:{{{5|true}}}|true|autoplay}}|700px]] |} Category:Pages with music </includeonly> <noinclude> <templatedata>...")
Line 1: Line 1:
<includeonly><br><div style="font-family:Jost;">
<includeonly>
{| align="left" style="border:solid 1px black; width:100%;box-shadow: rgb(1,1,0,0.5) 0px 5px 20px; background-color: {{{bg|#8800bb}}}; border-radius: 10px"
{| align="left" style="border:solid 1px black; width:100%;box-shadow: rgb(1,1,0,0.5) 0px 5px 20px; background-color: {{{bg|#8800bb}}}; border-radius: 10px"
{{#if:{{{3|}}}|{{!}}[[File:{{{3|}}}|100px|link=]]}}
{{#if:{{{3|}}}|{{!}}[[File:{{{3|}}}|100px|link=]]}}
|{{Color|{{#ifeq:{{{4|}}}|true|white|black}}|<small>''Now playing:''</small> <big>'''{{{2|Music Name}}}'''</big><br>}}
|{{Color|{{#ifeq:{{{4|}}}|true|white|black}}|<small>Now playing:</small> <big>{{{2|Music Name}}}</big><br>}}
[[File:{{{1|Error.mp3}}}|{{#ifeq:{{{5|true}}}|true|autoplay}}|700px]]
[[File:{{{1|Error.mp3}}}|{{#ifeq:{{{5|true}}}|true|autoplay}}|700px]]
|}</div>
|}
<br><br><br><br><br>
[[Category:Pages with music]]
[[Category:Pages with music]]
</includeonly>
</includeonly>
<noinclude>
<noinclude>
{{Music|Recovery- Redux.mp3|Recovery - Redux|King John.png|true|bg=red}}
<templatedata>
{
"params": {
"1": {
"aliases": [
"music",
"audio"
],
"label": "Music file",
"type": "wiki-file-name",
"required": true
},
"2": {
"aliases": [
"title",
"name"
],
"label": "Title",
"type": "line",
"required": true
},
"3": {
"aliases": [
"image",
"img",
"cover"
],
"label": "Image",
"type": "wiki-file-name",
"suggested": true
},
"4": {
"aliases": [
"whitetext",
"white"
],
"label": "Color the text white?",
"type": "boolean",
"suggested": true
},
"5": {
"label": "Autoplay?",
"type": "boolean",
"default": "true",
"required": true,
"autovalue": "true"
},
"bg": {
"aliases": [
"background-color",
"background-colour",
"background",
"bg-color",
"bg-colour"
],
"label": "Background colour",
"type": "unknown"
}
},
"paramOrder": [
"1",
"2",
"3",
"4",
"bg",
"5"
],
"description": "Use this when adding music to the top of pages"
}
</templatedata>{{Documentation}}
</noinclude>
</noinclude>

Revision as of 05:19, 24 March 2026


<templatedata> { "params": { "1": { "aliases": [ "music", "audio" ], "label": "Music file", "type": "wiki-file-name", "required": true }, "2": { "aliases": [ "title", "name" ], "label": "Title", "type": "line", "required": true }, "3": { "aliases": [ "image", "img", "cover" ], "label": "Image", "type": "wiki-file-name", "suggested": true }, "4": { "aliases": [ "whitetext", "white" ], "label": "Color the text white?", "type": "boolean", "suggested": true }, "5": { "label": "Autoplay?", "type": "boolean", "default": "true", "required": true, "autovalue": "true" }, "bg": { "aliases": [ "background-color", "background-colour", "background", "bg-color", "bg-colour" ], "label": "Background colour", "type": "unknown" } }, "paramOrder": [ "1", "2", "3", "4", "bg", "5" ], "description": "Use this when adding music to the top of pages" } </templatedata>== Description == To use this template, add the Template:T template and fill in the appropriate fields. Fields left blank will not appear in articles. This infobox template uses Fandom's infobox syntax.

Syntax

{{Character
 | name         = 
 | image        = 
 | imagecaption = 
 | aliases      = 
 | relatives    = 
 | affiliation  = 
 | occupation   = 
 | marital      = 
 | birthDate    = 
 | birthPlace   = 
 | deathDate    = 
 | deathPlace   = 
 | species      = 
 | gender       = 
 | height       = 
 | weight       = 
 | eyes         = 
 | portrayedby  = 
 | appearsin    = 
 | debut        = 

}}

Sample output

{{{Name}}}
Biographical Information


{{Character
 | name         = Flowa
 | image        = Example.jpg
 | imagecaption = Flowa, at rest
 | aliases      = Flo
 | relatives    = 
 | affiliation  = 
 | occupation   = 
 | marital      = 
 | birthDate    = July 21st, 2013
 | birthPlace   = Iowa
 | deathDate    = 
 | deathPlace   = 
 | species      = Plant
 | gender       = 
 | height       = 
 | weight       = 
 | eyes         = 
 | portrayedby  = 
 | appearsin    = 
 | debut        = 
}}