Если вы заметили ошибку, опечатку, или можете дополнить статью — правьте смело! Сначала необходимо зарегистрироваться (быстро и бесплатно). Затем нажмите кнопку «править» в верхней части страницы и внесите изменения. О том, как загружать иллюстрации, создавать новые статьи и о многом другом можно прочитать в справке.

Шаблон:Изображение: различия между версиями

Материал из Товики — томской вики
(http://commons.wikimedia.org/w/index.php?title=Template:Description&action=edit)
 
(http://commons.wikimedia.org/w/index.php?title=Template:Information&action=edit)
Строка 1: Строка 1:
<includeonly>{{#if:{{{inline|}}}|<span class="description {{{1}}}" lang="{{{4|{{{1}}}}}}">|<div class="description {{{1}}}" lang="{{{4|{{{1}}}}}}">}}<span class="language {{{1}}}" title="{{{name|{{{3|}}}}}}">'''{{#language:{{{1}}}}}{{{5|}}}:'''</span> {{{2|}}}{{#if:{{{inline|}}}|</span>|</div>}}</includeonly><noinclude>
<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
Parameters:
|
*1=wikicode for the language and name of the CSS formating class (mandatory)
{{{Description}}}
*2=description text (optional, default is empty)
|-
*3=title for tooltip (optional, default is empty)
! style="background: #ccf; text-align: right; vertical-align: top; padding-right: 0.4em" id="fileinfotpl_src" | Source
**name=alternative parameter name for parameter 3
|
*4=standard code for lang tag in HTML (optional, default is same as parameter 1)
{{{Source}}}
*5=extension text shown after the language name before colon (optional, default is empty)
|-
*inline=optional, default is empty string. When set to any value different from an empty string, forces the template to be displayed inline, so that it does not break the current paragraph (i.e. that makes possible to put several descriptions side by side on a single line)
! style="background: #ccf; text-align: right; vertical-align: top; padding-right: 0.4em; white-space: nowrap" id="fileinfotpl_date" | Date
 
|
[[Category:Internationalization templates]]
{{{Date}}}
</noinclude>
|-
! 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
|
{{#if:{{{Permission|}}}|{{{Permission}}}|see below}}
{{#switch: {{{other_versions|}}}
|  =
| - =
| 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>}}
|}<noinclude>
{{Information/info}}
[[Category:Infobox templates]]</noinclude>

Версия от 00:39, 24 апреля 2007

Diamond-caution.svg.png

Note: This template is used on a lot of 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.

  • Keep in mind that 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.
  • Keep in mind that templates that are used on image description pages also show up on other wikis.
  • Highly used templates may be protected to prevent prominent vandalism and unnecessary edits. If this is the case, ask an administrator to apply the changes that you have proposed on the talk page, for example by asking on the administrator's noticeboard.
Description

{{{Description}}}

Source

{{{Source}}}

Date

{{{Date}}}

Author

{{{Author}}}

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)
}}