VOOZH about

URL: https://commons.wikimedia.org/wiki/Template:Information_field

⇱ Template:Information field - Wikimedia Commons


Jump to content
From Wikimedia Commons, the free media repository
{{{name}}}
InfoField
{{{value}}}
👁 Image
Template documentation
[ view · edit · history · purge ]
This documentation is transcluded from Template:Information field/doc.
Note: This template is used on a lot of pages. In order not to put too much load on the servers, edits should be kept to a bare minimum. Please discuss proposed changes on the talk page first.

Afterwards, changes can initially be done at and tested with Template:Information field/sandbox.

  • Editing a template causes all pages that use the template to be re-rendered. If the template is used often, this can put a lot of load on the servers since it fills up the job queue.
  • Keep in mind that templates that are used on file description pages also show up on other wikis.
  • This page is template-protected from editing to prevent vandalism. Only template editors and administrators can edit it. Get their attention by placing {{Edit protected}} at the talk page.

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.

The template automatically sets the following categories: Category:Information field template with formatting

Usage

{{Information field |name= |value= }}

Or use the shorthand
{{InFi}}

Allows to specify any additional description line - see examples

The following possible notations are :
{{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 64 valid variations to specify it.

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
stylevaluestyle parameter used with value field: <td style="{{{stylevalue|}}}" >{{{value}}}</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=

Often together with the helper template Nil2, it is used e.g. by

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
Title
Artist
Artist name
Field Name 1
InfoField
Field Value 1
Title
Title
Date between 1503 and 1505
date QS:P571,+1503-00-00T00:00:00Z/8,P1319,+1503-00-00T00:00:00Z/9,P1326,+1505-00-00T00:00:00Z/9
Medium oil on poplar wood
Dimensions 76.8 × 53 cm (30.2 × 20.8 in)
Source/Photographer source
Field Name 2
InfoField
Field Value 2