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
No edit summary
No edit summary
 
(20 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{redirects|InFi}}{{Heavily used template}}
{{TemplateBox
{{TemplateBox
|1=name
|1=name
Line 28: Line 29:
|6stat=optional-
|6stat=optional-


|name=Information_field
|7=stylevalue
|desc=This template is used by advanced template writers for customizing the current set of [[commons:Infoboxes|Infobox]] templates, by adding fields to one of existing Infobox templates, like for example {{tl|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 in the file namespace, but rather be used to create customized infobox templates that are used in the file namespace.
|7d=''style''  parameter used with ''value'' field: <nowiki><td style="{{{stylevalue|}}}" >{{{value}}}</td></nowiki>
|7stat=optional-
 
 
|name=Information field
|desc=</div>This template is used by advanced template writers for customizing the current set of [[commons:Infoboxes|Infobox]] templates, by adding fields to one of existing Infobox templates, like for example {{tl|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.<div>
|namespace=file
|namespace=file
|usergroup=all
|usergroup=all
|placement=Within the template {{Tl|Information}}, at ''Other_fields='' (or similar)
|placement=Within templates as {{Tl|Information}}, e.g. at <code>Other fields=</code>
 
Often together with the helper template {{T0|Nil2}}, it is used e.g. by
* {{t0|Created with ...}} templates via Template:Image generation
* {{t0|Taken with ...}} templates via Template:Taken with ...
* {{t0|Created with code|+}}
* {{t0|Igen/cbx|+}}
* {{t0|hdbg|hdbg|+}}
* {{t0|Tbc|+}}
 
|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>:<syntaxhighlight lang="wikitext">
{{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|nnn|vvv}}
{{Information field|nnn|vvv}}
{{Information field|1=nnn|2=vvv}}
{{InFi|nnn|vvv}}</syntaxhighlight>
</nowiki></pre>
<small>All possible combinations give 64 valid variations to specify it.</small>


|type=
|type=
Line 45: Line 61:
|i18n-method=
|i18n-method=
|i18n-desc=
|i18n-desc=
|seealso={{tl|Credit line}}
|seealso=*{{tl|Nil2|+}}
|setscats=
*{{tl|Credit line}}
*{{Tl|Creation}}
*{{Tl|Image generation}}
*{{Tl|ColorString}}
*{{Tl|Taken with}} and {{tl|Taken with ...}}
*{{Tl|Tincture}}
*{{Tl|hdbg|hbdg}}
*{{Tl|Tbc}}
*{{Tl|Site Tags}}, {{tl|Flickr Tags}}, and {{tl|Pixabay Tags}}
|setscats=[[:Category:Information field template with formatting]]
|lines=
|lines=
|shorthand={{((}}'''[[Template:InFi|InFi]]'''{{))}}
|shorthand={{((}}'''[[Template:InFi|InFi]]'''{{))}}
Line 52: Line 77:
}}
}}


==Examples==
<!-- {{Tincture|o|align=right}} -->
<pre><nowiki>{{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}} }} }}</nowiki></pre>
{{Information
|description=description
|date=2011-11-11
|source={{Own}}
|author={{Ut|Example|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}}}}}}


----
<pre><nowiki>{{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}}
}}</nowiki></pre> 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|Name=Field Name|Value=Field Value}}
}}
----
<pre><nowiki>{{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}}
}}</nowiki></pre> 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}}
}}
<includeonly>
<includeonly>
[[Category:Formatting templates|{{PAGENAME}}]]
[[Category:Formatting templates|{{PAGENAME}}]]
[[Category:License-related tags]]
[[Category:License-related tags]]
</includeonly>
</includeonly>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.