Difference between revisions of "Form:Image"
From Fina Wiki
(Created page with "<noinclude> {{#forminput:form=File|autocomplete on namespace=File|namespace=File|placeholder=Filename.jpg|button text=edit or upload file}} </noinclude><includeonly>__NOTOC__...") |
|||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
− | {{#forminput:form= | + | {{#forminput:form=Image|autocomplete on namespace=File|namespace=File|placeholder=Imagename.jpg|button text=edit or upload image}} |
</noinclude><includeonly>__NOTOC__ | </noinclude><includeonly>__NOTOC__ | ||
{{#ifeq:{{#rpos:{{PAGENAME}}|.}}|-1| | {{#ifeq:{{#rpos:{{PAGENAME}}|.}}|-1| | ||
<div class="panel panel-danger"><div class="panel-heading"><div class="panel-title ">Attention!</div></div> | <div class="panel panel-danger"><div class="panel-heading"><div class="panel-title ">Attention!</div></div> | ||
<div class="panel-body mw-collapsible-content"> | <div class="panel-body mw-collapsible-content"> | ||
− | {{#info:Please cancel and add a file extension.|warning}}The | + | {{#info:Please cancel and add a file extension.|warning}}The image name should include a file extension (e.g. jpg, jpeg, png)! |
</div></div> | </div></div> | ||
| }} | | }} | ||
− | {{{for template| | + | {{{for template|Image|label=}}} |
− | <div class="panel panel-default {{#ifeq:{{#rpos:{{PAGENAME}}|.}}|-1|mw-collapsible mw-collapsed| }}"><div class="panel-heading"><h3 class="panel-title ">Further information about the | + | <div class="panel panel-default {{#ifeq:{{#rpos:{{PAGENAME}}|.}}|-1|mw-collapsible mw-collapsed| }}"><div class="panel-heading"><h3 class="panel-title ">Further information about the image</h3></div> |
<div class="panel-body {{#ifeq:{{#rpos:{{PAGENAME}}|.}}|-1|mw-collapsible-content| }}"> | <div class="panel-body {{#ifeq:{{#rpos:{{PAGENAME}}|.}}|-1|mw-collapsible-content| }}"> | ||
{| class="table table-hover table-condensed" | {| class="table table-hover table-condensed" | ||
|- | |- | ||
− | | | + | |[[Image::@@@]] {{#info:Name of the file or uploade of a new file.}} |
− | |{{PAGENAME}} {{#ifeq:{{#rpos:{{PAGENAME}}|.}}|-1|{{#info:Please cancel and add a file extension.|warning}}|{{#ifexist:File:{{PAGENAME}}|[[File:{{PAGENAME}}|100px|]]|{{{field| | + | |{{PAGENAME}} {{#ifeq:{{#rpos:{{PAGENAME}}|.}}|-1|{{#info:Please cancel and add a file extension.|warning}}|{{#ifexist:File:{{PAGENAME}}|[[File:{{PAGENAME}}|100px|]]|{{{field|Image|input type=text|uploadable|default filename=<page name>|class=form-control}}} }} }} |
|- | |- | ||
− | | | + | |[[Image source::@@@]] {{#info:Source if the image, e. g. collection}} |
− | |{{#ifeq:{{#rpos:{{PAGENAME}}|.}}|-1| |{{{field| | + | |{{#ifeq:{{#rpos:{{PAGENAME}}|.}}|-1| |{{{field|Image source|input type=tokens|delimiter=;|class=form-control}}} }} <br/> |
|- | |- | ||
− | | | + | |[[Image date::@@@]] from |
− | | {{ | + | |{{{field|Image date type|input type=dropdown|default=exact|values=exact,circa,before,after|class=form-control}}} {{{field|Image date|input type=date|class=form-control}}} |
|- | |- | ||
− | | | + | | [[Resources::@@@]] {{#info:Reference to resource, e. g. person, correspondence}} |
− | + | |{{#ifeq:{{#rpos:{{PAGENAME}}|.}}|-1| |{{{field|Resources|input type=tokens|delimiter=;|values from namespace=Main|class=form-control}}} }} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | {{#ifeq:{{#rpos:{{PAGENAME}}|.}}|-1| |{{{field| | ||
|}</div></div> | |}</div></div> | ||
{{{end template}}} | {{{end template}}} | ||
Line 51: | Line 30: | ||
{| class="table table-hover table-condensed" | {| class="table table-hover table-condensed" | ||
|- | |- | ||
− | |Description {{#info:Description of the file}} | + | |[[Description::@@@]] {{#info:Description of the file}} |
|{{#ifexist:File:{{PAGENAME}}|{{{section|Description|level=2}}}|is indicated when uploading...}}{{{section|License|level=2|hide if empty|hidden|rows=1}}} | |{{#ifexist:File:{{PAGENAME}}|{{{section|Description|level=2}}}|is indicated when uploading...}}{{{section|License|level=2|hide if empty|hidden|rows=1}}} | ||
|} | |} |
Latest revision as of 12:39, 6 October 2020