Jump to content

Form:Place: Difference between revisions

From Costa Sano MediaWiki
No edit summary
No edit summary
Line 9: Line 9:
|no watch
|no watch
|no footer
|no footer
}}}
{{{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
{{{for template|Place
|page name=Place:{{{Code}}}
|page name=Place:{{{field|Code}}}
}}}
}}}


Line 34: Line 19:
! Code
! Code
| {{{field|Code
| {{{field|Code
    |mandatory
|mandatory
    |input type=text
|input type=text
    |size=6
|size=6
    |maxlength=6
|maxlength=6
    |pattern=^[A-Z0-9]{6}$
|pattern=^[A-Z0-9]{6}$
    |placeholder=ABC123
|placeholder=ABC123
}}}
}}}
|-
|-
Line 49: Line 34:
! Parent place
! Parent place
| {{{field|Parent
| {{{field|Parent
    |input type=combobox
|input type=combobox
    |cargo table=Places
|cargo table=Places
    |cargo field=Code
|cargo field=Code
    |display fields=Code,Label
|display fields=Code,Label
    |display format=$1 – $2
|display format=$1 – $2
    |where=Code != '{{PAGENAME}}'
|where=Code != '{{PAGENAME}}'
    |placeholder=Top level (no parent)
|placeholder=Top level (no parent)
}}}
}}}
|-
|-
Line 61: Line 46:
! 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 64:


! 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}}}


|}
|}

Revision as of 13:54, 16 February 2026

Form for creating and editing Place pages.


no summary


Place


Code Code
Name Label
Parent place Parent
Type Type
Address Address
Latitude Latitude
Longitude Longitude
Notes Notes

save

{{{end template}}}