Template:Infobox file format: Difference between revisions
copied from wikipedia |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
| child = {{{child|}}} | | child = {{{child|}}} | ||
| decat = yes <!--(remove this template from Template:Infobox tracking categories)--> | | decat = yes <!--(remove this template from Template:Infobox tracking categories)--> | ||
| titlestyle = padding-bottom:0.15em;<!--(to avoid title touching box's border)--> | | titlestyle = padding-bottom: 0.15em;<!--(to avoid title touching box's border)--> | ||
| title = {{#ifeq:{{{child|}}}|yes |'''File format details''' |{{{name|<includeonly>{{PAGENAME}}</includeonly>}}}}} | | 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}} | | image1 = {{#invoke:InfoboxImage|InfoboxImage|image={{{icon|{{{logo|}}}}}}|size={{{icon_size|{{{logo_size|}}}}}}|sizedefault=64px}} | ||
| caption1 = {{{iconcaption|{{{logocaption|}}}}}} | | caption1 = {{{iconcaption|{{{logocaption|}}}}}} | ||
| image2 = {{#invoke:InfoboxImage|InfoboxImage |image={{{screenshot|}}} |size={{{screenshot_size|}}} |sizedefault=300px}} | | image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{{screenshot|}}}|size={{{screenshot_size|}}}|sizedefault=300px}} | ||
| caption2 = {{{caption|}}} | | caption2 = {{{caption|}}} | ||
| labelstyle = line-height:1. | | labelstyle = line-height: 1.2;<!--(modified longitem)--> padding-right: 0.65em;<!--(to ensure some gap between (long/unwrapped) label and data on same line)--> | ||
| datastyle = line-height:1. | | datastyle = line-height: 1.35; | ||
| label4 = [[Wikipedia:Filename extension|Filename extension]]{{#if:{{{extensions|}}}|s}} | | label4 = [[Wikipedia:Filename extension|Filename extension]]{{#if:{{{extensions|}}}|s}} | ||
Line 15: | Line 15: | ||
| label5 = [[Wikipedia:Media type|Internet media type]] | | label5 = [[Wikipedia:Media type|Internet media type]] | ||
| data5 = {{#ifeq:{{{mime|}}}|hide|| {{#if:{{{mime|}}} |{{#if:{{{_nomimecode|}}} |{{{mime}}} |{{monodiv|{{{mime}}}}}}} }} }} | | data5 = {{#ifeq:{{{mime|}}}|hide|| {{#if:{{{mime|}}} |{{#if:{{{_nomimecode|}}} |{{{mime}}} |{{monodiv|{{{mime}}}}}}} }} }} | ||
| label6 = [[Type code]] | | label6 = [[Wikipedia:Resource fork#Types|Type code]] | ||
| data6 = {{{type_code|{{{type code|{{{typecode|}}}}}}}}} | | data6 = {{{type_code|{{{type code|{{{typecode|}}}}}}}}} | ||
| label7 = [[Uniform Type Identifier|Uniform Type Identifier (UTI)]] | | label7 = [[Wikipedia:Uniform Type Identifier|Uniform Type Identifier (UTI)]] | ||
| data7 = {{{uniform_type|{{{uniform type|}}}}}} | | data7 = {{{uniform_type|{{{uniform type|}}}}}} | ||
| label8 = UTI conformation | | label8 = UTI conformation | ||
Line 33: | Line 33: | ||
| label14 = Type of format | | label14 = Type of format | ||
| data14 = {{{type|{{{genre|}}}}}} | | data14 = {{{type|{{{genre|}}}}}} | ||
| label15 = [[Wikipedia: | | label15 = [[Wikipedia:Data compression|Compression]] | ||
| | | data15 = {{{compression|}}} | ||
| | | label16 = [[Wikipedia:Container format|Container for]] | ||
| | | data16 = {{{container_for|{{{container for|{{{containerfor|}}}}}}}}} | ||
| | | label17 = Contained by | ||
| | | data17 = {{{contained_by|{{{contained by|{{{containedby|}}}}}}}}} | ||
| | | label18 = Extended from | ||
| | | data18 = {{{extended_from|{{{extended from|{{{extendedfrom|}}}}}}}}} | ||
| | | label19 = Extended to | ||
| | | data19 = {{{extended_to|{{{extended to|{{{extendedto|}}}}}}}}} | ||
| | | label20 = [[Wikipedia:International standard|Standard]]{{#if:{{{standards|}}}|s}} | ||
| | | data20 = {{{standard|{{{standards|}}}}}} | ||
| | | label21 = {{nowrap|[[Wikipedia:Open file format|Open format]]?}} | ||
| | | data21 = {{{open|}}} | ||
| | | label22 = {{nowrap|[[Wikipedia:Open standard#Comparison of definitions|Free format]]?}} | ||
| | | data22 = {{{free|}}} | ||
| label23 = Website | |||
| data23 = {{{website|{{{url|}}}}}} | |||
}}{{#invoke:Check for unknown parameters|check|ignoreblank=y | }}{{#invoke:Check for unknown parameters|check|ignoreblank=y | ||
|unknown={{main other|[[Category:Pages using infobox file format with unknown parameters|_VALUE_{{PAGENAME}}]]}} | |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_" | |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 | open | url | website | max_size | | 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 | compression | container_for | container for | containerfor | contained_by | contained by | containedby | extended_from | extended from | extendedfrom | extended_to | extended to | extendedto | standards | standard | free | open | url | website | max_size | ||
}}<noinclude>{{Documentation}}</noinclude> | }}<noinclude> | ||
{{Documentation}}</noinclude> |
Latest revision as of 20:07, 14 May 2025
![]() | This template and its description were copied from Wikipedia on 11 May 2025. The original template can be found here. |
![]() | This template uses Lua: |
This is an infobox template for articles about file formats.
Blank syntax
[[File:{{{icon}}}|64px]] iconcaption | |
[[File:{{{screenshot}}}|300px]] caption | |
Filename extension |
extension[s] |
---|---|
Internet media type |
mime |
Type code | typecode |
Uniform Type Identifier (UTI) | uniform type |
UTI conformation | conforms_to |
Magic number | magic |
Size limitation | max_size |
Developed by | developer |
Initial release | {{start date and age |…}} |
Latest release | latest_release_version {{start date and age |…}} |
Type of format | type |
Container for | containerfor |
Contained by | containedby |
Extended from | extendedfrom |
Extended to | extendedto |
Standard | standard (standards) |
Open format? | open |
Free format? | free |
Website | url |
{{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 =
| max_size =
| 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}} -->
| type =
| compression =
| container_for =
| contained_by =
| extended_from =
| extended_to =
| standard = <!-- or: | standards = -->
| free =
| open =
| 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.).
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 topublic.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.
- type
- The type of the file format.
- compression
- The type of compression 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 format?
- open
- Is it an open format?
- url
- URL of the file format's website, specification, etc.
TemplateData
TemplateData for Infobox file format
Consistently-formatted table for presenting information about file formats
Parameter | Description | Type | Status | |
---|---|---|---|---|
Child | child | Settings this to "yes" allows the infobox to be embedded into another infobox. It also causes name parameter to be ignored. | String | optional |
Name | name | The name of the file format.
| Line | suggested |
Icon | icon logo | An icon used by either the application that popularized the format or a common free icon. | String | suggested |
Icon size | icon_size logo_size | Size of the icon to show including a unit (most likely pixels - 'px').
| String | optional |
Icon caption | iconcaption logocaption | Caption describing the icon. | String | optional |
Screenshot | screenshot | A screenshot of the file format in use. | String | optional |
Screenshot size | screenshot_size | Size of the screenshot to show including a unit (most likely pixels - 'px').
| String | optional |
Caption | caption | Caption to the screenshot. | String | optional |
Extension | extension | The format's filename extension, if only one. | String | suggested |
Extensions | extensions | The format's filename extensions, if more than one. | String | optional |
No code style in extension | _noextcode | If set to 'true', then extensions won't be formatted using monospace font. | String | optional |
MIME type | mime | The MIME type of the file. | String | suggested |
No code style in MIME | _nomimecode | If set to 'true', then MIME won't be formatted using monospace font. | String | optional |
Type code | type_code type code typecode | The type code of the file used by Mac OS Classic. | String | optional |
Uniform Type Identifier (UTI) | uniform_type uniform type | The Uniform Type Identifier, used by contemporary macOS computers and iOS devices. | String | optional |
UTI conformation | conforms_to conforms to | The immediate parents of the UTI. For example, public.png would conform to public.image. | String | optional |
Magic number | magic | A number or other data structure usually near the beginning of a file used to identify the file contents. | String | optional |
Size limitation | max_size | The highest size a file can have. On compressed archives, it may refer to the content size or the size of the archive file itself. | String | optional |
Developed by | developer owner | The owner of the format. | String | suggested |
Type of format | type | The type of the file format, what does it store (e.g. Vector image format). | String | suggested |
Type of Compression | compression | The type of compression (e.g. Uncompressed, Lossless, Lossy). | String | suggested |
Initial release | released | The date the format was publicly released. | String | optional |
Latest release version | latest_release_version latest release version | Latest version number of the format. | String | optional |
Latest release date | latest_release_date latest release date | Date the latest version was released. | String | optional |
Container for | container_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). | String | optional |
Contained by | contained_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). | String | optional |
Extended from | extended_from extended from extendedfrom | The format that this one is based on, if any. | String | optional |
Extended to | extended_to extended to extendedto | The format that this one is base for, if any. | String | optional |
Standard | standard | Standard this format is part of, if only one. | String | optional |
Standards | standards | Standards this format is part of, if more than one. | String | optional |
Free format? | free | Is it a free format? | String | optional |
Open format? | open | Is it an open format? | String | optional |
Website | url | URL of the file format's website, specification, etc. | String | suggested |