Jump to content

Form:Place: Difference between revisions

From Costa Sano MediaWiki
No edit summary
No edit summary
 
(15 intermediate revisions by the same user not shown)
Line 10: Line 10:
|no footer
|no footer
}}}
}}}
''Fields marked with (*) are required.''


{{{for template|Place}}}
{{{for template|Place}}}
{| class="formtable"
<noinclude>
Form for creating and editing Place pages.
</noinclude>
{{{info
|no summary
|no preview
|no minor edit
|no watch
|no footer
}}}
{{{for template|Place
|page name=Place:{{{Code}}}
}}}


{| class="formtable"
{| class="formtable"


! Code
! Code
| {{{field|Code
| {{PAGENAME}}
    |mandatory
    |input type=text
    |size=6
    |maxlength=6
    |pattern=^[A-Z0-9]{6}$
    |placeholder=ABC123
}}}
|-
|-


! Name
! Name (*)
| {{{field|Label|mandatory}}}
| {{{field|Label}}}
|-
|-


! Parent place
! Parent place
| {{{field|Parent
|{{{field|Parent
    |input type=combobox
|input type=combobox
    |cargo table=Places
|values from namespace=Place
    |cargo field=Code
|placeholder=Top level (no parent)
    |display fields=Code,Label
    |display format=$1 – $2
    |where=Code != '{{PAGENAME}}'
    |placeholder=Top level (no parent)
}}}
}}}
|-
|-
Line 61: Line 34:
! Type
! Type
| {{{field|Type
| {{{field|Type
    |input type=dropdown
|input type=dropdown
    |values=Continent,Country,Region,Province,City,Neighborhood,Street
|values=Continent,Country,Region,Province,City,Neighborhood,Street
}}}
}}}
|-
|-
Line 79: Line 52:


! Notes
! Notes
| {{{field|Notes
| {{{field|Notes|input type=textarea}}}
    |input type=textarea
}}}
 
|}
 
{{{standard input|save}}}
 
{{{end template}}}
 
! Title
| {{{field|title|mandatory}}}
|-
 
! Code
| {{PAGENAME}}
|-
 
! Parent Place
| {{{field|parent
  |label=Parent place
  |input type=combobox
  |values from namespace=Place
  |existing values only
  |placeholder=Top level (no parent)
}}}
|-
 
! Type
| {{{field|type
          |input type=dropdown
          |values=Continent,Country,Region,Province,City,Neighborhood,Street
}}}
|-
 
! Address
| {{{field|address}}}
 
|-
! Latitude
| {{{field|latitude}}}
 
|-
! Longitude
| {{{field|longitude}}}
 
|-
 
! Notes
| {{{field|notes|input type=textarea}}}


|}
|}

Latest revision as of 16:58, 16 February 2026

Form for creating and editing Place pages.


no summary

Fields marked with (*) are required.

Place

Code Place
Name (*) Label
Parent place Parent
Type Type
Address Address
Latitude Latitude
Longitude Longitude
Notes Notes

save

{{{end template}}}