Template:Information: Difference between revisions

Safer nicotine wiki Tobacco Harm Reduction
Jump to navigation Jump to search
Wikimedia+Commons>Jarekt
(edit to trim no longer needed code after new version of module:information)
imported>Izno
(use templatestyles)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{heavily used template}}</noinclude><!--
<!--
-->{{#invoke:Information|information
  Automatically detect protected files:
| lang  = {{#if:{{{lang|}}} | {{{lang}}} | {{int:Lang}} }}
--><includeonly>{{#switch: {{PROTECTIONLEVEL:upload}}
| demo  = {{{demo|<noinclude>1</noinclude>}}}
  |sysop|templateeditor|extendedconfirmed={{pp-upload|small=yes}}
}}<noinclude>
}}{{#switch: {{PROTECTIONLEVEL:move}}
  |sysop|templateeditor|extendedconfirmed={{pp-move|small=yes}}
}}{{#switch: {{PROTECTIONLEVEL:edit}}
  |sysop={{pp-protected|small=yes}}
  |templateeditor={{pp-template|small=yes}}
  |extendedconfirmed={{Pp-30-500|small=yes}}
  |autoconfirmed={{pp-protected|small=yes}}
  | <!--Not protected-->
}}
</includeonly><templatestyles src="Information/styles.css"/>
{| class="file-information"
|+ File information
|-
! scope="row" {{#if:{{{Description|{{{description|}}}}}}|id="fileinfotpl_desc"}} |Description
| {{{Location|}}}
{{#if: {{{Description|{{{description|}}}}}}
| {{{Description|{{{description}}}}}}
| {{Description missing<noinclude>|category=</noinclude>}}
}}
|-
! scope="row" {{#if:{{{Source|{{{source|}}}}}}|id="fileinfotpl_src"}} | Source
|
{{#if:{{{Source|{{{source|}}}}}}
| {{{Source|{{{source}}}}}}
| {{#ifeq:{{NAMESPACE}}|File|<includeonly>[[Category:Files with no machine-readable source]]</includeonly>}} No source specified. Please edit this file description and [[Wikipedia:Citing sources#Multimedia|provide a source]].
}}
|-
! scope="row" {{#if:{{{Date|{{{date|}}}}}}|id="fileinfotpl_date"}} | Date
|
{{{Date|{{{date|}}}}}}
|-
! scope="row" {{#if:{{{Author|{{{author|}}}}}}|id="fileinfotpl_aut"}} | Author
|
{{#if: {{{Author|{{{author|}}}}}}
| {{{Author|{{{author}}}}}}
| {{Description missing|author information|category=}}{{#ifeq:{{NAMESPACE}}|File|<includeonly>[[Category:Files lacking an author]]</includeonly>}}  
}}
|-
! scope="row" {{#if:{{{Permission|{{{permission|}}}}}}|id="fileinfotpl_perm"}} | Permission<br /><small>([[Commons:Commons:Reusing content outside Wikimedia|Reusing this file]])</small>
|
{{#if:{{{Permission|{{{permission|}}}}}}
| {{{Permission|{{{permission}}}}}}
| See below.
}}
{{#switch: {{{Other_versions| {{{other_versions| {{{other versions|}}} }}} }}}
|  =
| - =
| none =
| #default =
{{!}}-
! scope="row" id="fileinfotpl_ver" {{!}} Other versions
{{!}} {{{Other_versions| {{{other_versions| {{{other versions|}}} }}} }}}
}}
{{#switch: {{{Additional_information|{{{additional_information|{{{Additional information|{{{additional information|}}}}}}}}}}}}
|  =
| - =
| none =
| #default =
{{!}}-
! scope="row" id="fileinfotpl_add" {{!}} Additional information
{{!}} {{{Additional_information|{{{additional_information|{{{Additional information|{{{additional information|}}}}}}}}}}}}
}}
|}<noinclude>
 
{{documentation}}
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Latest revision as of 19:49, 18 May 2022

File information
Description
Source

No source specified. Please edit this file description and provide a source.

Date
Author
Permission
(Reusing this file)

See below.