Difference between revisions of "Template:Related images"

From Multilingual Bookbinding Dictionary
Jump to navigation Jump to search
 
(87 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>This is the "Image" template used to store and display metadata for uploaded files.
 
  
[[Category:Info templates]]
+
<includeonly>==Gallery==
</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 }}
 
}}
 
  
<!-- Caption -->
+
{{#ask: [[Links to::~*{{PAGENAME}}*]] OR [[Links to::{{PAGENAME}}]] OR [[Links to::{{PAGENAME}}.Narrower]] OR [[Links to::{{PAGENAME}}.Skos:related]] or [[Links to::{{PAGENAME}}.skos:member]]
<tr style="vertical-align: top">
+
|?Links to
<td id="fileinfotpl_desc" class="fileinfo-paramfield">
+
|format=gallery
<td class="description">
+
|limit=100
{{#if:
+
|offset=0
{{{caption|{{{Caption|}}} }}}
+
|link=all
|{{#show: {{FULLPAGENAME}} |?Has file caption |mainlabel=- |headers=hide }} {{#ifeq: {{SUBPAGENAME}}
+
|sort=
  |en
+
|order=asc
  |{{{caption|{{{Caption|}}} }}}
+
|headers=hide
  |{{#set: Has file caption={{{caption|{{{Caption|}}} }}}@{{annotatedlanguage: }} }}
+
|searchlabel=... further results
  }}
+
|captionproperty=description
 
+
|autocaptions=no
}}
+
|heights=200
</td>
+
|widths=300
</tr>
+
}}</includeonly>
</table> __NOEDITSECTION__
 
[[Category:File{{#translation:}}]]</includeonly>
 

Latest revision as of 18:59, 21 July 2022