Difference between revisions of "Template:Related images"
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
| − | <noinclude> | + | <noinclude>This is the "Image" template used to store and display metadata for uploaded files. |
| − | This is the | + | |
| − | + | [[Category:Info templates]] | |
| − | < | + | </noinclude><includeonly>{{#ifeq: {{SUBPAGENAME}} |
| − | {{ | + | |{{PAGENAME}} |
| − | | | + | | |
| − | | | + | |[[File:{{ROOTPAGENAME}}|1060px|link=File:{{ROOTPAGENAME}}]] |
}} | }} | ||
| − | </ | + | =={{int:filedesc}}== |
| − | + | <table style="width: 100%;" cellpadding="4"> | |
| − | </ | + | <!-- Existence --> |
| − | {| | + | {{#if: {{#show: {{FULLPAGENAME}} |?Media type }} |
| − | ! | + | |{{#set: Is existing file=true }} |
| − | |- | + | |{{#set: Is existing file=false }} |
| − | ! style=" | + | }} |
| − | |} | + | |
| − | </includeonly> | + | <!-- Language --> |
| + | {{#ifeq: {{SUBPAGENAME}} | ||
| + | |{{PAGENAME}} | ||
| + | |{{interlanguagelink: en |{{FULLPAGENAME}} }} {{#set: Language code=en }} | ||
| + | |{{#ifeq: {{SUBPAGENAME}} | ||
| + | |en | ||
| + | | | ||
| + | |{{interlanguagelink: {{SUBPAGENAME}} |{{NAMESPACE}}:{{ROOTPAGENAME}} }} {{#set: Language code={{SUBPAGENAME}} }} | ||
| + | }} | ||
| + | }} | ||
| + | |||
| + | <!-- Description --> | ||
| + | <tr style="vertical-align: top"> | ||
| + | <td id="fileinfotpl_desc" class="fileinfo-paramfield"><translate><!--T:1--> Description</translate> | ||
| + | <td class="description"> | ||
| + | {{#if: {{{description|{{{Description|}}} }}} | ||
| + | |{{#show: {{FULLPAGENAME}} |?Has file description |mainlabel=- |headers=hide }} {{#ifeq: {{SUBPAGENAME}} | ||
| + | |en | ||
| + | |{{{description|{{{Description|}}} }}} | ||
| + | |{{#set: Has file description={{{description|{{{Description|}}} }}}@{{annotatedlanguage: }} }} | ||
| + | }} | ||
| + | |<translate><!--T:11--> Description is missing.</translate> | ||
| + | }} | ||
| + | </td> | ||
| + | </tr> | ||
| + | |||
| + | <!-- Caption --> | ||
| + | <tr style="vertical-align: top"> | ||
| + | <td id="fileinfotpl_desc" class="fileinfo-paramfield"><translate><!--T:10--> Caption</translate> | ||
| + | <td class="description"> | ||
| + | {{#if: | ||
| + | {{{caption|{{{Caption|}}} }}} | ||
| + | |{{#show: {{FULLPAGENAME}} |?Has file caption |mainlabel=- |headers=hide }} {{#ifeq: {{SUBPAGENAME}} | ||
| + | |en | ||
| + | |{{{caption|{{{Caption|}}} }}} | ||
| + | |{{#set: Has file caption={{{caption|{{{Caption|}}} }}}@{{annotatedlanguage: }} }} | ||
| + | }} | ||
| + | |<translate><!--T:15--> Caption is missing.</translate> | ||
| + | }} | ||
| + | </td> | ||
| + | </tr> | ||
| + | |||
| + | <!-- Date --> | ||
| + | <tr style="vertical-align: top"> | ||
| + | <td id="fileinfotpl_date" class="fileinfo-paramfield"><translate><!--T:2--> Date</translate></td> | ||
| + | <td>{{#if: {{{date|{{{Date|}}} }}} | ||
| + | |{{#show: {{FULLPAGENAME}} |?Has file date#-F[Y-m-d] }} {{#set: Has file date={{{date|{{{Date|}}} }}} }} | ||
| + | |<translate><!--T:12--> Date is missing.</translate> | ||
| + | }} | ||
| + | </td> | ||
| + | </tr> | ||
| + | |||
| + | <!-- Other fields 1 --> | ||
| + | {{{other_fields_1|{{{Other_fields_1|{{{other fields 1|{{{Other fields 1|}}} }}} }}} }}} | ||
| + | |||
| + | <!-- Source --> | ||
| + | <tr style="vertical-align: top"> | ||
| + | <td class="fileinfo-paramfield"><translate><!--T:3--> Source</translate></td> | ||
| + | <td>{{#if: {{{source|{{{Source|}}} }}} | ||
| + | |{{{source|{{{Source|}}} }}} | ||
| + | |<translate><!--T:13--> Source is missing.</translate> | ||
| + | }} | ||
| + | </td> | ||
| + | </tr> | ||
| + | |||
| + | <!-- Author --> | ||
| + | <tr style="vertical-align: top"> | ||
| + | <td class="fileinfo-paramfield"><translate><!--T:4--> Author</translate></td> | ||
| + | <td>{{#if: {{{author|{{{Author|}}} }}} | ||
| + | |{{{author|{{{Author|}}} }}} | ||
| + | |<translate><!--T:14--> Author is missing.</translate> | ||
| + | }} | ||
| + | </td> | ||
| + | </tr> | ||
| + | |||
| + | <!-- License --> | ||
| + | {{#if: {{{license |{{{license|}}} }}}{{{licensecode|{{{Licensecode|}}} }}}{{{demo|<noinclude>1</noinclude>}}} | ||
| + | | | ||
| + | <tr style="vertical-align: top"> | ||
| + | <td class="fileinfo-paramfield"><translate><!--T:5--> License</translate></td> | ||
| + | <td>{{#switch: {{{licensecode|{{{Licensecode|}}} }}} | ||
| + | |CC-BY-NC-ND={{{licensecode|{{{Licensecode|}}} }}} {{#set: Has file license=CC-BY-NC-ND }} | ||
| + | |CC-BY-NC-SA={{{licensecode|{{{Licensecode|}}} }}} {{#set: Has file license=CC-BY-NC-SA }} | ||
| + | |CC-BY-NC={{{licensecode|{{{Licensecode|}}} }}} {{#set: Has file license=CC-BY-NC }} | ||
| + | |CC-BY-SA={{{licensecode|{{{Licensecode|}}} }}} {{#set: Has file license=CC-BY-SA }} | ||
| + | |CC-BY-ND={{{licensecode|{{{Licensecode|}}} }}} {{#set: Has file license=CC-BY-ND }} | ||
| + | |CC-BY={{{licensecode|{{{Licensecode|}}} }}} {{#set: Has file license=CC-BY }} | ||
| + | |CC0={{{licensecode|{{{Licensecode|}}} }}} {{#set: Has file license=CC0 }} | ||
| + | |C={{{licensecode|{{{Licensecode|}}} }}} {{#set: Has file license=C }} | ||
| + | |#default={{#if: {{{license|{{{License|}}} }}} | ||
| + | |{{{license|{{{License|}}} }}} | ||
| + | |<translate><!--T:16--> License is missing.</translate> | ||
| + | }} | ||
| + | }}{{#if: {{{license|{{{License|}}} }}} | ||
| + | | / {{{license|{{{License|}}} }}} | ||
| + | | / <translate><!--T:17--> License is missing.</translate>- | ||
| + | }} | ||
| + | </td> | ||
| + | </tr> | ||
| + | }} | ||
| + | |||
| + | <!-- Collection--> | ||
| + | <tr style="vertical-align: top"> | ||
| + | <td class="fileinfo-paramfield"><translate><!--T:6--> Collection</translate></td> | ||
| + | <td>{{#if: {{{collection|{{{Collection|}}} }}} | ||
| + | |{{#set: | ||
| + | |Has image collection={{{collection|{{{Collection|}}} }}} | ||
| + | |+sep=; | ||
| + | |template=SetToUseTemplateForAskQuery | ||
| + | }} | ||
| + | |<translate><!--T:18--> Not part of an image collection.</translate> | ||
| + | }} | ||
| + | </td> | ||
| + | </tr> | ||
| + | |||
| + | <!-- Keyword --> | ||
| + | <tr style="vertical-align: top"> | ||
| + | <td class="fileinfo-paramfield"><translate><!--T:7--> Keywords</translate></td> | ||
| + | <td>{{#if: {{{keyword|{{{Keyword|}}} }}} | ||
| + | |{{#set: | ||
| + | |Has file keyword={{lc: {{{keyword|{{{Keyword|}}} }}} }} | ||
| + | |+sep=; | ||
| + | |template=SetToUseTemplateForAskQuery | ||
| + | }} | ||
| + | |<translate><!--T:19--> Keywords are missing.</translate> | ||
| + | }}</td> | ||
| + | </tr> | ||
| + | |||
| + | <!-- Redirect --> | ||
| + | <tr style="vertical-align: top"> | ||
| + | <td class="fileinfo-paramfield"><translate><!--T:8--> Redirect</translate> {{#info:<translate><!--T:9--> This is the page where the image points to.</translate> }}</td> | ||
| + | <td>{{#if: {{{redirect|{{{Redirect|}}} }}} | ||
| + | |[[Has redirect::{{{redirect|{{{Redirect|}}} }}}]] | ||
| + | |<translate><!--T:20--> Not redirecting to a page.</translate> | ||
| + | }} | ||
| + | </td> | ||
| + | </tr> | ||
| + | |||
| + | <!-- Other fields --> | ||
| + | {{{other_fields|{{{Other_fields|{{{other fields|{{{Other fields|}}} }}} }}} }}} | ||
| + | |||
| + | </table> __NOEDITSECTION__ | ||
| + | [[Category:File{{#translation:}}]]</includeonly> | ||
Revision as of 19:31, 22 August 2020
This is the "Image" template used to store and display metadata for uploaded files.