Difference between revisions of "Template:Information"

Template page
(Creating to display file information on file pages properly)
 
m (Replaced content with "<div class="wikitable"> {| class="wikitable" style="width: 100%;" | style="width: 30%" | Description | style="width: 70%" | {{{description|}}} |- | Date | {{{date|}}} |- |...")
Tag: Replaced
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<div class="hproduct">
<div class="wikitable">
<table class="fileinfotpl-type-information toccolours vevent" style="width: 100%;" cellpadding="4">
{| class="wikitable" style="width: 100%;"
 
| style="width: 30%" | Description
<!-- Description -->
| style="width: 70%" | {{{description|}}}
<tr style="vertical-align: top">
|-
<td {{ #if: {{{description|{{{Description|}}} }}} | id="fileinfotpl_desc" }} class="fileinfo-paramfield" style="background: #ccf; text-align: right; padding-right: 0.4em; width: 15%; font-weight:bold">{{int:wm-license-information-description}}</td>
| Date
<td class="description">
| {{{date|}}}
{{ #if: {{{description|{{{Description|}}} }}} | {{{description|{{{Description|}}} }}} | {{Description missing}} }}
|-
</td>
| Source
</tr>
| {{{source|}}}
 
|-
<!-- Other fields 1 -->
| Author
{{{other_fields_1|{{{Other_fields_1|{{{other fields 1|{{{Other fields 1|}}} }}} }}} }}}
| {{{author|}}}
 
|-
<!-- Date -->
| Permission
<tr style="vertical-align: top">
| {{{permission|}}}
<td {{ #if: {{{date|{{{Date|}}} }}} | id="fileinfotpl_date" }} class="fileinfo-paramfield" style="background: #ccf; text-align: right; padding-right: 0.4em; width: 15%; font-weight:bold">{{int:wm-license-information-date}}</td>
|-
<td>{{ISOdate|{{{date|{{{Date|}}} }}} }}</td>
| Other Versions
</tr>
| {{{other versions|}}}
 
|}
<!-- Source -->
<tr style="vertical-align: top">
<td {{ #if: {{{source|{{{Source|}}} }}} | id="fileinfotpl_src" }} class="fileinfo-paramfield" style="background: #ccf; text-align: right; padding-right: 0.4em; width: 15%; font-weight:bold">{{int:wm-license-information-source}}</td>
<td>{{ #if: {{{source|{{{Source|}}} }}} | {{{source|{{{Source|}}} }}} | {{Source missing}} }}</td>
</tr>
 
<!-- Author -->
<tr style="vertical-align: top">
<td {{#if: {{{author|{{{Author|}}} }}} | id="fileinfotpl_aut" }} class="fileinfo-paramfield" style="background: #ccf; text-align: right; padding-right: 0.4em; width: 15%; font-weight:bold">{{int:wm-license-information-author}}</td>
<td>{{ #if: {{{author|{{{Author|}}} }}} | {{{author|{{{Author|}}} }}} | {{Author missing}} }}</td>
</tr>
 
<!-- Permission -->
{{#if:{{{permission|{{{Permission|}}} }}}{{{demo|<noinclude>1</noinclude>}}}|
<tr style="vertical-align: top">
<td id="fileinfotpl_perm" class="fileinfo-paramfield" style="background: #ccf; text-align: right; padding-right: 0.4em; width: 15%; font-weight:bold">{{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>
}}
 
<!-- 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" style="background: #ccf; text-align: right; padding-right: 0.4em; width: 15%; font-weight:bold">{{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|{{{Other fields|}}} }}} }}} }}}
 
</table>
</div>
</div>

Latest revision as of 10:44, 13 July 2023

Description
Date
Source
Author
Permission
Other Versions