Form:UploadFile — различия между версиями

Материал из СисадминВики песочница
Перейти к: навигация, поиск
(Новая страница: «<noinclude> This tamplate is used by form UploadFile to upload file and add some information about it. </noinclude><includeonly> {| ! Prope…»)
 
 
Строка 1: Строка 1:
<noinclude> This tamplate is used by form [[Form:UploadFile|UploadFile]] to upload file and add some information about it.
+
Simple test form to upload file and add some info about it. The form uses template [[Template:UploadFile|UploadFile]]
</noinclude><includeonly>
+
 
{|  
+
<includeonly>{{{info|page name=File:<UploadFile[file name]>}}}
! [[Property:Has file page|File]]
+
{{{for template|UploadFile}}}
| [[Has file page::File:{{{file name|}}}]]
+
{| class="formtable"
 +
! File name:
 +
| {{{field|file name|mandatory|uploadable}}} (Required)
 
|-
 
|-
! [[Property:Has title|Title]]
+
! Title:  
| [[Has title::{{{title|}}}]]
+
| {{{field | title | input type=text | size=70}}}
 
|-
 
|-
! [[Property:Has tag|Tags]]
+
! Tags:  
| {{#arraymap:{{{tags|}}}|;|@@| [[Has tag::@@|@@]] }}
+
| {{{field | tags | list | delimiter=; | placeholder= Some tags with delimiter (;) | input type=text | size=70}}}
 
|}
 
|}
 +
{{{end template}}}
 +
----
 +
{{{standard input|minor edit}}} {{{standard input|watch}}}
 +
 +
{{{standard input|save}}} {{{standard input|cancel}}}
 
</includeonly>
 
</includeonly>

Текущая версия на 11:50, 27 сентября 2018

Simple test form to upload file and add some info about it. The form uses template UploadFile