Template:Information field: Difference between revisions
Template page
More actions
m Changed protection level for "Template:Information field": Undo cascade [edit=sysop:move=sysop] |
Have "Creator" field set id so the file doesn't end up in Category:Files with no machine-readable author. Using the id parameter would be better, but there are already millions of files that need this, but don't use it. |
||
| (20 intermediate revisions by 7 users not shown) | |||
| Line 1: | Line 1: | ||
<noinclude><table class="toccolours" style="width: 100%"></noinclude><tr style="vertical-align: top"><!-- | |||
[[Category: | === Left side: name field === | ||
--><td style="{{{style|}}}" class="fileinfo-paramfield {{{class|}}}" {{#if:{{{id|}}}|id="{{{id|}}}"|{{#ifeq:{{{name|{{{Name|{{{1|<noinclude>{{{name}}}</noinclude>}}}}}}}}}|Creator|id = "fileinfotpl_aut"|}}}}><!-- | |||
-->{{{name|{{{Name|{{{1|<noinclude>{{{name}}}</noinclude>}}}}}}}}}<div style="display: none;">InfoField</div><!-- | |||
--></td><!-- | |||
=== Right side: value field === | |||
--><td style="{{{stylevalue|}}}" ><!-- | |||
-->{{#if:{{{stylevalue|}}}{{{classvalue|}}}{{{style|}}}{{{class|}}}{{{id|}}}|[[Category:Information field template with formatting]]}}<!-- | |||
-->{{#if:{{{classvalue|}}}<!-- | |||
-->|<span class="{{{classvalue|}}}"> {{{value|{{{Value|{{{2|<noinclude>{{{value}}}</noinclude>}}}}}}}}}</span><!-- | |||
-->| {{{value|{{{Value|{{{2|<noinclude>{{{value}}}</noinclude>}}}}}}}}}<!-- | |||
-->}}<!-- | |||
--></td> | |||
</tr><noinclude></table> | |||
{{documentation}} | |||
</noinclude> | </noinclude> | ||
Latest revision as of 21:35, 6 January 2025
| {{{name}}} | {{{value}}} |
This documentation is transcluded from Template:Information field/doc.
The template automatically sets the following categories: Category:Information field template with formatting
Usage
{{Information field |name= |value= }}
{{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 64 valid variations to specify it.
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 | |
stylevalue | style parameter used with value field: <td style="{{{stylevalue|}}}" >{{{value}}}</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=
Often together with the helper template Nil2, it is used e.g. by
- Created with ... templates via Template:Image generation
- Taken with ... templates via Template:Taken with ...
- Template:Created with code
- Template:Igen/cbx
- Template:hdbg
- Template:Tbc
See also