Difference between revisions of "Template:Information"

From DFM Wiki
(Created page with "<div class="hproduct"> <table class="fileinfotpl-type-information toccolours vevent" style="width: 100%;" cellpadding="4"> <!-- Description --> <tr style="vertical-align: top...")
 
(Add line breaks in TH elements)
Tag: 2017 source edit
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="hproduct">
+
{| summary="A standardized table providing complete information about the file, including description of what it shows and how it was made, copyright status and source." class="toccolours mbox-inside" style="width:100%;" cellpadding="2"
<table class="fileinfotpl-type-information toccolours vevent" style="width: 100%;" cellpadding="4">
+
! style="background:#ccf; text-align:right; vertical-align:top; padding-right: 0.4em; width:15%;" {{#if:{{{Description|{{{description|}}}}}}|id="fileinfotpl_desc"}} |
 
+
Description
<!-- Description -->
+
| {{{Location|}}}
<tr style="vertical-align: top">
+
{{#if: {{{Description|{{{description|}}}}}}  
<td {{ #if: {{{description|{{{Description|}}} }}} | id="fileinfotpl_desc" }} class="fileinfo-paramfield" style="background: #ccf; text-align: right; padding-right: 0.4em; width: 15%; font-weight:bold">{{int:wm-license-information-description}}</td>
+
| {{{Description|{{{description}}}}}}  
<td class="description">
+
| {{Description missing<noinclude>|category=</noinclude>}}
{{ #if: {{{description|{{{Description|}}} }}} | {{{description|{{{Description|}}} }}} | {{Description missing}} }}
+
}}
</td>
+
|- style="vertical-align:top;"
</tr>
+
! style="background:#ccf; text-align:right; padding-right:0.4em;" {{#if:{{{Source|{{{source|}}}}}}|id="fileinfotpl_src"}} |
 
+
Source
<!-- Other fields 1 -->
+
|
{{{other_fields_1|{{{Other_fields_1|{{{other fields 1|{{{Other fields 1|}}} }}} }}} }}}
+
{{#if:{{{Source|{{{source|}}}}}}
 
+
| {{{Source|{{{source}}}}}}
<!-- Date -->
+
| {{#ifeq:{{NAMESPACE}}|File|<includeonly>[[Category:Files with no machine-readable source]]</includeonly>}} No source specified. Please edit this file description and provide a source.
<tr style="vertical-align: top">
+
}}
<td {{ #if: {{{date|{{{Date|}}} }}} | id="fileinfotpl_date" }} class="fileinfo-paramfield" style="background: #ccf; text-align: right; padding-right: 0.4em; width: 15%; font-weight:bold">{{int:wm-license-information-date}}</td>
+
|- style="vertical-align:top;"
<td>{{ISOdate|{{{date|{{{Date|}}} }}} }}</td>
+
! style="background:#ccf; text-align:right; padding-right:0.4em; white-space:nowrap;" {{#if:{{{Date|{{{date|}}}}}}|id="fileinfotpl_date"}} |
</tr>
+
Date
 
+
|
<!-- Source -->
+
{{{Date|{{{date|}}}}}}
<tr style="vertical-align: top">
+
|- style="vertical-align:top;"
<td {{ #if: {{{source|{{{Source|}}} }}} | id="fileinfotpl_src" }} class="fileinfo-paramfield" style="background: #ccf; text-align: right; padding-right: 0.4em; width: 15%; font-weight:bold">{{int:wm-license-information-source}}</td>
+
! style="background:#ccf; text-align:right; padding-right:0.4em;" {{#if:{{{Author|{{{author|}}}}}}|id="fileinfotpl_aut"}} |
<td>{{ #if: {{{source|{{{Source|}}} }}} | {{{source|{{{Source|}}} }}} | {{Source missing}} }}</td>
+
Author
</tr>
+
|
 
+
{{#if: {{{Author|{{{author|}}}}}}  
<!-- Author -->
+
| {{{Author|{{{author}}}}}}  
<tr style="vertical-align: top">
+
| {{Description missing|author information|category=}}{{#ifeq:{{NAMESPACE}}|File|<includeonly>[[Category:Files lacking an author]]</includeonly>}}
<td {{#if: {{{author|{{{Author|}}} }}} | id="fileinfotpl_aut" }} class="fileinfo-paramfield" style="background: #ccf; text-align: right; padding-right: 0.4em; width: 15%; font-weight:bold">{{int:wm-license-information-author}}</td>
+
}}
<td>{{ #if: {{{author|{{{Author|}}} }}} | {{{author|{{{Author|}}} }}} | {{Author missing}} }}</td>
+
|- style="vertical-align:top;"
</tr>
+
! style="background:#ccf; text-align:right; padding-right:0.4em;" {{#if:{{{Permission|{{{permission|}}}}}}|id="fileinfotpl_perm"|}} |
 
+
Permission
<!-- Permission -->
+
|
{{#if:{{{permission|{{{Permission|}}} }}}{{{demo|<noinclude>1</noinclude>}}}|
+
{{#if:{{{Permission|{{{permission|}}}}}}
<tr style="vertical-align: top">
+
| {{{Permission|{{{permission}}}}}}
<td id="fileinfotpl_perm" class="fileinfo-paramfield" style="background: #ccf; text-align: right; padding-right: 0.4em; width: 15%; font-weight:bold">{{int:wm-license-information-permission}}<br /><small>([[{{int:wm-license-information-permission-reusing-link}}|{{int:wm-license-information-permission-reusing-text}}]])</small></td>
+
| See below.
<td>
+
}}
{{{permission|{{{Permission|}}} }}}
+
{{#switch: {{{Other_versions| {{{other_versions| {{{other versions|}}} }}} }}}
</td>
+
|   =
 +
| - =
 +
| none =
 +
| #default =
 +
<tr style="vertical-align:top;">
 +
<th style="background:#ccf; text-align:right; padding-right:0.4em;" id="fileinfotpl_ver"> Other versions </th>
 +
<td> {{{Other_versions| {{{other_versions| {{{other versions|}}} }}} }}} </td>
 
</tr>
 
</tr>
 
}}
 
}}
 
+
{{#switch: {{{Additional_information|{{{additional_information|{{{Additional information|{{{additional information|}}}}}}}}}}}}
<!-- Other versions -->
+
|  =  
{{#switch: {{{other_versions|{{{Other_versions|{{{other versions|{{{Other versions|}}} }}} }}} }}}{{{demo|<noinclude>1</noinclude>}}}
+
| - =  
|  =
+
| none =  
| - =
 
| none =
 
 
| #default =  
 
| #default =  
<tr style="vertical-align: top">
+
<tr style="vertical-align:top;">
<td id="fileinfotpl_ver" class="fileinfo-paramfield" style="background: #ccf; text-align: right; padding-right: 0.4em; width: 15%; font-weight:bold">{{int:wm-license-information-other-versions}}</td>
+
<th style="background:#ccf; text-align:right; padding-right:0.4em;" id="fileinfotpl_add">  
<td>
+
Additional information  
{{{other_versions|{{{Other_versions|{{{other versions|{{{Other versions|}}} }}} }}} }}}
+
</th>
</td>
+
<td> {{{Additional_information|{{{additional_information|{{{Additional information|{{{additional information|}}}}}}}}}}}} </td>
 
</tr>
 
</tr>
 
}}
 
}}
 
+
|}<noinclude>
<!-- Other fields -->
+
For usage information, see https://en.wikipedia.org/wiki/Template:Information.
{{{other_fields|{{{Other_fields|{{{other fields|{{{Other fields|}}} }}} }}} }}}
+
<templatedata>
 
+
{
</table>
+
"params": {
</div><noinclude>
+
"description": {
For usage information, see https://www.mediawiki.org/wiki/Template:Information.
+
"label": "description of the file",
</noinclude>
+
"type": "string",
 +
"aliases": [
 +
"Description"
 +
],
 +
"description": "Describe of the content, (historical) background, and in the case of scientific data, a brief scientific analysis of the media file.",
 +
"required": true
 +
},
 +
"location": {
 +
"description": "Location at which the image was taken.",
 +
"aliases": [
 +
"Location"
 +
]
 +
},
 +
"source": {
 +
"description": "Explain where the image is acquired from. Please specify accurately. (If it is the work of the uploader themself, use {{Own}}. If it was acquired from a website, specify the URL of the web page from which it is acquired. Optionally, include a direct link to the image. (Never include a direct link alone.) If it was scanned from a book or magazine, specify the title, author, publisher, publication year, ISBN and page of the book or title, issue, volume, publication month and year, ISSN (if available) and page of the journal. ",
 +
"aliases": [
 +
"Source"
 +
],
 +
"type": "string",
 +
"required": true
 +
},
 +
"date": {
 +
"label": "creation date",
 +
"aliases": [
 +
"Date"
 +
],
 +
"description": "Date of creation or date of publication. Use the year or YYYY-MM-DD format (e.,g., 2021-04-16).",
 +
"type": "string"
 +
},
 +
"author": {
 +
"aliases": [
 +
"Author"
 +
],
 +
"description": "Author(s) of the image. If no individual person is known, use the name of the institution that owns, published or released the file.",
 +
"type": "string",
 +
"required": true
 +
},
 +
"permission": {
 +
"aliases": [
 +
"Permission"
 +
],
 +
"description": "Not to be mistaken with license. Description of the permissions granted by the copyright holder. Use only when the accompanying license tag is not enough. Note that the media file must still be tagged with the appropriate license template.",
 +
"default": "See below.",
 +
"label": "permission (extra information)",
 +
"type": "string"
 +
},
 +
"other_versions": {
 +
"description": "\t Links to other versions of this image. The links may be in form of a list of links or thumbnails of the other versions of the image. Please only link to images that can be used instead of the image at hand; do not use this field as a mean of grouping related files. Instead, use categories.",
 +
"type": "string",
 +
"aliases": [
 +
"other versions",
 +
"Other versions",
 +
"Other_versions"
 +
]
 +
},
 +
"additional_information": {
 +
"aliases": [
 +
"additional information",
 +
"Additional information",
 +
"Additional_information"
 +
],
 +
"description": "Contains other information about this image that doesn't fit somewhere else. For example, information that might be relevant to determining a file's proper copyright status (e.g. weblinks) might be provided this way.",
 +
"type": "string"
 +
}
 +
},
 +
"description": "Template used for input of information on file description pages. This is used by the Upload Wizard.",
 +
"format": "block"
 +
}
 +
</templatedata></noinclude>

Latest revision as of 15:14, 30 November 2021

Description

No description provided.

Source

No source specified. Please edit this file description and provide a source.

Date

Author

No description provided.

Permission

See below.


For usage information, see https://en.wikipedia.org/wiki/Template:Information.

Template used for input of information on file description pages. This is used by the Upload Wizard.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
description of the filedescription Description

Describe of the content, (historical) background, and in the case of scientific data, a brief scientific analysis of the media file.

Stringrequired
Locationlocation Location

Location at which the image was taken.

Unknownoptional
Sourcesource Source

Explain where the image is acquired from. Please specify accurately. (If it is the work of the uploader themself, use {{Own}}. If it was acquired from a website, specify the URL of the web page from which it is acquired. Optionally, include a direct link to the image. (Never include a direct link alone.) If it was scanned from a book or magazine, specify the title, author, publisher, publication year, ISBN and page of the book or title, issue, volume, publication month and year, ISSN (if available) and page of the journal.

Stringrequired
creation datedate Date

Date of creation or date of publication. Use the year or YYYY-MM-DD format (e.,g., 2021-04-16).

Stringoptional
Authorauthor Author

Author(s) of the image. If no individual person is known, use the name of the institution that owns, published or released the file.

Stringrequired
permission (extra information)permission Permission

Not to be mistaken with license. Description of the permissions granted by the copyright holder. Use only when the accompanying license tag is not enough. Note that the media file must still be tagged with the appropriate license template.

Default
See below.
Stringoptional
Other_versionsother_versions other versions Other versions Other_versions

Links to other versions of this image. The links may be in form of a list of links or thumbnails of the other versions of the image. Please only link to images that can be used instead of the image at hand; do not use this field as a mean of grouping related files. Instead, use categories.

Stringoptional
Additional_informationadditional_information additional information Additional information Additional_information

Contains other information about this image that doesn't fit somewhere else. For example, information that might be relevant to determining a file's proper copyright status (e.g. weblinks) might be provided this way.

Stringoptional