Template:Information field/doc: Difference between revisions
Template page
More actions
m expansion |
m expl |
||
| Line 1: | Line 1: | ||
{{TemplateBox | {{TemplateBox | ||
|1= | |1=1 | ||
|1d=Name of the field. It will appear in bold on the left side of the table.<br> Instead of | |1d=Name of the field. It will appear in bold on the left side of the table.<br> → Instead of the unnamed parameter #1, the ''parameter name'' "Name=" can be used. | ||
|1def=none | |1def=none | ||
|1stat=required | |1stat=required | ||
|2= | |2=2 | ||
|2d=Contents of the field. It will appear on the table.<br> Instead of | |2d=Contents of the field. It will appear on the table.<br> → Instead of the unnamed parameter #2, the ''parameter name'' "Value=" can be used. | ||
|2def=none | |2def=none | ||
|2stat=required | |2stat=required | ||
| Line 22: | Line 22: | ||
|namespace=file | |namespace=file | ||
|usergroup=all | |usergroup=all | ||
|placement= | |placement=Within the template {{Tl|Information}}, at ''Other_fields='' (or similar) | ||
|usage-notes= | |usage-notes=Allows to specify any additional description line - see [[#Examples|examples]] | ||
The following possible notations are equivalent:<pre><nowiki> | |||
{{Information field|nnn|vvv}} | |||
{{Information field|1=nnn|2=vvv}} | |||
{{Information field|name=nnn|value=vvv}} | |||
{{Information field|Value=vvv|Name=nnn}} | |||
</nowiki></pre> | |||
|type= | |type= | ||
|example= | |example= | ||
| Line 68: | Line 75: | ||
|Source = source | |Source = source | ||
|Other versions = | |Other versions = | ||
|Other fields = {{Information field| | |Other fields = {{Information field|Name=Field Name|Value=Field Value}} | ||
}}</nowiki></pre> will produce | }}</nowiki></pre> will produce | ||
{{Artwork | {{Artwork | ||
| Line 78: | Line 85: | ||
|Source = source | |Source = source | ||
|Other versions = | |Other versions = | ||
|Other fields = {{Information field| | |Other fields = {{Information field|Name=Field Name|Value=Field Value}} | ||
}} | }} | ||
Revision as of 04:18, 1 March 2013
No description yet available.
Usage
{{Information_field |1= |2= }}
Allows to specify any additional description line - see examples
The following possible notations are equivalent:{{Information field|nnn|vvv}}
{{Information field|1=nnn|2=vvv}}
{{Information field|name=nnn|value=vvv}}
{{Information field|Value=vvv|Name=nnn}}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | Name of the field. It will appear in bold on the left side of the table. → Instead of the unnamed parameter #1, the parameter name "Name=" can be used. | none | required | |
2 | Contents of the field. It will appear on the table. → Instead of the unnamed parameter #2, the parameter name "Value=" can be used. | none | required | |
class | additional class parameter values | empty | optional | |
style | additional style parameter values | empty | optional | |
Additional information
The template is intended to be used in the following namespaces: the File namespace
The template is intended to be used by the following user groups: all users
Placement:
Within the template {{Information}}, at Other_fields= (or similar)
See also
Examples
{{Information
|description=description
|date=2011-11-11
|source={{Own}}
|author={{Ut|Author name}}
|permission=
|other_versions=
|other_fields={{Information field|name=Used colors|value=
{{Tbc|1|255|0|0|red}}
{{Tbc|4|0|0|255|blue}} }} }}
| Description | description |
| Date | |
| Source | Own work |
| Author | Author name |
| Used colors | Template:Tbc Template:Tbc |
{{Artwork
|Artist = Artist name
|Title = Title
|Year = {{other date|between|1503|1505}}
|Technique = {{technique|oil|poplar panel}}
|Dimensions = {{size|cm|76.8|53}}
|Source = source
|Other versions =
|Other fields = {{Information field|Name=Field Name|Value=Field Value}}
}}will produce
{{Artwork
|Artist = Artist name
|Title = Title
|Year = {{other date|between|1503|1505}}
|Technique = {{technique|oil|poplar panel}}
|Dimensions = {{size|cm|76.8|53}}
|Source = source
|Other versions =
|Other fields =
{{Information field|Field Name 1|Field Value 1}}
{{Information field|Field Name 2|Field Value 2}}
{{Information field|Field Name 3|Field Value 3}}
}}will produce