|
|
Line 1: |
Line 1: |
| <noinclude>
| |
| This is the "Musician" template.
| |
| It should be called in the following format:
| |
| <pre>
| |
| {{Musician | | {{Musician |
| |Instrument= | | |Instrument=Kazoo, Piano, |
| |Nickname= | | |Nickname=Vlad |
| |Genre= | | |Genre=Classical |
| |Favorite colors= | | |Living=Yes |
| |Street address=
| |
| |City=
| |
| |Country=
| |
| |Coordinates=
| |
| }} | | }} |
| </pre>
| | {{#cargo_query:table=Authors|fields=_pageName|format=list|delimiter=,|limit=4|no html}} |
| Edit the page to see the template text.
| |
| {{#cargo_declare:_table=Musicians|Instrument=List (,) of Page (mandatory)|Nickname=String (regex=.*d)|Genre=List (,) of String (hierarchy;allowed values=*Classical
| |
| *Jazz
| |
| **Bebop
| |
| **Dixieland
| |
| *Rock
| |
| **Blues rock
| |
| **Emo)|Favorite_colors=List (,) of String|Street_address=String (unique)|City=String|Country=String|Living=Boolean|Coordinates=Coordinates|Query_test=Text}}
| |
| </noinclude><includeonly>{{#cargo_store:_table=Musicians|Instrument={{{Instrument|}}}|Nickname={{{Nickname|}}}
| |
| |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}} }}
| |
| {| class="wikitable"
| |
| ! Instrument(s)
| |
| | {{#arraymap:{{{Instrument|}}}|,|x|[[x]]}}
| |
| {{#if:{{{Nickname|}}}|
| |
| {{!}}-
| |
| ! The nickname
| |
| {{!}} {{{Nickname|}}} }}
| |
| |-
| |
| ! 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]]
| |
| </includeonly>
| |
Revision as of 20:28, August 15, 2018
Instrument(s) | Kazoo • Piano |
Nickname | Vlad |
Genre | Classical |
Favorite color(s) | |
Country | |
Living? | Yes |
Location | |
My test | |
<a href="/wiki/Aaron_Friedberg" title="Aaron Friedberg">Aaron Friedberg</a>, <a href="/wiki/Akbar_Ganji" title="Akbar Ganji">Akbar Ganji</a>, <a href="/wiki/Al_Hubbard" title="Al Hubbard">Al Hubbard</a>, <a href="/wiki/Alan_Dershowitz" title="Alan Dershowitz">Alan Dershowitz</a>More...