Template:Information: Difference between revisions

From MediaWiki
Jump to navigation Jump to search
Dbk (talk | contribs)
Created page with "<noinclude>{{heavily used template}}</noinclude><div class="hproduct commons-file-information-table"> <table class="fileinfotpl-type-information toccolours vevent mw-content-{..."
 
Dbk (talk | contribs)
No edit summary
 
(45 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{heavily used template}}</noinclude><div class="hproduct commons-file-information-table">
<div class="hproduct">
<table class="fileinfotpl-type-information toccolours vevent mw-content-{{Dir|{{int:lang}}}}" style="width: 100%; direction: {{Dir|{{int:lang}}}};" cellpadding="4">
<table class="toccolours vevent" style="width: 100%;" cellpadding="4">


<!-- Description -->
<!-- Description -->
<tr style="vertical-align: top">
<tr style="vertical-align: top">
<td {{ #if: {{{description|{{{Description|}}} }}} | id="fileinfotpl_desc" }} class="fileinfo-paramfield" lang="{{int:lang}}">{{int:wm-license-information-description}}<span class="summary fn" style="display:none">{{PAGENAME}}</span><!-- required for hCalendar and hProduct microformat; though hMedia would be more appropriate --></td>
<td id="fileinfotpl_desc" style="background: #ccf; text-align: right; padding-right: 0.4em; width: 15%; font-weight:bold">description</td>
<td class="description">
<td><span class="description">{{{description|{{{Description|}}} }}} </span></td>
{{ #if: {{{description|{{{Description|}}} }}} | {{{description|{{{Description|}}} }}} | {{Description missing}} }}
</td>
</tr>
</tr>


<!-- Other fields 1 -->
<!-- Other fields 1 -->
{{{other_fields_1|{{{Other_fields_1|{{{other fields 1|{{{Other fields 1|}}} }}} }}} }}}
{{{other_fields_1|{{{Other_fields_1|{{{other fields 1|{{{Other fields 1|}}} }}} }}} }}}
<!-- Date -->
<tr style="vertical-align: top">
<td id="fileinfotpl_date" class="fileinfo-paramfield" lang="{{int:lang}}">{{int:wm-license-information-date}}</td>
<td lang="{{int:lang}}">{{ISOdate|{{{date|{{{Date|}}} }}} }}</td>
</tr>


<!-- Source -->
<!-- Source -->
<tr style="vertical-align: top">
<tr style="vertical-align: top">
<td {{ #if: {{{source|{{{Source|}}} }}} | id="fileinfotpl_src" }} class="fileinfo-paramfield" lang="{{int:lang}}">{{int:wm-license-information-source}}</td>
<td id="fileinfotpl_src" style="background: #ccf; text-align: right; padding-right: 0.4em; width: 15%; font-weight:bold">source</td>
<td>{{ #if: {{{source|{{{Source|}}} }}} | {{Parse source|{{{source|{{{Source|}}} }}} }} | {{Source missing}} }}</td>
<td>{{{source|{{{Source|}}} }}}</td>
</tr>
</tr>


<!-- Author -->
<!-- Author -->
<tr style="vertical-align: top">
<tr style="vertical-align: top">
<td {{#switch: {{{author|{{{Author|}}} }}} |- |-- |= |#default= id="fileinfotpl_aut" }} class="fileinfo-paramfield" lang="{{int:lang}}">{{int:wm-license-information-author}}</td>
<td id="fileinfotpl_aut" style="background: #ccf; text-align: right; padding-right: 0.4em; width: 15%; font-weight:bold">author</td>
<td>{{ #if: {{{author|{{{Author|}}} }}} | {{Information/author processing|author={{{author|{{{Author|}}} }}}}} | {{Author missing}} }}</td>
<td>{{{author|{{{Author|}}} }}} </td>
</tr>
 
<!-- Permission -->
{{#if:{{{permission|{{{Permission|}}} }}}{{{demo|<noinclude>1</noinclude>}}}|
<tr style="vertical-align: top">
<td id="fileinfotpl_perm" class="fileinfo-paramfield" lang="{{int:lang}}">{{int:wm-license-information-permission}}<br /><small>([[{{int:wm-license-information-permission-reusing-link}}|{{int:wm-license-information-permission-reusing-text}}]])</small></td>
<td>
{{{permission|{{{Permission|}}} }}}
</td>
</tr>
</tr>
}}
<!-- Other versions -->
{{#switch: {{{other_versions|{{{Other_versions|{{{other versions|{{{Other versions|}}} }}} }}} }}}{{{demo|<noinclude>1</noinclude>}}}
|  =
| - =
| none =
| #default =
<tr style="vertical-align: top">
<td id="fileinfotpl_ver" class="fileinfo-paramfield" lang="{{int:lang}}">{{int:wm-license-information-other-versions}}</td>
<td>
{{{other_versions|{{{Other_versions|{{{other versions|{{{Other versions|}}} }}} }}} }}}
</td>
</tr>
}}


<!-- Other fields -->
<!-- Other fields -->
Line 59: Line 27:


</table>
</table>
</div><!--
</div><noinclude>
Parameter maintenance
-->{{#invoke:TemplatePar|check
|opt=
description= Description=
date= Date=
source= Source=
author= Author=
permission= Permission=
other_versions= Other_versions= other versions= Other versions=
other_fields= Other_fields= other fields= Other fields=
other_fields_1= Other_fields_1= other fields 1= Other fields 1=
demo=
|cat= Pages using Information template with incorrect parameter
|errNS= 6 10
|template= [[Template:Information]]
}}<noinclude>


{{documentation|Template:Information/doc}}
{{documentation|Template:Information/doc}}


<templatedata>
{
    "description": "A template for showing data on files",
    "params": {
        "Description": {
            "label": "Description",
            "description": "A description of the file",
            "type": "string",
            "suggested": true
        },
        "Source": {
            "label": "Source",
            "description": "Where the file is from",
            "type": "string",
            "suggested": true
        },
        "Date": {
            "label": "Date",
            "description": "File creation date",
            "type": "date",
            "suggested": true
        },
        "Author": {
            "label": "Author",
            "description": "Who made the file",
            "type": "string"
        },
        "Permission": {
            "label": "Permission",
            "description": "Custom reuse information"
        }
    }
}
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 14:57, 24 April 2015

description
source
author



A template for showing data on files

Template parameters

ParameterDescriptionTypeStatus
DescriptionDescription

A description of the file

Stringsuggested
SourceSource

Where the file is from

Stringsuggested
DateDate

File creation date

Datesuggested
AuthorAuthor

Who made the file

Stringoptional
PermissionPermission

Custom reuse information

Unknownoptional