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=File|autocomplete on namespace=File|namespace=File|placeholder=Filename.jpg|button text=edit or upload file}}  
+
{{#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 filename should include a file extension (e.g. jpg, jpeg, png)!
+
{{#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|File|label=}}}
+
{{{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 file </h3></div>
+
<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"
 
|-
 
|-
|Filename&nbsp;{{#info:Name of the file or uploade of a new file.}}  
+
|[[Image::@@@]]&nbsp;{{#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|Filename|input type=text|uploadable|default filename=<page name>|class=form-control}}} }} }}
+
|{{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}}} }} }}
 
|-
 
|-
|Source&nbsp;{{#info:Source if the file, e. g. collection}}
+
|[[Image source::@@@]]&nbsp;{{#info:Source if the image, e. g. collection}}
|{{#ifeq:{{#rpos:{{PAGENAME}}|.}}|-1| |{{{field|Filesource|input type=tokens|delimiter=;|values={{#ask:[[Filesource::{{FULLPAGENAME}}]]|mainlabel=-|?Filesource=|format=list|default=}}|class=form-control}}} }} <br/>
+
|{{#ifeq:{{#rpos:{{PAGENAME}}|.}}|-1| |{{{field|Image source|input type=tokens|delimiter=;|class=form-control}}} }} <br/>
 
|-
 
|-
| Institution&nbsp;{{#info:Institution}}
+
|[[Image date::@@@]] from
| {{#ifeq:{{#rpos:{{PAGENAME}}|.}}|-1| |{{{field|Institution|input type=tokens|delimiter=;|values from category=Institutions|class=form-control}}} }}
+
|{{{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}}}  
 
|-
 
|-
|Author&nbsp;{{#info:Author of the file, e. g. painter or photographer.}}
+
| [[Resources::@@@]]&nbsp;{{#info:Reference to resource, e. g. person, correspondence}}
|{{#ifeq:{{#rpos:{{PAGENAME}}|.}}|-1| |{{{field|Author|input type=tokens|delimiter=;|values from property=Autor|class=form-control}}} }}
+
|{{#ifeq:{{#rpos:{{PAGENAME}}|.}}|-1| |{{{field|Resources|input type=tokens|delimiter=;|values from namespace=Main|class=form-control}}} }}
|-
 
|Resource&nbsp;{{#info:Numismatic resource, e. g. correspondence}}
 
|{{#ifeq:{{#rpos:{{PAGENAME}}|.}}|-1| |{{{field|Resource|input type=tokens|delimiter=;|values from concept=Resources|class=form-control}}} }}
 
|-
 
|Rights&nbsp;{{#info: file rights.
 
* '''CCO''': own creation no copyrigh. [https://creativecommons.org/publicdomain/zero/1.0/deed.de Creative-Commons-Zero]
 
* '''CC-BY 4.0''':own creation, [https://creativecommons.org/licenses/by/4.0/deed.de Creative-Commons-Namensnennung].
 
* '''Public domain''': Public Domain: No known copyright. [https://creativecommons.org/choose/mark/ Creativ-Commons-Public-Domain-Mark]}}
 
| {{#ifeq:{{#rpos:{{PAGENAME}}|.}}|-1| |{{{field|Rechte|input type=dropdown|values=CC0,CC BY 4.0,CC BY-NC-ND 4.0,gemeinfrei|class=form-control}}}
 
|-
 
| Link&nbsp;{{#info:Link, e. g. to a higher resolution image}}
 
| {{#ifeq:{{#rpos:{{PAGENAME}}|.}}|-1| |{{{field|Link|input type=text|class=form-control}}} }}
 
|-
 
|[[Publication date::@@@]] from
 
|{{{field|Publication date type|input type=dropdown|default=exact|values=exact,circa,before,after|class=form-control}}} {{{field|Publication date|input type=date|class=form-control}}}
 
|-
 
| [[Date::@@@]]&nbsp;{{#info:Date of creation}}
 
|{{{field|Date type|input type=dropdown|default=exact|values=exact,circa,before,after|class=form-control}}} {{{field|Date|input type=date|class=form-control}}}
 
|-
 
| Depicted Persons&nbsp;{{#info:Persons who can be seen in the image.}}  
 
| {{#ifeq:{{#rpos:{{PAGENAME}}|.}}|-1| |{{{field|Persons|input type=tokens|delimiter=;|values from category=Authors|class=form-control}}} }}
 
 
|}</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&nbsp;{{#info:Description of the file}}
+
|[[Description::@@@]]&nbsp;{{#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