Difference between revisions of "Template:Related images"

From Multilingual Bookbinding Dictionary
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 'Images' template.
+
 
It should be called in the following format:
+
[[Category:Info templates]]
<pre>
+
</noinclude><includeonly>{{#ifeq: {{SUBPAGENAME}}
{{Image
+
|{{PAGENAME}}
|Image=File
+
|
|Imagesize=
+
|[[File:{{ROOTPAGENAME}}|1060px|link=File:{{ROOTPAGENAME}}]]
 
}}
 
}}
</pre>
+
=={{int:filedesc}}==
Edit the page to see the template text.
+
<table style="width: 100%;" cellpadding="4">
</noinclude><includeonly>
+
<!-- Existence -->
{| border="0" cellpadding="4" cellspacing="4"
+
{{#if: {{#show: {{FULLPAGENAME}} |?Media type }}
! Image
+
|{{#set: Is existing file=true }}
|-
+
|{{#set: Is existing file=false }}
! style="text-align: center;" colspan="2" |[[Image:{{{Image|Wiki.png}}}|{{{imagesize|135}}}px]]
+
}}
|}
+
 
</includeonly>
+
<!-- Caption -->
 +
<tr style="vertical-align: top">
 +
<td id="fileinfotpl_desc" class="fileinfo-paramfield">
 +
<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: }} }}
 +
  }}
 +
 
 +
}}
 +
</td>
 +
</tr>
 +
</table> __NOEDITSECTION__
 +
[[Category:File{{#translation:}}]]</includeonly>

Revision as of 19:46, 22 August 2020

This is the "Image" template used to store and display metadata for uploaded files.