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 'Images test' form.
+
This is the 'Images test' template.
To add a page with this form, enter the page name below;
+
It should be called in the following format:
if a page with that name already exists, you will be sent to a form to edit that page.
+
<pre>
 
+
{{Images test
{{#forminput:form=Image}}
+
|Main image=
 
+
|Other images=
 +
}}
 +
</pre>
 +
Edit the page to see the template text.
 
</noinclude><includeonly>
 
</noinclude><includeonly>
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.
+
{| border="0" cellpadding="4" cellspacing="4"
 
+
! Binder's mark
{{{for template|Image}}}
+
| [[Has image::Image:{{{Main image|}}}| ]] [[File:{{{Main image|}}}]]
{| class="formtable"
 
! Main image:
 
| {{{field|Ticket|uploadable|property=Has image|values from namespace=File}}}
 
 
|-
 
|-
! Other images:
+
! Other images
| {{{field|Other images|input type=text with autocomplete|uploadable|remote autocompletion}}}
+
| {{#arraymap:{{{Other images|}}}|,|x|[[Has image 2::Image:x| ]] [[Image:x]]}}
 
|}
 
|}
{{{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:45, 22 August 2020

This is the 'Images test' template. It should be called in the following format:

{{Images test
|Main image=
|Other images=
}}

Edit the page to see the template text.