Difference between revisions of "Template:Information"

From PacificNG
(Created page with "<noinclude>{{heavily used template}}</noinclude><!-- -->{{#invoke:Information|information | lang = {{#if:{{{lang|}}} | {{{lang}}} | {{int:Lang}} }} | demo = {{{demo|<n...")
 
 
Line 1: Line 1:
<noinclude>{{heavily used template}}</noinclude><!--
<div class="hproduct">
-->{{#invoke:Information|information
<table class="fileinfotpl-type-information toccolours vevent" style="width: 100%;" cellpadding="4">
| lang  = {{#if:{{{lang|}}} | {{{lang}}} | {{int:Lang}} }}
 
| demo   = {{{demo|<noinclude>1</noinclude>}}}
<!-- Description -->
}}<noinclude>
<tr style="vertical-align: top">
{{documentation}}
<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 class="description">
{{ #if: {{{description|{{{Description|}}} }}} | {{{description|{{{Description|}}} }}} | {{Description missing}} }}
</td>
</tr>
 
<!-- 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>
 
<!-- 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><noinclude>
{{documentation|Template:Information/doc}}
</noinclude>
</noinclude>

Latest revision as of 11:54, 11 August 2021

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

{{ #if: | | {{#switch:<translate></translate> | = Template:Mbox | #default=

 {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Description missing|noshift=1|uselang=⧼lang⧽}}

}} }}

⧼wm-license-information-date⧽ {{#switch: 1

|{{#ifexpr: ({{#ifeq: | | 1|0}}) or (({{#iferror: {{#expr: }} | 1 | {{#ifeq: | {{#expr: }} |0|1}} }}) and ({{#iferror: {{#time: | }}{{#time: | a }} | 1 | 0 }}) and ({{#iferror: {{#expr: }} | 1 | 0 }})) | 1}}= |{{#if: {{#iferror: {{#expr: }} | | {{#ifeq: | {{#expr: }} |1|}} }} | 1 }}=Template:Date |{{#ifexpr: ({{#iferror: {{#expr: }} | 1 | 0 }}=1) and ({{#iferror: {{#time: | }}{{#time: | a }} | 1 | 0 }})|1}}= |{{#ifexpr: ({{#iferror: {{#expr: }} |0|1}}) and ( <= 998) and ( >= -11)|1}}= {{#switch: 1 |{{#ifexpr: ( <= 998) and ( >= -11) and ({{#iferror: {{#time: Y | 0000000 }}|1|0}}=1)|1}}= |{{#ifexpr: ( <= 998) and ( >= -11) and ({{#ifexpr: ({{#time: Y | 0000000 }} >= 1958) and ( <= 98) |1|0}}=1)|1}}={{#ifeq: | {{#expr: {{#time: y | 0000000 }} }}-{{#time: m | 0000000 }} | Template:Date | {{#ifeq: | {{#expr: {{#time: y | 0000000 }} }}-{{#time: m | 0000000 }}-{{#time: d | 0000000 }} | Template:Date | }} }} |{{#ifexpr: ( <= 998) and ( >= -11)|1}}={{#ifeq: | {{#expr: {{#time: Y | 0000000 }} }}-{{#time: m | 0000000 }} | Template:Date | {{#ifeq: | {{#expr: {{#time: Y | 0000000 }} }}-{{#time: m | 0000000 }}-{{#time: d | 0000000 }} | Template:Date | }} }} |#default= }} |#default= {{#ifexpr: ({{#ifeq:

                1. | # | 1 | 0 }}) and ({{#iferror: {{#expr: > 100 }} | 0 | {{#ifexpr: > 100 | 1 | 0 }} }}) and ({{#iferror: {{#time: Y | }} | 0 | 1 }}) | Template:Date | {{#switch:

|{{#expr: {{#time:Y| }} - 1900 }}-{{#time:m-d H:i:sZ| }} |{{#expr: {{#time:Y| }} - 1900 }}-{{#time:m-d H:i:s| }}=Template:Date{{#ifeq: | Y | | Template:Date-time separatorTemplate:Time }} |{{#expr: {{#time:Y| }} - 1900 }}-{{#time:m-d H:i| }}=Template:Date{{#ifeq: | Y | | Template:Date-time separatorTemplate:Time }} |{{#expr: {{#time:Y| }} - 1900 }}-{{#time:m-d| }}=Template:Date |{{#expr: {{#time:Y| }} - 1900 }}-{{#time:m| }}=Template:Date |{{#expr: {{#time:Y| }} - 1900 }}=Template:Date |{{#expr: {{#time:Y| }} - 2000 }}-{{#time:m-d H:i:sZ| }} |{{#expr: {{#time:Y| }} - 2000 }}-{{#time:m-d H:i:s| }}=Template:Date{{#ifeq: | Y | | Template:Date-time separatorTemplate:Time }} |{{#expr: {{#time:Y| }} - 2000 }}-{{#time:m-d H:i| }}=Template:Date{{#ifeq: | Y | | Template:Date-time separatorTemplate:Time }} |{{#expr: {{#time:Y| }} - 2000 }}-{{#time:m-d| }}=Template:Date |{{#expr: {{#time:Y| }} - 2000 }}-{{#time:m| }}=Template:Date |{{#expr: {{#time:Y| }} - 2000 }}=Template:Date |{{#time:Y-m-d H:i:sZ| }} |{{#expr:{{#time:Y| }}}}{{#time:-m-d H:i:sZ| }} |{{#expr:{{#time:Y| }}}}{{#time:-m-d H:i:s| }}=Template:Date{{#ifeq: | Y | | Template:Date-time separatorTemplate:Time }} |{{#expr:{{#time:Y| }}}}{{#time:-m-d H:i| }}=Template:Date{{#ifeq: | Y | | Template:Date-time separatorTemplate:Time }} |{{#expr:{{#time:Y| }}}}{{#time:-m-d| }}=Template:Date |{{#expr:{{#time:Y| }}}}{{#time:-m| }}=Template:Date |{{#expr:{{#time:Y| }}}}=Template:Date |#default= }} }}

}}{{#ifeq:|Y|Template:ISOdate with f }}
⧼wm-license-information-source⧽ {{ #if: | | Template:Iffile }}
⧼wm-license-information-author⧽ {{ #if: | | Template:Author missing }}
⧼wm-license-information-permission⧽
(⧼wm-license-information-permission-reusing-text⧽)
⧼wm-license-information-other-versions⧽

Template:Documentation