Difference between revisions of "Template:Information"

From Self-sufficiency
Jump to: navigation, search
(id's for the fields as requested)
m (99 revisions from commons:Template:Information)
 
(46 intermediate revisions by 22 users not shown)
Line 1: Line 1:
{| 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" style="width: 100%" cellpadding="2"
+
<noinclude>{{heavily used template}}</noinclude>{| class="toccolours vevent" style="width: 100%; direction: {{Dir|{{{lang}}}}};" cellpadding="2"
! style="background: #ccf; text-align: right; vertical-align: top; padding-right: 0.4em; width: 15%" id="fileinfotpl_desc" |Description
+
! style="background: #ccf; text-align: right; vertical-align: top; padding-right: 0.4em; width: 15%" id="fileinfotpl_desc" |{{int:wm-license-information-description}}
 +
|<span class="summary" style="display:none">{{PAGENAME}}</span>
 +
{{ #if: {{{description|{{{Description|}}}}}} | {{{description|{{{Description|}}}}}} | {{Description missing}} }}
 +
|- valign="top"
 +
! style="background: #ccf; text-align: right; padding-right: 0.4em; white-space: nowrap" id="fileinfotpl_date" | {{int:wm-license-information-date}}
 +
|
 +
{{ISOdate|{{{date|{{{Date|}}}}}}}}
 +
|- valign="top"
 +
! style="background: #ccf; text-align: right; padding-right: 0.4em" id="fileinfotpl_src" | {{int:wm-license-information-source}}
 
|
 
|
{{{Description}}}
+
{{ #if: {{{source|{{{Source|}}}}}} | {{Parse source|{{{source|{{{Source|}}}}}}}} | {{Source missing}} }}
|-
+
|- valign="top"
! style="background: #ccf; text-align: right; vertical-align: top; padding-right: 0.4em" id="fileinfotpl_src" | Source
+
! style="background: #ccf; text-align: right; padding-right: 0.4em" id="fileinfotpl_aut" | {{int:wm-license-information-author}}
 
|
 
|
{{{Source}}}
+
{{ #if: {{{author|{{{Author|}}}}}} | {{{author|{{{Author|}}}}}} | {{Author missing}} }}
|-
+
|- valign="top"
! style="background: #ccf; text-align: right; vertical-align: top; padding-right: 0.4em; white-space: nowrap" id="fileinfotpl_date" | Date
+
! style="background: #ccf; text-align: right; padding-right: 0.4em" id="fileinfotpl_perm" | {{int:wm-license-information-permission}}<br /><small>([[{{int:wm-license-information-permission-reusing-link}}|{{int:wm-license-information-permission-reusing-text}}]])</small>
 
|
 
|
{{{Date}}}
+
{{ #if: {{{permission|{{{Permission|}}}}}} | {{{permission|{{{Permission|}}}}}} | {{int:wm-license-information-permission-see-below}} }}{{#switch: {{{other_versions|{{{Other_versions|{{{other versions|{{{Other versions|}}}}}}}}}}}}
|-
+
! style="background: #ccf; text-align: right; vertical-align: top; padding-right: 0.4em" id="fileinfotpl_aut" | Author
+
|
+
{{{Author}}}
+
|-
+
! style="background: #ccf; text-align: right; vertical-align: top; padding-right: 0.4em" id="fileinfotpl_perm" | Permission
+
|
+
{{{Permission}}}
+
{{#switch: {{{other_versions|}}}
+
 
|  =
 
|  =
 
| - =
 
| - =
 
| none =
 
| none =
| #default = <tr><td style="background: #ccf; text-align: right; vertical-align: top; padding-right: 0.4em; font-weight: bold" id="fileinfotpl_ver">Other versions</td><td>
+
| #default = <tr valign="top"><td style="background: #ccf; text-align: right; padding-right: 0.4em; font-weight: bold" id="fileinfotpl_ver">{{int:wm-license-information-other-versions}}</td><td>
{{{other_versions}}}</td></tr>}}
+
{{{other_versions|{{{Other_versions|{{{other versions|{{{Other versions|}}}}}}}}}}}}</td></tr>}}
 +
{{{other_fields|{{{Other_fields|{{{other fields|{{{Other fields|}}}}}}}}}}}}
 
|}<noinclude>
 
|}<noinclude>
==Brief syntax description ==
 
For usage full description of the the template see [[Commons:First steps/Quality and description]].
 
 
<pre><nowiki>
 
{{Information
 
|Description=
 
|Source=
 
|Date=
 
|Author=
 
|Permission=
 
|other_versions= (optional variable, can be left out)
 
}}
 
</nowiki></pre>
 
  
''e.g. the source code of the description of [[:Image:Anders-Celsius-Head.jpg]]:''
+
{{documentation}}
  
<pre><nowiki>
+
[[Category:Infobox templates| ]]
{{Information
+
[[Category:Autotranslated templates|Information]]
|Description =
+
[[Category:Templates generating hCalendars|Information]]
{{en|Part of an oil painting of Anders Celsius. Painting by Olof Arenius (1701 - 1766).
+
</noinclude>
The original painting is placed in the astronomical observatory of Uppsala University.}}
+
{{de|Teil eines Ölgemälde von Anders Celsius, das von Olof Arenius (1701-1766) gemalt wurde.
+
Das Originalgemälde befindet sich im astronomischen Observatorium der Universität Uppsala.}}
+
{{nds|Deel vun en Schilleraats, dat Anders Celsius wiest. Maalt vun Olof Arenius (1701-1766).
+
Dat Original hangt in’t astronoomsche Observatorium bi de Universität Uppsala.}}
+
|Source = Astronomical observatory of Uppsala University
+
* http://www.astro.uu.se/history/Celsius_eng.html
+
* http://www.astro.uu.se/history/images/celsius3.jpg
+
|Date = between 1701 - 1766
+
|Author = Olof Arenius
+
|Permission = Copyright expired as artist died more than 70 years ago
+
|other_versions = [[:Image:Anders-Celsius.jpeg]] (full image)
+
}}
+
</nowiki></pre>
+
[[Category:Infobox templates]]</noinclude>
+

Latest revision as of 20:59, 20 September 2010

Template:Heavily used template{| class="toccolours vevent" style="width: 100%; direction: ltr;" cellpadding="2" ! style="background: #ccf; text-align: right; vertical-align: top; padding-right: 0.4em; width: 15%" id="fileinfotpl_desc" |<wm-license-information-description> |

|- valign="top" ! style="background: #ccf; text-align: right; padding-right: 0.4em; white-space: nowrap" id="fileinfotpl_date" | <wm-license-information-date> |

|- valign="top" ! style="background: #ccf; text-align: right; padding-right: 0.4em" id="fileinfotpl_src" | <wm-license-information-source> | Template:Source missing |- valign="top" ! style="background: #ccf; text-align: right; padding-right: 0.4em" id="fileinfotpl_aut" | <wm-license-information-author> |

|- valign="top" ! style="background: #ccf; text-align: right; padding-right: 0.4em" id="fileinfotpl_perm" | <wm-license-information-permission>
([[<wm-license-information-permission-reusing-link>|<wm-license-information-permission-reusing-text>]]) | <wm-license-information-permission-see-below>

|}