Difference between revisions of "Template:Infobox file format"

From blackwiki
Jump to navigation Jump to search
(+ja)
imported>Wdpp
(Added wikidata parser for media type)
 
(104 intermediate revisions by 50 users not shown)
Line 1: Line 1:
{| class="infobox" style="text-align: left; width: 23em; font-size: 90%;"
+
{{Infobox
|+ '''{{{name}}}'''
+
| child = {{{child|}}}
{{#if:
+
| decat = yes <!--(remove this template from Template:Infobox tracking categories)-->
{{{icon|}}}
+
| titlestyle = font-size:130%; padding-bottom:0.15em;<!--(to avoid title touching box's border)-->
|<tr><td style="text-align: center;" colspan="2">{{{icon}}}</td></tr>
+
| title = {{#ifeq:{{{child|}}}|yes |'''File format details''' |{{{name|<includeonly>{{PAGENAME}}</includeonly>}}}}}
|
+
| image1 = {{#invoke:InfoboxImage|InfoboxImage |image={{{icon|{{{logo|}}}}}} |size={{{icon_size|{{{logo_size|}}}}}} |sizedefault=64px}}
}}
+
| caption1 = {{{iconcaption|{{{logocaption|}}}}}}
{{#if:
+
| image2 = {{#invoke:InfoboxImage|InfoboxImage |image={{{screenshot|}}} |size={{{screenshot_size|}}} |sizedefault=300px}}
{{{logo|}}}
+
| caption2 = {{{caption|}}}
|<tr><td style="text-align: center;" colspan="2">{{{logo}}}</td></tr>
+
| labelstyle = line-height:1.2em;<!--(modified longitem)--> padding-right:0.65em;<!--(to ensure some gap between (long/unwrapped) label and data on same line)-->
|
+
| datastyle = line-height:1.35em;
}}
 
<!--
 
-->{{#if:{{{screenshot|}}}|<tr><td colspan="2" style="text-align: center; border: 0px solid #aaaaaa">{{{screenshot}}}{{#if:{{{caption|}}}|<br /><span style="font-size: smaller;">{{{caption}}}</span>|}}}}{{#if:<!--
 
-->{{{extension|}}}
 
|<tr><th style="white-space: nowrap;">[[filename extension|File extension]]:</th><td><code>{{{extension}}}</code></td></tr>
 
|<tr><th style="white-space: nowrap;">[[filename extension|File extension]]:</th><td>''none''</td></tr>
 
}}<!--
 
-->{{#if:
 
{{{mime|}}}
 
|<tr><th style="white-space: nowrap;">[[MIME|MIME type]]:</th><td><code>{{{mime}}}</code></td></tr>
 
|
 
}}<!--
 
-->{{#if:
 
{{{type code|{{{typecode|}}}}}}
 
|<tr><th style="white-space: nowrap;">[[Type code]]:</th><td>{{{type code|{{{typecode}}}}}}</td></tr>
 
|
 
}}<!--
 
-->{{#if:
 
{{{uniform type|}}}
 
|<tr><th style="white-space: wrap;">[[Uniform Type Identifier]]:</th><td>{{{uniform type}}}</td></tr>
 
|
 
}}<!--
 
-->{{#if:
 
{{{magic|}}}
 
|<tr><th style="white-space: wrap;">[[File format#Magic number|Magic]]:</th><td>{{{magic}}}</td></tr>
 
|
 
}}<!--
 
-->{{#if:
 
{{{owner|}}}
 
|<tr><th style="white-space: nowrap;">Developed by:</th><td>{{{owner}}}</td></tr>
 
|
 
}}<!--
 
-->{{#if:
 
{{{genre|}}}
 
|<tr><th style="white-space: nowrap;">Type of format:</th><td>{{{genre}}}</td></tr>
 
|
 
}}<!--
 
-->{{#if:
 
{{{container for|{{{containerfor|}}}}}}
 
|<tr><th style="white-space: nowrap;">Container for:</th><td>{{{container for|{{{containerfor}}}}}}</td></tr>
 
|
 
}}<!--
 
-->{{#if:
 
{{{contained by|{{{containedby|}}}}}}
 
|<tr><th style="white-space: nowrap;">Contained by:</th><td>{{{contained by|{{{containedby}}}}}}</td></tr>
 
|
 
}}<!--
 
-->{{#if:
 
{{{extended from|{{{extendedfrom|}}}}}}
 
|<tr><th style="white-space: nowrap;">Extended from:</th><td>{{{extended from|{{{extendedfrom}}}}}}</td></tr>
 
|
 
}}<!--
 
-->{{#if:
 
{{{extended to|{{{extendedto|}}}}}}
 
|<tr><th style="white-space: nowrap;">Extended to:</th><td>{{{extended to|{{{extendedto}}}}}}</td></tr>
 
|
 
}}<!--
 
-->{{#if:
 
{{{standard|}}}
 
|<tr><th style="white-space: nowrap;">[[International standard|Standard(s)]]:</th><td>{{{standard}}}</td></tr>
 
|
 
}}
 
|}<noinclude>
 
{| style="background: transparent;"
 
|<pre>
 
{{Infobox file format
 
| name =
 
| icon =
 
| logo =
 
| screenshot =
 
| caption =
 
| extension =
 
| mime =
 
| type code =
 
| uniform type =
 
| magic =
 
| owner =
 
| genre =
 
| container for =
 
| contained by =
 
| extended from =
 
| extended to =
 
| standard =
 
}}
 
</pre>
 
|}
 
[[Category:Computing templates|File Format]]
 
[[Category:technology infobox templates|File Format]]
 
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
 
  
[[fr:Modèle:Infobox format de données]]
+
| label4  = [[Filename extension]]{{#if:{{{extensions|}}}|s}}
[[it:Template:Infobox formato file]]
+
|  data4  = {{#if:{{{extension|{{{extensions|}}}}}} |{{#if:{{{_noextcode|}}} |{{{extension|{{{extensions|}}}}}} |{{monodiv|{{{extension|{{{extensions|}}}}}}}}}} }}
[[hu:Sablon:Infobox fájlformátumok]]
+
| label5  = [[Media type|Internet media&nbsp;type]]
[[ja:Template:Infobox file format]]
+
|  data5  = {{#if:{{{mime|}}} |{{#if:{{{_nomimecode|}}} |{{{mime}}} |{{monodiv|{{{mime}}}}}}}| {{#property:P1163}} }}
[[ko::파일 정보]]
+
| label6  = [[Type code]]
[[pt:Predefinição:Infocaixa Ficheiro]]
+
|  data6  = {{{type_code|{{{type code|{{{typecode|}}}}}}}}}
[[ru:Шаблон:Файловый формат]]
+
| label7  = [[Uniform Type Identifier|Uniform Type Identifier&nbsp;(UTI)]]
[[th:แม่แบบ:กล่องข้อมูล รูปแบบไฟล์]]
+
|  data7  = {{{uniform_type|{{{uniform type|}}}}}}
[[zh:Template:Infobox file format]]
+
| label8  = UTI&nbsp;conformation
</noinclude>
+
|  data8  = {{{conforms to|{{{conforms_to|}}}}}}
 +
| label9  = [[File format#Magic number|Magic number]]
 +
|  data9  = {{{magic|}}}
 +
| label10 = Developed&nbsp;by
 +
|  data10 = {{{developer|{{{owner|}}}}}}
 +
| label11 = Initial release
 +
|  data11 = {{{released|}}}
 +
| label12 = [[Software release life cycle|Latest release]]
 +
|  data12 = {{#if:{{{latest_release_version|{{{latest release version|}}}}}} |{{longitem |{{{latest_release_version|{{{latest release version|}}}}}}{{#if:{{{latest_release_date|{{{latest release date|}}}}}}|<br/>({{{latest_release_date|{{{latest release date|}}}}}})}} }} }}
 +
| label13 = Type of format
 +
|  data13 = {{{type|{{{genre|}}}}}}
 +
| label14 = [[Digital container format|Container&nbsp;for]]
 +
|  data14 = {{{container_for|{{{container for|{{{containerfor|}}}}}}}}}
 +
| label15 = Contained&nbsp;by
 +
|  data15 = {{{contained_by|{{{contained by|{{{containedby|}}}}}}}}}
 +
| label16 = Extended&nbsp;from
 +
|  data16 = {{{extended_from|{{{extended from|{{{extendedfrom|}}}}}}}}}
 +
| label17 = Extended&nbsp;to
 +
|  data17 = {{{extended_to|{{{extended to|{{{extendedto|}}}}}}}}}
 +
| label18 = [[International standard|Standard]]{{#if:{{{standards|}}}|s}}
 +
|  data18 = {{{standard|{{{standards|}}}}}}
 +
| label19 = {{nowrap|[[Open format]]?}}
 +
|  data19 = {{{free|}}}
 +
| label20 = Website
 +
|  data20 = {{{website|{{{url|}}}}}}
 +
 
 +
}}{{#invoke:Check for unknown parameters|check|ignoreblank=y
 +
|unknown={{main other|[[Category:Pages using infobox file format with unknown parameters|_VALUE_{{PAGENAME}}]]}}
 +
|preview=Page using [[Template:Infobox file format]] with unknown parameter "_VALUE_"
 +
| child | name | icon | logo | icon_size | logo_size | iconcaption | logocaption | screenshot | screenshot_size | caption | extensions | extension | _noextcode | mime | _nomimecode | type_code | type code | typecode | uniform_type | uniform type | conforms to | conforms_to | magic | developer | owner | released | latest_release_version | latest release version | latest_release_date | latest release date | type | genre | container_for | container for | containerfor | contained_by | contained by | containedby | extended_from | extended from | extendedfrom | extended_to | extended to | extendedto | standards | standard | free | url | website
 +
}}<noinclude>{{Documentation}}</noinclude>

Latest revision as of 11:46, 17 January 2021

Internet media type{{#property:P1163}}

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[view] [edit] [history] [purge]

Blank syntax

  1. redirect Template:Parameter names example
{{Infobox file format
| name = 
| icon = 
| iconcaption = 
| icon_size = 
| screenshot = 
| screenshot_size = 
| caption = 
|_noextcode = 
| extension =               <!-- or: | extensions = -->
|_nomimecode = 
| mime = 
| type_code = 
| uniform_type = 
| conforms_to = 
| magic = 
| developer = 
| released =                <!-- {{start date and age|YYYY|mm|dd|df=yes/no}} -->
| latest_release_version = 
| latest_release_date =     <!-- {{start date and age|YYYY|mm|dd|df=yes/no}} -->
| genre = 
| container_for = 
| contained_by = 
| extended_from = 
| extended_to = 
| standard =                <!-- or: | standards = -->
| free = 
| url = 
}}

By default, extension and mime are displayed using <code>...</code>; to disable this (in order to customize their formatting), assign _noextcode and/or _nomimecode a value ("on", "true", etc.).

Examples

{{Infobox file formatTemplate:\sandbox | name = Scalable Vector Graphics | icon = | iconcaption = | screenshot = | caption = |_noextcode = on | extensions = .svg, .svgz |_nomimecode = on | mime = image/svg+xml[1][2]

| type_code =
  • "svg"
  • "svgz"

| uniform_type = public.svg-image | conforms_to = public.image
public.xml | magic = | developer = W3C | released = Template:Start date and age | latest_release_version = 1.1 (Second Edition) | latest_release_date = Template:Start date and age | genre = Vector image format | container_for = | contained_by = | extended_from = XML | extended_to = | standard = W3C SVG | free = Yes | url = Template:URL }}

{{Infobox file format
| name = Scalable Vector Graphics
| icon = 
| iconcaption = | screenshot = | caption = 
|_noextcode = on
| extensions = .svg, .svgz
|_nomimecode = on
| mime = image/svg+xml<ref>(w3.org ref)</ref><ref>(ietf.org ref)</ref>
| type_code = {{hlist |"svg" |"svgz"}}
| uniform_type = <code>public.svg-image</code>
| conforms_to = <code>public.image</code><br/><code>public.xml</code>
| magic = 
| developer = [[World Wide Web Consortium|W3C]]
| released = {{start date and age|2001|09|04|df=yes}}
| latest_release_version = 1.1 (Second Edition)
| latest_release_date = {{start date and age|2011|08|16|df=yes}}
| genre = [[Vector image format]]
| container_for = | contained_by = 
| extended_from = [[XML]]
| extended_to = 
| standard = [http://www.w3.org/TR/SVG/ W3C SVG]
| free = Yes
| url = {{URL|http://www.w3.org/Graphics/SVG/}}
}}

{{Infobox file formatTemplate:\sandbox | name = OpenDocument Text | icon = ODF textdocument icon | screenshot = | caption = | extension = .odt | mime = application/vnd.
 oasis.opendocument.
 text | type_code = | uniform_type = org.oasis.
 opendocument.text
[3] | conforms_to = org.oasis-open.
 opendocument

public.composite-
 content
| magic =

| developer =

| released = | latest_release_version = | latest_release_date = | genre = Document file format | container_for = | contained_by = | extended_from = XML | extended_to = | standard = ISO/IEC 26300:2006 | free = Yes | url = }}

{{Infobox file format
| name = OpenDocument Text
| icon = [[File:ODF textdocument 48x48.png|ODF textdocument icon]]
| screenshot = | caption = 
| extension = .odt
| mime = application/vnd.<br/>&amp;nbsp;oasis.opendocument.<br/>&amp;nbsp;text
| type_code = 
| uniform_type = <code>org.oasis.<br/>&amp;nbsp;opendocument.text</code><ref>(www.huw.id.au ref)</ref>
| conforms_to = {{nowrap|<code>org.oasis-open.<br/>&amp;nbsp;opendocument</code><br/><code>public.composite-<br/>&amp;nbsp;content</code>}}
| magic = 
| developer = {{hlist |[[Sun Microsystems]] |[[OASIS (organization)|OASIS]]}}
| released = 
| latest_release_version = | latest_release_date = 
| genre = [[Document file format]]
| container_for = | contained_by = 
| extended_from = [[XML]]
| extended_to = 
| standard = ISO/IEC 26300:2006
| free = [[OpenDocument#Licensing|Yes]]
| url = 
}}

Parameters

name
The name of the file format.
icon
A file icon used by either the application that popularized the format or a common free icon. Alias is |logo=.
iconcaption
caption describing the icon.
screenshot
A screen shot of the file format in use.
caption
caption to the screen shot.
extension (or extensions) 
The format's filename extension or extensions. Set |_noextcode= to disable the default monospace font.
mime
The MIME type of the file. Set |_nomimecode= to disable the default monospace font.
type_code
The type code of the file, used by Mac OS Classic.
uniform type 
The Uniform Type Identifier, used by contemporary macOS computers and iOS devices.
conforms to
The immediate parents of the UTI. For example, public.png would conform to public.image
magic
A number or other data structure usually near the beginning of a file used to identify the file contents.
owner
The owner of the format.
released
The date the format was publicly released.
latest_release_version 
Latest version number of the format.
latest_release_date 
Date the latest version was released.
genre
The genre of the file format.
containerfor 
If the file is a container for another data type, list it here.
containedby
If the file type is typically housed in another file type, list it here. For example: Audio and video data are most often housed in a media container such as QuickTime et al.
extendedfrom 
If the file format is based on another, list it here.
extendedto
If a new format is derived from this one, list it here.
standard (or standards) 
If the format is part of a standard or standards, list it/them here.
free
Is it a free/open format?
url
URL of the file format's website, specification, etc.
  1. (w3.org ref)
  2. (ietf.org ref)
  3. (www.huw.id.au ref)

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Infobox file format

Consistently-formatted table for presenting information about file formats

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Childchild

Settings this to "yes" allows the infobox to be embedded into another infobox. It also causes name parameter to be ignored.

Stringoptional
Namename

The name of the file format.

Default
Pagename
Linesuggested
Iconicon logo

An icon used by either the application that popularized the format or a common free icon.

Stringsuggested
Icon sizeicon_size logo_size

Size of the icon to show including a unit (most likely pixels - 'px').

Default
64px
Stringoptional
Icon captioniconcaption logocaption

Caption describing the icon.

Stringoptional
Screenshotscreenshot

A screenshot of the file format in use.

Stringoptional
Screenshot sizescreenshot_size

Size of the screenshot to show including a unit (most likely pixels - 'px').

Default
300px
Stringoptional
Captioncaption

Caption to the screenshot.

Stringoptional
Extensionextension

The format's filename extension, if only one.

Stringsuggested
Extensionsextensions

The format's filename extensions, if more than one.

Stringoptional
No code style in extension_noextcode

If set to 'true', then extensions won't be formatted using monospace font.

Stringoptional
MIME typemime

The MIME type of the file.

Stringsuggested
No code style in MIME_nomimecode

If set to 'true', then MIME won't be formatted using monospace font.

Stringoptional
Type codetype_code type code typecode

The type code of the file used by Mac OS Classic.

Stringoptional
Uniform Type Identifier (UTI)uniform_type uniform type

The Uniform Type Identifier, used by contemporary macOS computers and iOS devices.

Stringoptional
UTI conformationconforms_to conforms to

The immediate parents of the UTI. For example, public.png would conform to public.image.

Stringoptional
Magic numbermagic

A number or other data structure usually near the beginning of a file used to identify the file contents.

Stringoptional
Developed bydeveloper owner

The owner of the format.

Stringsuggested
Type of formattype genre

The type of the file format, what does it store (e.g. Vector image format).

Stringsuggested
Initial releasereleased

The date the format was publicly released.

Stringoptional
Latest release versionlatest_release_version latest release version

Latest version number of the format.

Stringoptional
Latest release datelatest_release_date latest release date

Date the latest version was released.

Stringoptional
Container forcontainer_for container for containerfor

Data type this file format is container for. For instance, audio and video data is often housed in a container like Quick Time or Matroska (MKV).

Stringoptional
Contained bycontained_by contained by containedby

File type this type is usually housed in. For instance, audio and video data is often housed in a container like Quick Time or Matroska (MKV).

Stringoptional
Extended fromextended_from extended from extendedfrom

The format that this one is based on, if any.

Stringoptional
Extended toextended_to extended to extendedto

The format that this one is base for, if any.

Stringoptional
Standardstandard

Standard this format is part of, if only one.

Stringoptional
Standardsstandards

Standards this format is part of, if more than one.

Stringoptional
Open format?free

Is it a free/open format?

Stringoptional
Websiteurl

URL of the file format's website, specification, etc.

Stringsuggested

Tracking category