Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Information field/doc: Difference between revisions

Template page
typing error
m format
Line 1: Line 1:
{{Heavily used template}}
{{TemplateBox
{{TemplateBox
|1=name
|1=name
Line 34: Line 35:
|placement=Within templates as {{Tl|Information}}, e.g. at <code>Other fields=</code>
|placement=Within templates as {{Tl|Information}}, e.g. at <code>Other fields=</code>
|usage-notes=Allows to specify any additional description line - see [[#Examples|examples]]
|usage-notes=Allows to specify any additional description line - see [[#Examples|examples]]
The following possible notations are equivalent:<pre><nowiki>
The following possible notations are <u>equivalent</u>:<pre><nowiki>
{{Information field|name=nnn|value=vvv}}
{{Information field|name=nnn|value=vvv}}
{{Information field|Value=vvv|Name=nnn}}
{{Information field|Value=vvv|Name=nnn}}
{{Information field|1=nnn|2=vvv}}
{{Information field|1=nnn|2=vvv}}
{{Information field|nnn|vvv}}
{{Information field|nnn|vvv}}
{{InFi|nnn|vvv}}
{{InFi|nnn|vvv}}</nowiki></pre>
</nowiki></pre>
<small>All possible combinations give 32 variations.</small>


|type=
|type=
Line 82: Line 83:
<pre><nowiki>{{Artwork
<pre><nowiki>{{Artwork
|Artist = Artist name
|Artist = Artist name
|Other fields 1 = {{Information field|Name=Field Name 1|Value=Field Value 1}}
|Title = Title
|Title = Title
|Year = {{other date|between|1503|1505}}
|Year = {{other date|between|1503|1505}}
Line 87: Line 89:
|Dimensions = {{size|cm|76.8|53}}
|Dimensions = {{size|cm|76.8|53}}
|Source = source
|Source = source
|Other versions =
|Other fields = {{Information field|Name=Field Name 2|Value=Field Value 2}}
|Other fields 1 = {{Information field|Name=Field Name 1|Value=Field Value 1}}
|Other fields  = {{Information field|Name=Field Name 2|Value=Field Value 2}}
}}</nowiki></pre> will produce  
}}</nowiki></pre> will produce  
{{Artwork
{{Artwork
Line 98: Line 98:
|Dimensions = {{size|cm|76.8|53}}
|Dimensions = {{size|cm|76.8|53}}
|Source = source
|Source = source
|Other versions =
|Other fields 1 = {{Information field|Name=Field Name 1|Value=Field Value 1}}
|Other fields 1 = {{Information field|Name=Field Name 1|Value=Field Value 1}}
|Other fields   = {{Information field|Name=Field Name 2|Value=Field Value 2}}
|Other fields = {{Information field|Name=Field Name 2|Value=Field Value 2}}
}}
}}



Revision as of 11:35, 10 February 2018

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

{{InFi}}

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

ParameterDescriptionDefaultStatus
name
Name
1
Name of the field. It will appear in bold on the left side of the table.nonerequired
value
Value
2
Contents of the field. It will appear on the right side of the table.nonerequired
classclass parameter used with name field: <td style="{{{style|}}}" class="fileinfo-paramfield {{{class|}}}" id="{{{id|}}}">{{{name}}}</td>emptyoptional
stylestyle parameter used with name field: <td style="{{{style|}}}" class="fileinfo-paramfield {{{class|}}}" id="{{{id|}}}">{{{name}}}</td>emptyoptional
idid parameter used with name field: <td style="{{{style|}}}" class="fileinfo-paramfield {{{class|}}}" id="{{{id|}}}">{{{name}}}</td>emptyoptional
classvalueclass parameter used with value field: <td><span class="{{{classvalue|}}}">{{{value}}}</span></td>emptyoptional

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

{{Information
|description=description
|date=2011-11-11
|source={{Own}}
|author={{U|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
InfoField
Template:Tbc Template:Tbc



{{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

Template:Artwork


Cookies help us deliver our services. By using our services, you agree to our use of cookies.