Diferencia entre revisiones de «Plantilla:Information»

De Salamone
Ir a la navegación Ir a la búsqueda
m
m
 
Línea 1: Línea 1:
== Usage ==
+
<div class="hproduct">
 +
<table class="fileinfotpl-type-information toccolours vevent" style="width: 100%;" cellpadding="4">
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
+
<!-- Description -->
<pre>{{Information
+
<tr style="vertical-align: top">
|Description=
+
<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>
|Source=
+
<td class="description">
|Date=
+
{{ #if: {{{description|{{{Description|}}} }}} | {{{description|{{{Description|}}} }}} | {{Description missing}} }}
|Author=
+
</td>
|other_versions=
+
</tr>
}}</pre>
 
<!-- Categories go here and interwikis go in Wikidata. -->
 
  
}}</includeonly>
+
<!-- Other fields 1 -->
 +
{{{other_fields_1|{{{Other_fields_1|{{{other fields 1|{{{Other fields 1|}}} }}} }}} }}}
  
 +
<!-- Date -->
 +
<tr style="vertical-align: top">
 +
<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>
 +
</tr>
  
 +
<!-- 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>
  
<templatedata>
+
<!-- Author -->
{
+
<tr style="vertical-align: top">
"description": "A template for showing data on files",
+
<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>
"params": {
+
<td>{{ #if: {{{author|{{{Author|}}} }}} | {{{author|{{{Author|}}} }}} | {{Author missing}} }}</td>
"Description": {
+
</tr>
"label": "Description",
+
 
"description": "A description of the file",
+
<!-- Permission -->
"type": "string",
+
{{#if:{{{permission|{{{Permission|}}} }}}{{{demo|<noinclude>1</noinclude>}}}|
"suggested": true
+
<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>
"Source": {
+
<td>
"label": "Source",
+
{{{permission|{{{Permission|}}} }}}
"description": "Where the file is from",
+
</td>
"type": "string",
+
</tr>
"suggested": true
+
}}
},
+
 
"Date": {
+
<!-- Other versions -->
"label": "Date",
+
{{#switch: {{{other_versions|{{{Other_versions|{{{other versions|{{{Other versions|}}} }}} }}} }}}{{{demo|<noinclude>1</noinclude>}}}
"description": "File creation date",
+
|  =
"type": "date",
+
| - =
"suggested": true
+
| none =
},
+
| #default =
"Author": {
+
<tr style="vertical-align: top">
"label": "Author",
+
<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>
"description": "Who made the file",
+
<td>
"type": "string"
+
{{{other_versions|{{{Other_versions|{{{other versions|{{{Other versions|}}} }}} }}} }}}
},
+
</td>
"Permission": {
+
</tr>
"label": "Permission",
+
}}
"description": "Custom reuse information"
+
 
}
+
<!-- Other fields -->
}
+
{{{other_fields|{{{Other_fields|{{{other fields|{{{Other fields|}}} }}} }}} }}}
}
+
 
</templatedata>
+
</table>
 +
</div><noinclude>
 +
{{documentation|Template:Information/doc}}
 +
</noinclude>

Revisión actual del 00:51 26 jun 2020

{{#if: 1| }} {{#switch: 1 | = | - = | none = | #default = }}
⧼wm-license-information-description⧽

{{ #if: | | Plantilla:Description missing }}

⧼wm-license-information-date⧽ Plantilla:ISOdate
⧼wm-license-information-source⧽ {{ #if: | | Plantilla:Source missing }}
⧼wm-license-information-author⧽ {{ #if: | | Plantilla:Author missing }}
⧼wm-license-information-permission⧽
(⧼wm-license-information-permission-reusing-text⧽)
⧼wm-license-information-other-versions⧽

Plantilla:Documentation