Difference between revisions of "Template:Information"

From The TTSCpedia
Jump to navigationJump to search
FairPlay137
FairPlay137 (talk | contribs) (Created page with "<noinclude>{{notice|text=This template was freshly ported from Commons. It might not be optimized for the TTSCpedia yet.}}</noinclude><div class="hproduct commons-file-informa...")
 
m
Line 4: Line 4:
 
<!-- Description -->
 
<!-- Description -->
 
<tr style="vertical-align: top">
 
<tr style="vertical-align: top">
<td {{ #if: {{{description|{{{Description|}}} }}} | id="fileinfotpl_desc" }} class="fileinfo-paramfield" lang="{{int:lang}}">{{int:wm-license-information-description}}<span class="summary fn" style="display:none">{{PAGENAME}}</span><!-- required for hCalendar and hProduct microformat; though hMedia would be more appropriate --></td>
+
<td {{ #if: {{{description|{{{Description|}}} }}} | id="fileinfotpl_desc" }} class="fileinfo-paramfield" lang="{{int:lang}}">{{int:tc-license-information-description}}<span class="summary fn" style="display:none">{{PAGENAME}}</span><!-- required for hCalendar and hProduct microformat; though hMedia would be more appropriate --></td>
 
<td class="description">
 
<td class="description">
 
{{ #if: {{{description|{{{Description|}}} }}} | {{{description|{{{Description|}}} }}} | {{Description missing}} }}
 
{{ #if: {{{description|{{{Description|}}} }}} | {{{description|{{{Description|}}} }}} | {{Description missing}} }}
Line 15: Line 15:
 
<!-- Date -->
 
<!-- Date -->
 
<tr style="vertical-align: top">
 
<tr style="vertical-align: top">
<td id="fileinfotpl_date" class="fileinfo-paramfield" lang="{{int:lang}}">{{int:wm-license-information-date}}</td>
+
<td id="fileinfotpl_date" class="fileinfo-paramfield" lang="{{int:lang}}">{{int:tc-license-information-date}}</td>
 
<td lang="{{int:lang}}">{{ISOdate|{{{date|{{{Date|}}} }}} }}</td>
 
<td lang="{{int:lang}}">{{ISOdate|{{{date|{{{Date|}}} }}} }}</td>
 
</tr>
 
</tr>
Line 21: Line 21:
 
<!-- Source -->
 
<!-- Source -->
 
<tr style="vertical-align: top">
 
<tr style="vertical-align: top">
<td {{ #if: {{{source|{{{Source|}}} }}} | id="fileinfotpl_src" }} class="fileinfo-paramfield" lang="{{int:lang}}">{{int:wm-license-information-source}}</td>
+
<td {{ #if: {{{source|{{{Source|}}} }}} | id="fileinfotpl_src" }} class="fileinfo-paramfield" lang="{{int:lang}}">{{int:tc-license-information-source}}</td>
 
<td>{{ #if: {{{source|{{{Source|}}} }}} | {{Parse source|{{{source|{{{Source|}}} }}} }} | {{Source missing}} }}</td>
 
<td>{{ #if: {{{source|{{{Source|}}} }}} | {{Parse source|{{{source|{{{Source|}}} }}} }} | {{Source missing}} }}</td>
 
</tr>
 
</tr>
Line 27: Line 27:
 
<!-- Author -->
 
<!-- Author -->
 
<tr style="vertical-align: top">
 
<tr style="vertical-align: top">
<td {{#switch: {{{author|{{{Author|}}} }}} |- |-- |= |#default= id="fileinfotpl_aut" }} class="fileinfo-paramfield" lang="{{int:lang}}">{{int:wm-license-information-author}}</td>
+
<td {{#switch: {{{author|{{{Author|}}} }}} |- |-- |= |#default= id="fileinfotpl_aut" }} class="fileinfo-paramfield" lang="{{int:lang}}">{{int:tc-license-information-author}}</td>
 
<td>{{ #if: {{{author|{{{Author|}}} }}} | {{Information/author processing|author={{{author|{{{Author|}}} }}}}} | {{Author missing}} }}</td>
 
<td>{{ #if: {{{author|{{{Author|}}} }}} | {{Information/author processing|author={{{author|{{{Author|}}} }}}}} | {{Author missing}} }}</td>
 
</tr>
 
</tr>
Line 34: Line 34:
 
{{#if:{{{permission|{{{Permission|}}} }}}{{{demo|<noinclude>1</noinclude>}}}|
 
{{#if:{{{permission|{{{Permission|}}} }}}{{{demo|<noinclude>1</noinclude>}}}|
 
<tr style="vertical-align: top">
 
<tr style="vertical-align: top">
<td id="fileinfotpl_perm" class="fileinfo-paramfield" lang="{{int:lang}}">{{int:wm-license-information-permission}}<br /><small>([[{{int:wm-license-information-permission-reusing-link}}|{{int:wm-license-information-permission-reusing-text}}]])</small></td>
+
<td id="fileinfotpl_perm" class="fileinfo-paramfield" lang="{{int:lang}}">{{int:tc-license-information-permission}}<br /><small>([[{{int:tc-license-information-permission-reusing-link}}|{{int:tc-license-information-permission-reusing-text}}]])</small></td>
 
<td>
 
<td>
 
{{{permission|{{{Permission|}}} }}}
 
{{{permission|{{{Permission|}}} }}}
Line 48: Line 48:
 
| #default =  
 
| #default =  
 
<tr style="vertical-align: top">
 
<tr style="vertical-align: top">
<td id="fileinfotpl_ver" class="fileinfo-paramfield" lang="{{int:lang}}">{{int:wm-license-information-other-versions}}</td>
+
<td id="fileinfotpl_ver" class="fileinfo-paramfield" lang="{{int:lang}}">{{int:tc-license-information-other-versions}}</td>
 
<td>
 
<td>
 
{{{other_versions|{{{Other_versions|{{{other versions|{{{Other versions|}}} }}} }}} }}}
 
{{{other_versions|{{{Other_versions|{{{other versions|{{{Other versions|}}} }}} }}} }}}

Revision as of 17:53, 5 May 2019

Description
Date
Source
Author
Permission
(Reusing this file)
Other versions
Template documentation[view] [edit] [history] [purge]

Lua error: expandTemplate: invalid title "Template:TemplateBox/i18n/Template:Fallback".

TemplateData

This template is used to provide formatting to the basic information for files (description, source, author, etc.). For a full usage description of the template, see Commons:First steps/Quality and description.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Descriptiondescription

Description of the image or media file, including subject and location.

Default
{{description missing}}
Example
Photo of a penguin in Antarctica
Unknownrequired
Date of creationdate

When the original source was created.

Example
2001-12-31
Unknownsuggested
Sourcesource

Where the file is from (own files should be tagged with {{own}}).

Default
{{source missing}}
Unknownrequired
Authorauthor

Original author of the file; where appropriate, use {{Creator:Name Surname}}.

Default
{{author missing}}
Unknownrequired
Permissionpermission

License and other usage limitations and warnings.

Unknownsuggested
Other versionsother versionsother_versions

Links to files with very similar content or derived files.

Unknownsuggested
Other fieldsother fieldsother_fields

Additional table fields added on the bottom of the template.

Unknownoptional
Other fields 1other fields 1other_fields_1

Additional table fields added between Description and Date rows.

Unknownoptional

Example usage

Example for photograph

For example the source code of the description of photograph File:Piers Sellers spacewalk.jpg is:

Template:Pre2

The code hereinbefore produces the following information table:

Description

Template:De

English: Astronaut Piers Sellers during the third spacewalk of STS-121, a demonstration of orbiter heat shield repair techniques.

Template:Fr Template:It Template:Nds Template:Ru Template:Fi

Date 2006-07-12
Source NASA News & Eventshttp://www.nasa.gov/externalflash/121_gallery/hi-resjpgs/14.jpg, from http://www.nasa.gov/externalflash/121_gallery/index_noaccess.html
Author NASA, astronaut Michael Edward Fossum

Example other_fields

Example using the other fields parameter to display a credit line:

{{Information
| Description  = Description
| Date         = 2008-06-09
| Source       = {{own}}
| Author       = John Doe
| Other fields = {{Credit line |Author = © John Doe | Other = Wikimedia Commons |License = CC-BY-3.0 & GFDL}}
}}

will produce:

Template:Credit line
Description

Description

Date 2008-06-09
Source Own work
Author John Doe

Recommendations

For many media it is desirable to use a geocoding template in addition to the Information template.

Microformat

This template also emits an hCalendar microformat marking the creation of the image as an event. To do this, it requires the {{Date}} template, and takes the file name as the "summary" property. Optionally, it can include the {{Creator}} as an attendee and an hCard microformat, and use the contents of {{Description}} as the hCalendar's "description" property. Coordinates may be included by use of {{Location}} or {{Object location}}.

See also Commons:Machine-readable data.

See also