Difference between revisions of "Template:Information"
(id's for the fields as requested) |
(Remove extraneous white space, make permission optional, add high traffic template. Go work queue go!) |
||
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>{| 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" |
! 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" |Description | ||
− | | | + | |{{{Description}}} |
− | {{{Description}}} | + | |
|- | |- | ||
! style="background: #ccf; text-align: right; vertical-align: top; padding-right: 0.4em" id="fileinfotpl_src" | Source | ! style="background: #ccf; text-align: right; vertical-align: top; padding-right: 0.4em" id="fileinfotpl_src" | Source | ||
− | | | + | |{{{Source}}} |
− | {{{Source}}} | + | |
|- | |- | ||
! 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; vertical-align: top; padding-right: 0.4em; white-space: nowrap" id="fileinfotpl_date" | Date | ||
− | | | + | |{{{Date}}} |
− | {{{Date}}} | + | |
|- | |- | ||
! style="background: #ccf; text-align: right; vertical-align: top; padding-right: 0.4em" id="fileinfotpl_aut" | Author | ! style="background: #ccf; text-align: right; vertical-align: top; padding-right: 0.4em" id="fileinfotpl_aut" | Author | ||
− | | | + | |{{{Author}}} |
− | {{{Author}}} | + | |
|- | |- | ||
! style="background: #ccf; text-align: right; vertical-align: top; padding-right: 0.4em" id="fileinfotpl_perm" | Permission | ! style="background: #ccf; text-align: right; vertical-align: top; padding-right: 0.4em" id="fileinfotpl_perm" | Permission | ||
− | | | + | |{{{Permission|''see below''}}}{{#switch: {{{other_versions|}}} |
− | {{{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><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>}} |
− | {{{other_versions}}}</td></tr>}} | + | |
|}<noinclude> | |}<noinclude> | ||
==Brief syntax description == | ==Brief syntax description == | ||
Line 35: | Line 28: | ||
|Date= | |Date= | ||
|Author= | |Author= | ||
− | |Permission= | + | |Permission= (optional, returns "see below" if nothing is filled in) |
|other_versions= (optional variable, can be left out) | |other_versions= (optional variable, can be left out) | ||
}} | }} |
Revision as of 02:14, 18 February 2007
Template:Heavily used template{| 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" ! style="background: #ccf; text-align: right; vertical-align: top; padding-right: 0.4em; width: 15%" id="fileinfotpl_desc" |Description |{{{Description}}} |- ! style="background: #ccf; text-align: right; vertical-align: top; padding-right: 0.4em" id="fileinfotpl_src" | Source |{{{Source}}} |- ! style="background: #ccf; text-align: right; vertical-align: top; padding-right: 0.4em; white-space: nowrap" id="fileinfotpl_date" | Date |{{{Date}}} |- ! 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 |see below |}
Brief syntax description
For usage full description of the the template see Commons:First steps/Quality and description.
{{Information |Description= |Source= |Date= |Author= |Permission= (optional, returns "see below" if nothing is filled in) |other_versions= (optional variable, can be left out) }}
e.g. the source code of the description of Image:Anders-Celsius-Head.jpg:
{{Information |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) }}