Difference between revisions of "Template:Information"

From Self-sufficiency
Jump to: navigation, search
(Remove extraneous white space, make permission optional, add high traffic template. Go work queue go!)
m (99 revisions from commons:Template:Information)
 
(45 intermediate revisions by 22 users not shown)
Line 1: Line 1:
<noinclude>{{Heavily_used_template}}</noinclude>{| 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}}
|{{{Description}}}
+
|<span class="summary" style="display:none">{{PAGENAME}}</span>
|-
+
{{ #if: {{{description|{{{Description|}}}}}} | {{{description|{{{Description|}}}}}} | {{Description missing}} }}
! style="background: #ccf; text-align: right; vertical-align: top; padding-right: 0.4em" id="fileinfotpl_src" | Source
+
|- valign="top"
|{{{Source}}}
+
! style="background: #ccf; text-align: right; padding-right: 0.4em; white-space: nowrap" id="fileinfotpl_date" | {{int:wm-license-information-date}}
|-
+
|  
! style="background: #ccf; text-align: right; vertical-align: top; padding-right: 0.4em; white-space: nowrap" id="fileinfotpl_date" | Date
+
{{ISOdate|{{{date|{{{Date|}}}}}}}}
|{{{Date}}}
+
|- valign="top"
|-
+
! style="background: #ccf; text-align: right; padding-right: 0.4em" id="fileinfotpl_src" | {{int:wm-license-information-source}}
! style="background: #ccf; text-align: right; vertical-align: top; padding-right: 0.4em" id="fileinfotpl_aut" | Author
+
|
|{{{Author}}}
+
{{ #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_perm" | Permission
+
! style="background: #ccf; text-align: right; padding-right: 0.4em" id="fileinfotpl_aut" | {{int:wm-license-information-author}}
|{{{Permission|''see below''}}}{{#switch: {{{other_versions|}}}
+
|
 +
{{ #if: {{{author|{{{Author|}}}}}} | {{{author|{{{Author|}}}}}} | {{Author missing}} }}
 +
|- valign="top"
 +
! 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>
 +
|
 +
{{ #if: {{{permission|{{{Permission|}}}}}} | {{{permission|{{{Permission|}}}}}} | {{int:wm-license-information-permission-see-below}} }}{{#switch: {{{other_versions|{{{Other_versions|{{{other versions|{{{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>{{{other_versions}}}</td></tr>}}
+
| #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|{{{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>
+
{{documentation}}
{{Information
+
|Description=
+
|Source=
+
|Date=
+
|Author=
+
|Permission= (optional, returns "see below" if nothing is filled in)
+
|other_versions= (optional variable, can be left out)
+
}}
+
</nowiki></pre>
+
  
''e.g. the source code of the description of [[:Image:Anders-Celsius-Head.jpg]]:''
+
[[Category:Infobox templates| ]]
 
+
[[Category:Autotranslated templates|Information]]
<pre><nowiki>
+
[[Category:Templates generating hCalendars|Information]]
{{Information
+
</noinclude>
|Description =
+
{{en|Part of an oil painting of Anders Celsius. Painting by Olof Arenius (1701 - 1766).
+
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 21: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>

|}