Template:Equipment: Difference between revisions
MusikAnimal (talk | contribs) (Created page with "<noinclude>{{#cargo_declare: _table = equipment | work = String(mandatory=1) | work_album = Boolean | artist = String | brand = String | model = String | year = String <!-- to...") |
MusikAnimal (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
_table = equipment | _table = equipment | ||
| work = String(mandatory=1) | | work = String(mandatory=1) | ||
| | | work_is_album = Boolean <!-- is it an album? --> | ||
| artist = String | | artist = String | ||
| brand = String | | brand = String | ||
Line 11: | Line 11: | ||
_table = releases | _table = releases | ||
| work = {{{work|{{PAGENAME}}}}} | | work = {{{work|{{PAGENAME}}}}} | ||
| | | work_is_album = {{#ifeq:{{{1|}}}|album|1|0}} | ||
| artist = {{{artist|}}} | | artist = {{{artist|}}} | ||
| brand = {{{brand|}}} | | brand = {{{brand|}}} | ||
Line 18: | Line 18: | ||
| type = {{{type|}}} | | type = {{{type|}}} | ||
}}</includeonly>-->{{#if:{{{artist|}}}|{{{artist}}} – {{{year}}} {{{brand}}} {{{model}}} | }}</includeonly>-->{{#if:{{{artist|}}}|{{{artist}}} – {{{year}}} {{{brand}}} {{{model}}} | ||
<noinclude> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "Work is an album? (yes or no)", | |||
"type": "boolean", | |||
"description": "Is this page about an album? If so, set to true", | |||
"autovalue": "no", | |||
"required": true | |||
}, | |||
"work": { | |||
"label": "Name of song or album", | |||
"type": "string", | |||
"default": "{{PAGENAME}}", | |||
"suggested": true | |||
}, | |||
"artist": { | |||
"label": "Artist", | |||
"description": "Artist who played the instrument", | |||
"example": "Billy Corgan", | |||
"type": "string", | |||
"autovalue": "", | |||
"suggested": true | |||
}, | |||
"brand": { | |||
"label": "Brand name", | |||
"description": "Name of the company that made the equipment", | |||
"example": "Fender", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"model": { | |||
"label": "Model of instrument", | |||
"description": "Model number or name of the branded instrument", | |||
"example": "Stratocaster", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"year": { | |||
"label": "Year the instrument was made", | |||
"description": "Use a year or any arbitrary string, \"Early 80s\"", | |||
"example": "1988", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"type": { | |||
"label": "Type of instrument", | |||
"description": "Should be one of: guitar, bass, drum, guitar amp, bass amp, keyboard, piano, [whatever]", | |||
"type": "string", | |||
"required": true | |||
} | |||
}, | |||
"paramOrder": [ | |||
"1", | |||
"work", | |||
"artist", | |||
"type", | |||
"brand", | |||
"model", | |||
"year" | |||
], | |||
"format": "inline" | |||
} | |||
</templatedata> | |||
</noinclude> |
Revision as of 07:33, 11 June 2020
This template defines the table "equipment". This table has not been created yet.{{#if:|{{{artist}}} – {{{year}}} {{{brand}}} {{{model}}}
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Work is an album? (yes or no) | 1 | Is this page about an album? If so, set to true
| Boolean | required |
Name of song or album | work | no description
| String | suggested |
Artist | artist | Artist who played the instrument
| String | suggested |
Type of instrument | type | Should be one of: guitar, bass, drum, guitar amp, bass amp, keyboard, piano, [whatever] | String | required |
Brand name | brand | Name of the company that made the equipment
| String | suggested |
Model of instrument | model | Model number or name of the branded instrument
| String | suggested |
Year the instrument was made | year | Use a year or any arbitrary string, "Early 80s"
| String | suggested |