Difference between revisions of "Template:Information"

From Second Life Wiki
Jump to navigation Jump to search
(Shamelessly copied from commons.wikimedia.org)
 
(Attempt #2: this time, copied from Wikipedia)
 
Line 1: Line 1:
<noinclude>{{heavily used template}}</noinclude><div class="hproduct commons-file-information-table">
<!--
<table class="fileinfotpl-type-information toccolours vevent mw-content-{{Dir|{{int:lang}}}}" style="width: 100%; direction: {{Dir|{{int:lang}}}};" cellpadding="4">
  Automatically detect protected files:
--><includeonly>{{#switch: {{PROTECTIONLEVEL:upload}}
  |sysop|templateeditor|extendedconfirmed={{pp-upload|small=yes}}
}}{{#switch: {{PROTECTIONLEVEL:move}}
  |sysop|templateeditor|extendedconfirmed={{pp-move|small=yes}}
}}{{#switch: {{PROTECTIONLEVEL:edit}}
  |sysop={{pp-protected|small=yes}}
  |templateeditor={{pp-template|small=yes}}
  |extendedconfirmed={{Pp-30-500|small=yes}}
  |autoconfirmed={{pp-protected|small=yes}}
  | <!--Not protected-->
}}
</includeonly><!--<templatestyles src="Information/styles.css"/>-->


<!-- Description -->
|
<tr style="vertical-align: top">
{{#if:{{{Permission|{{{permission|}}}}}}
<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>
| {{{Permission|{{{permission}}}}}}
<td class="description">
| See below.
{{ #if: {{{description|{{{Description|}}} }}} | {{{description|{{{Description|}}} }}} | {{Description missing}} }}
}}
</td>
{{#switch: {{{Other_versions| {{{other_versions| {{{other versions|}}} }}} }}}
</tr>
=  
 
| - =  
<!-- Other fields 1 -->
| none =  
{{{other_fields_1|{{{Other_fields_1|{{{other fields 1|{{{Other fields 1|}}} }}} }}} }}}
| #default =  
 
{{!}}-
<!-- Date -->
! scope="row" id="fileinfotpl_ver" {{!}} Other versions
<tr style="vertical-align: top">
{{!}} {{{Other_versions| {{{other_versions| {{{other versions|}}} }}} }}}
<td id="fileinfotpl_date" class="fileinfo-paramfield" lang="{{int:lang}}">{{int:wm-license-information-date}}</td>
<td lang="{{int:lang}}">{{ISOdate|{{{date|{{{Date|}}} }}} }}</td>
</tr>
 
<!-- Source -->
<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|}}} }}} | {{Parse source|{{{source|{{{Source|}}} }}} }} | {{Source missing}} }}</td>
</tr>
 
<!-- Author -->
<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>{{ #if: {{{author|{{{Author|}}} }}} | {{Information/author processing|author={{{author|{{{Author|}}} }}}}} | {{Author missing}} }}</td>
</tr>
 
<!-- Permission -->
{{#if:{{{permission|{{{Permission|}}} }}}{{{demo|<noinclude>1</noinclude>}}}|
<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>
{{{permission|{{{Permission|}}} }}}
</td>
</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">
{{!}}-
<td id="fileinfotpl_ver" class="fileinfo-paramfield" lang="{{int:lang}}">{{int:wm-license-information-other-versions}}</td>
{| class="file-information"
<td>
|+ File information
{{{other_versions|{{{Other_versions|{{{other versions|{{{Other versions|}}} }}} }}} }}}
|-
</td>
! scope="row" {{#if:{{{Description|{{{description|}}}}}}|id="fileinfotpl_desc"}} |Description
</tr>
| {{{Location|}}}
{{#if: {{{Description|{{{description|}}}}}}
| {{{Description|{{{description}}}}}}
| {{Description missing<noinclude>|category=</noinclude>}}
}}
|-
! scope="row" {{#if:{{{Source|{{{source|}}}}}}|id="fileinfotpl_src"}} | Source
|
{{#if:{{{Source|{{{source|}}}}}}
| {{{Source|{{{source}}}}}}
| {{#ifeq:{{NAMESPACE}}|File|<includeonly>[[Category:Files with no machine-readable source]]</includeonly>}} No source specified. Please edit this file description and [[Wikipedia:Citing sources#Multimedia|provide a source]].
}}
|-
! scope="row" {{#if:{{{Date|{{{date|}}}}}}|id="fileinfotpl_date"}} | Date
|
{{{Date|{{{date|}}}}}}
|-
! scope="row" {{#if:{{{Author|{{{author|}}}}}}|id="fileinfotpl_aut"}} | Author
|
{{#if: {{{Author|{{{author|}}}}}}  
| {{{Author|{{{author}}}}}}  
| {{Description missing|author information|category=}}{{#ifeq:{{NAMESPACE}}|File|<includeonly>[[Category:Files lacking an author]]</includeonly>}}
}}
}}
|-
! scope="row" {{#if:{{{Permission|{{{permission|}}}}}}|id="fileinfotpl_perm"}} | Permission<br /><small>([[Commons:Commons:Reusing content outside Wikimedia|Reusing this file]])</small>
! scope="row" id="fileinfotpl_add" {{!}} Additional information
{{!}} {{{Additional_information|{{{additional_information|{{{Additional information|{{{additional information|}}}}}}}}}}}}
}}
|}
<noinclude>


<!-- Other fields -->
{{{other_fields|{{{Other_fields|{{{other fields|{{{Other fields|}}} }}} }}} }}}
</table>
</div>{{Infobox template tag}}{{#ifexpr:{{Years since|1={{ISOyear| {{{date|{{{Date|}}} }}} }}|error=0 }}>200 | {{Works created more than 200 years ago}} }}<!--
Parameter maintenance
-->{{#invoke:TemplatePar|check
|opt=
description= Description=
date= Date=
source= Source=
author= Author=
permission= Permission=
other_versions= Other_versions= other versions= Other versions=
other_fields= Other_fields= other fields= Other fields=
other_fields_1= Other_fields_1= other fields 1= Other fields 1=
demo=
|cat= Pages using Information template with incorrect parameter
|errNS= 6 10
|template= [[Template:Information]]
}}<noinclude>
{{documentation}}
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Latest revision as of 11:19, 15 September 2022


| See below.


|}


[Edit] [🔄Purge] Template-info.png Template documentation
Not to be confused with Template:Information page.

exclamation mark

Note: This template is used on 140946 pages. In order not to put too much load on the servers, edits should be kept to a bare minimum.
Please discuss proposed changes on the talk page first.
Editing a template causes all pages that use the template to be re-rendered. If the Template is used often, this can put a lot of load on the servers since it fills up the job queue. [statistics]

Purpose

This template records and displays metadata for media files, such as photographs and diagrams. It includes a description of the file, its source, and its copyright status.

Usage

Full Without optional fields
{{Information
| description = 
| source      = 
| date        = 
| author      = 
| permission  = 
| other_versions = 
| additional_information = 
}}
{{Information
| description = 
| source      = 
| date        = 
| author      = 
}}

Syntax description

Mandatory parameters

description
Describe of the content, (historical) background, and in the case of scientific data, a brief scientific analysis of the media file.
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.

Other parameters

source
Explain where the image is acquired from. Please specify accurately. For instance:
  1. Work of the uploader themself: Specify {{Own}}.
  2. 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.)
  3. 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. You can use {{cite book}} and {{cite journal}}.
date
Date of creation, or date of publication. Although not compulsory, it is advised to stick to the recommendations of Wikipedia:Manual of Style/Dates and numbers § Dates. Specifically, please avoid ambiguous dates like 02/03/04 which can refer to 2 March 2004, 3 February 2004, 4 March 2002 or 3 April 2002, depending on the geographical origin of the person who sees it.
permission
Optional. 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. Select a copyright tag from Wikipedia:Image copyright tags/All.
other versions
Optional. 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.
additional information
Optional. 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.

Example

Example for File:Anders-Celsius-Head.jpg:



| Copyright expired as artist died more than 70 years ago |- ! scope="row" id="fileinfotpl_ver" | Other versions | File:Anders-Celsius.jpeg (full image)

|}


TemplateData

This is the "Wikipedia logo"TemplateData for this template used by TemplateWizard, "Wikipedia logo"VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for Information

<templatedata> { "params": { "description": { "required": true, "label": "Description", "aliases": [ "Description" ], "type": "string", "description": "Describe of the content, (historical) background, and in the case of scientific data, a brief scientific analysis of the media file." }, "source": { "required": true, "label": "Source", "aliases": [ "Source" ], "type": "string", "description": "Explain where the image is acquired from. Please specify accurately. (If it is the work of the uploader themself, use Template: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. You can use .  and . .)\n" }, "date": { "required": false, "label": "Date", "aliases": [ "Date" ], "type": "string", "description": "Date of creation or date of publication. Although not compulsory, it is advised to stick to the Manual of Style recommendations. Specifically, please avoid ambiguous dates like 02/03/04 which can refer to 2 March 2004, 3 February 2004, 4 March 2002 or 3 April 2002, depending on the geographical origin of the person who sees it." }, "author": { "required": true, "label": "Author", "aliases": [ "Author" ], "type": "string", "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." }, "permission": { "required": false, "label": "Permission (extra information)", "aliases": [ "Permission" ], "type": "string", "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." }, "other_versions": { "required": false, "label": "Other versions", "aliases": [ "Other_versions", "other versions" ], "type": "string", "description": "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." }, "additional_information": { "required": false, "label": "Additional information", "type": "string", "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." } }, "description": "This template is used to make a standardized table providing information about files, including a description, its copyright status, and its source.", "format": "block" } </templatedata>

See also