Difference between revisions of "Template:Related images"

From Multilingual Bookbinding Dictionary
Jump to navigation Jump to search
Line 1: Line 1:
<noinclude>This is the "Image" template used to store and display metadata for uploaded files.
+
<noinclude>
 +
This is the 'Images test' form.
 +
To add a page with this form, enter the page name below;
 +
if a page with that name already exists, you will be sent to a form to edit that page.
  
[[Category:Info templates]]
+
{{#forminput:form=Image}}
</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 -->
+
</noinclude><includeonly>
<tr style="vertical-align: top">
+
You can try out file-uploading here; the "Main image" field holds only one file, while the "Other images" field can hold a list of file names, separated by commas. Please do not save this page.
<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: }} }}
 
  }}
 
  
}}
+
{{{for template|Image}}}
</td>
+
{| class="formtable"
</tr>
+
! Main image:
</table> __NOEDITSECTION__
+
| {{{field|Ticket|uploadable|property=Has image|values from namespace=File}}}
 +
|-
 +
! Other images:
 +
| {{{field|Other images|input type=text with autocomplete|uploadable|remote autocompletion}}}
 +
|}
 +
{{{end template}}}
 +
 
 +
'''Free text:'''
 +
 
 +
{{{standard input|free text}}}
 +
 
 +
 
 +
{{{standard input|summary}}}
 +
 
 +
{{{standard input|minor edit}}} {{{standard input|watch}}}
 +
 
 +
{{{standard input|save}}} {{{standard input|preview}}} {{{standard input|changes}}} {{{standard input|cancel}}}
 
</includeonly>
 
</includeonly>

Revision as of 20:33, 22 August 2020

This is the 'Images test' form. To add a page with this form, enter the page name below; if a page with that name already exists, you will be sent to a form to edit that page.