Template:Musician: Difference between revisions

From Discourse DB
Jump to navigation Jump to search
No edit summary
No edit summary
 
(49 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
This is the "Musician" template.
{{#template_params:
It should be called in the following format:
Instrument (label=Instrument(s);category=Items)
<pre>
|Nickname (display=nonempty)
{{Musician
|Genre
|Instrument=
|Favorite colors (label=Favorite color(s))
|Nickname=
|Performances (holds template=Performance)
|Genre=
|Country
|Favorite colors=
|Living (label=Living?)
|Street address=
|Coordinates (label=Location)
|City=
|My test (cargo field=MyTest)
|Country=
|Coordinates=
}}
}}
</pre>
{{#cargo_declare:_table=Musicians
Edit the page to see the template text.
|Instrument=List (,) of Page (mandatory)
{{#cargo_declare:_table=Musicians|Instrument=List (,) of Page (mandatory)|Nickname=String (regex=.*d)|Genre=List (,) of String (hierarchy;allowed values=*Classical
|Nickname=String (regex=.*d)
|Genre=List (,) of String (hierarchy;allowed values=*Classical
*Jazz
*Jazz
**Bebop
**Bebop
**Dixieland
**Dixieland
*Rock
*Rock
**Rock n' roll
**Blues rock
**Blues rock
**Emo)|Favorite_colors=List (,) of String|Street_address=String (unique)|City=String|Country=String|Living=Boolean|Coordinates=Coordinates|Query_test=Text}}
**Emo;label=Genres)
</noinclude><includeonly>{{#cargo_store:_table=Musicians|Instrument={{{Instrument|}}}|Nickname={{{Nickname|}}}
|Favorite_colors=List (,) of String
|Genre={{{Genre|}}}|Favorite_colors={{{Favorite colors|}}}|Street_address={{{Street address|}}}|City={{{City|}}}|Country={{{Country|}}}|Living={{{Living|}}}|Coordinates={{{Coordinates|}}}|Query_test={{#cargo_query:table=Authors|fields=_pageName|format=list|delimiter=,|limit=4|no html}} }}
|Street_address=String
{| class="wikitable"
|City=String
! Instrument(s)
|Country=Page
| {{#arraymap:{{{Instrument|}}}|,|x|[[x]]}}
|Living=Boolean
{{#if:{{{Nickname|}}}|
|Coordinates=Coordinates
{{!}}-
|MyTest=Wikitext}}
! The nickname
</noinclude><includeonly>{{#cargo_store:}}
{{!}} {{{Nickname|}}} }}
{{#template_display:_format=table}}
|-
! Genre(s)
| {{{Genre|}}}
|-
! Favorite colors
| {{{Favorite colors|}}}
|-
! Street address
| {{{Street address|}}}
|-
! City
| {{{City|}}}
|-
! Country
| {{{Country|}}}
|-
! Living?
| {{{Living|}}}
|-
! Location
| {{#cargo_display_map:point={{{Coordinates|}}} }}
|}


[[Category:Musicians]]
[[Category:Musicians]]
</includeonly>
</includeonly>

Latest revision as of 15:13, May 9, 2023

This is the "Musician" template.

It should be called in the following format:

{{Musician
|Instrument=
|Nickname=
|Genre=
|Favorite colors=
|Performances=
|Country=
|Living=
|Coordinates=
|My test=
}}

Edit the page to see the template text.

This template defines the table "Musicians". View table.