Template:Language: Difference between revisions

From LOTR-TCG Wiki
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>
<noinclude>
{{#template_params:Name|Code|Notes}}
{{#template_params:Name|Code|Notes}}
{{#cargo_declare:_table=Languages|Name=String(mandatory,unique)|Code=String(mandatory,unique,regex=[A-Z]{2})|Notes=String}}
{{#cargo_declare:_table=Languages|Name=String(mandatory,unique)|Code=String(mandatory,unique,regex=[A-Z]{2})|Order=Integer(mandatory)|Notes=String}}
</noinclude><includeonly>{{#cargo_store:_table=Languages}}
</noinclude><includeonly>{{#cargo_store:_table=Languages}}
[[Category:Languages]]
[[Category:Languages]]
</includeonly>
</includeonly>

Revision as of 18:35, 11 October 2021

This is the "Language" template.

It should be called in the following format:

{{Language
|Name=
|Code=
|Notes=
}}

Edit the page to see the template text.

Error: "Order" cannot be used as a Cargo field name, because it is an SQL keyword.