Canadian Musician Robert Aitken:TemplateGuide

From Canadian Musician Robert Aitken
Jump to: navigation, search

<noinclude>
This template holds information on (table name). It should be called in the following format:
(pre)
{{Composer
|Field1=Field 1 description
|Field2=Field 2 description
|. . .
}}
(/pre)

{{#cargo_declare:_table=(table name)
|Field1=datatype1 (parameters)
|Field2=datatype2 (parameters)
|. . .
}}
</noinclude>

<includeonly>

{{#cargo_store:
_table=(table name)
|Field1={{{Field1|}}}
|Field2={{{Field2|}}}
|Field3={{{Field2|}}} {{{Field1|}}} (example of composite)
|. . .
|Fieldn={{#arraymap:{{{Fieldn|}}}|,|x|x}} (example of arraymap)
}}

(display example as a table with bold headings in first column)
{| border="0" cellpadding="4" cellspacing="4" style="margin-bottom: 5px;"
! categoryname
| {{{Field2|}}} {{{Field1|}}} (Field3) (example)
|-
! FieldnDescription
| {{{Fieldn|}}}
|-
! Fieldn+1Description
| {{{Fieldn+1|}}}
|}

[[Category:categoryname]]

</includeonly>