Template:Information field/doc: Difference between revisions
More actions
{{Tl|Tbc}} can now be placed in other fields without {{Tl|Information field}} |
m +link |
||
| Line 50: | Line 50: | ||
*{{Tl|Creation}} | *{{Tl|Creation}} | ||
*{{Tl|Image generation}} | *{{Tl|Image generation}} | ||
*{{Tl|Taken with}} | |||
*{{Tl|Tincture}} | |||
*{{Tl|Tbc}} | *{{Tl|Tbc}} | ||
|setscats= | |setscats= | ||
| Line 78: | Line 80: | ||
|Other fields = {{Information field|Name=Field Name 2|Value=Field Value 2}} | |Other fields = {{Information field|Name=Field Name 2|Value=Field Value 2}} | ||
}} | }} | ||
<!-- {{Tincture|o|align=right}} --> | |||
<includeonly> | <includeonly> | ||
Revision as of 15:14, 4 April 2019
This template is used by advanced template writers for customizing the current set of Infobox templates, by adding fields to one of existing Infobox templates, like for example {{Artwork}}. For example see for example templates in Category:Infobox templates: based on Artwork template. In most cases, this template should not be used directly in the file namespace, but rather be used to create customized infobox templates that are used in the file namespace.
Usage
{{Information field |name= |value= }}
Or use the shorthand
Allows to specify any additional description line - see examples
The following possible notations are equivalent:{{Information field|name=nnn|value=vvv}}
{{Information field|Value=vvv|Name=nnn}}
{{Information field|1=nnn|2=vvv}}
{{Information field|nnn|vvv}}
{{InFi|nnn|vvv}}
All possible combinations give 32 variations.
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
nameName 1 | Name of the field. It will appear in bold on the left side of the table. | none | required | |
valueValue 2 | Contents of the field. It will appear on the right side of the table. | none | required | |
class | class parameter used with name field: <td style="{{{style|}}}" class="fileinfo-paramfield {{{class|}}}" id="{{{id|}}}">{{{name}}}</td> | empty | optional | |
style | style parameter used with name field: <td style="{{{style|}}}" class="fileinfo-paramfield {{{class|}}}" id="{{{id|}}}">{{{name}}}</td> | empty | optional | |
id | id parameter used with name field: <td style="{{{style|}}}" class="fileinfo-paramfield {{{class|}}}" id="{{{id|}}}">{{{name}}}</td> | empty | optional | |
classvalue | class parameter used with value field: <td><span class="{{{classvalue|}}}">{{{value}}}</span></td> | 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 templates as {{Information}}, e.g. at Other fields=
See also
Examples
{{Artwork
|Artist = Artist name
|Other fields 1 = {{Information field|Name=Field Name 1|Value=Field Value 1}}
|Title = Title
|Year = {{other date|between|1503|1505}}
|Technique = {{technique|oil|poplar panel}}
|Dimensions = {{size|cm|76.8|53}}
|Source = source
|Other fields = {{Information field|Name=Field Name 2|Value=Field Value 2}}
}}will produce