Template:Information: Difference between revisions

From Wikimedia Foundation Governance Wiki
Content deleted Content added
Ladsgroup (talk | contribs)
Not to show permission field if there is no permission in the template like WM commons
Base (talk | contribs)
m oh
Line 17: Line 17:
|-
|-
{{#if:{{{Permission|}}}|
{{#if:{{{Permission|}}}|
! 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}}}}}
{{{Permission}}}
{{!}}-
}}
{{#switch: {{{other_versions|}}}
{{#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>
| <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>

Revision as of 23:15, 4 November 2015

Description

{{{Description}}}

Source

{{{Source}}}

Date

{{{Date}}}

Author

{{{Author}}}

Brief syntax description

For usage full description of the the template see commons:Commons:First steps/Quality and description.

{{Information
 |Description= 
 |Source     =
 |Date       =
 |Author     =
 |Permission =
 |other_versions= (optional variable, can be left out)
}}

e.g. the source code of the description of Image:Anders-Celsius-Head.jpg:

{{Information
 |Description= 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.
 |Source     = [http://www.astro.uu.se/history/Celsius_eng.html Astronomical observatory of Uppsala University]
 |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)
}}