Difference between revisions of "Template:Information"

From FIThydrowiki
Jump to navigation Jump to search
what>Mdann52
(fix (hopefully!))
what>Tacsipacsi
(change fields to add id only if there is some value (change based on Commons))
Line 1: Line 1:
 
<div class="hproduct">
 
<div class="hproduct">
<table class="toccolours vevent" style="width: 100%;" cellpadding="4">
+
<table class="fileinfotpl-type-information toccolours vevent" style="width: 100%;" cellpadding="4">
  
 
<!-- Description -->
 
<!-- Description -->
 
<tr style="vertical-align: top">
 
<tr style="vertical-align: top">
<td id="fileinfotpl_desc" style="background: #ccf; text-align: right; padding-right: 0.4em; width: 15%; font-weight:bold">{{int:wm-license-information-description}}</td>
+
<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>
<td><span class="description">{{ #if: {{{description|{{{Description|}}} }}} | {{{description|{{{Description|}}} }}} | {{Description missing}} }}</span></td>
+
<td class="description">
 +
{{ #if: {{{description|{{{Description|}}} }}} | {{{description|{{{Description|}}} }}} | {{Description missing}} }}
 +
</td>
 
</tr>
 
</tr>
  
Line 13: Line 15:
 
<!-- Date -->
 
<!-- Date -->
 
<tr style="vertical-align: top">
 
<tr style="vertical-align: top">
<td id="fileinfotpl_date" style="background: #ccf; text-align: right; padding-right: 0.4em; width: 15%; font-weight:bold">{{int:wm-license-information-date}}</td>
+
<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>
 
<td>{{ISOdate|{{{date|{{{Date|}}} }}} }}</td>
 
</tr>
 
</tr>
Line 19: Line 21:
 
<!-- Source -->
 
<!-- Source -->
 
<tr style="vertical-align: top">
 
<tr style="vertical-align: top">
<td id="fileinfotpl_src" 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|}}} }}} | 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 missing}} }}</td>
+
<td>{{ #if: {{{source|{{{Source|}}} }}} | {{{source|{{{Source|}}} }}} | {{Source missing}} }}</td>
 
</tr>
 
</tr>
  
 
<!-- Author -->
 
<!-- Author -->
 
<tr style="vertical-align: top">
 
<tr style="vertical-align: top">
<td id="fileinfotpl_aut" 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|}}} }}} | 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>
 
<td>{{ #if: {{{author|{{{Author|}}} }}} | {{{author|{{{Author|}}} }}} | {{Author missing}} }}</td>
 
</tr>
 
</tr>
Line 32: Line 34:
 
{{#if:{{{permission|{{{Permission|}}} }}}{{{demo|<noinclude>1</noinclude>}}}|
 
{{#if:{{{permission|{{{Permission|}}} }}}{{{demo|<noinclude>1</noinclude>}}}|
 
<tr style="vertical-align: top">
 
<tr style="vertical-align: top">
<td id="fileinfotpl_perm" 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 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>
 
<td>
 
{{{permission|{{{Permission|}}} }}}
 
{{{permission|{{{Permission|}}} }}}
Line 46: Line 48:
 
| #default =  
 
| #default =  
 
<tr style="vertical-align: top">
 
<tr style="vertical-align: top">
<td id="fileinfotpl_ver" style="background: #ccf; text-align: right; padding-right: 0.4em; width: 15%; font-weight:bold">{{int:wm-license-information-other-versions}}</td>
+
<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>
 
<td>
 
{{{other_versions|{{{Other_versions|{{{other versions|{{{Other versions|}}} }}} }}} }}}
 
{{{other_versions|{{{Other_versions|{{{other versions|{{{Other versions|}}} }}} }}} }}}

Revision as of 06:48, 1 May 2015

⧼wm-license-information-description⧽

Lua error in package.lua at line 80: module 'Module:Arguments' not found.

⧼wm-license-information-date⧽
⧼wm-license-information-source⧽
⧼wm-license-information-author⧽
⧼wm-license-information-permission⧽
(⧼wm-license-information-permission-reusing-text⧽)
⧼wm-license-information-other-versions⧽

Lua error in package.lua at line 80: module 'Module:Arguments' not found.


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