Form:Trail: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
m (Add trail comment field)
m (add note for elev loss)
 
(20 intermediate revisions by the same user not shown)
Line 14: Line 14:
| {{{field|Banner Image|input type=dropdown|values={{#ask: [[Category:Image||Images]][[Trail::{{PAGENAME}}]]|link=none|order=asc}} }}}
| {{{field|Banner Image|input type=dropdown|values={{#ask: [[Category:Image||Images]][[Trail::{{PAGENAME}}]]|link=none|order=asc}} }}}
|-
|-
! Trail Comment:  
! Trail Highlight:  
| {{{field|Trail Comment|input type=text|size=100|property=Trail Comment|placeholder=Brief description or highlight of the trail}}}
| {{{field|Trail Highlight|input type=text|size=100|property=Trail Highlight|placeholder=Brief description or highlight of the trail}}}
|-
|-
! Trail Number:  
! Trail Number:  
Line 24: Line 24:
|-
|-
! Park:  
! Park:  
| {{{field|Park|input type=combobox|values from category=Parks}}}Define Park or City
| {{{field|Park|input type=combobox|values from category=Parks}}}The park the trail is located
|-
|-
! City:  
! City:  
| {{{field|City|input type=tree|structure={{List of Regions}} }}}Define Park or City
| {{{field|City|input type=combobox|values from property=City|placeholder=Leave blank to inherit park's location}}}Leave blank to inherit park's location (sometimes large parks trail location could be closer to a different city than the main office, e.g. Great Smoky Mountains), otherwise assign nearest city to the trail.
|-
|-
! Land Owner:  
! Land Owner:  
Line 69: Line 69:
|-
|-
! Elevation Loss:  
! Elevation Loss:  
| {{{field|Elevation Loss|regexp=/^[1-9]\d*(\.\d+)?$/}}} (include units: '''ft''' (''default'') or yards)
| {{{field|Elevation Loss|regexp=/^[1-9]\d*(\.\d+)?$/}}} (should be zero or negative / include units: '''ft''' (''default'') or yards)
|-
|-
! Elevation Change Direction:  
! Elevation Change Direction:  
Line 104: Line 104:
{{{end template}}}
{{{end template}}}
= Page Text =
= Page Text =
{|
{| class="mw-collapsible mw-collapsed"
|+Help for editing page text
! scope="col" | Page Layout
! scope="col" | Templates and special editing tips
|-
|This is the desired page structure. Unused portions can be simply omitted/deleted. Desire to begin with a large map of the trail (<nowiki>{{Trail Map}}</nowiki>), then table of contents (<nowiki>__TOC__</nowiki>), then onto the page content.
|This is the desired page structure. Unused portions can be simply omitted/deleted. Desire to begin with a large map of the trail (<nowiki>{{Trail Map}}</nowiki>), then table of contents (<nowiki>__TOC__</nowiki>), then onto the page content.
<pre><nowiki>{{Trail Map}}</nowiki>
<pre><nowiki>{{Trail Map}}</nowiki>
Line 125: Line 127:
==Miscellaneous Information==
==Miscellaneous Information==


==Photos==
==Gallery==
<nowiki>{{Park trail gallery|Trail={{PAGENAME}}}}</nowiki></pre>
<nowiki>{{Park trail gallery|Trail={{PAGENAME}}}}</nowiki></pre>
|
|
Line 136: Line 138:
| style="width: 7em;" |[[Template:Trail Map|Trail Map]]
| style="width: 7em;" |[[Template:Trail Map|Trail Map]]
| style="width: 22em;" |<code><nowiki>{{Trail Map}}</nowiki></code> or  
| style="width: 22em;" |<code><nowiki>{{Trail Map}}</nowiki></code> or  
<code><nowiki>{{Trail Map|Other Trails=<optional>}}</nowiki></code>
<code><nowiki>{{Trail Map</nowiki><br/><nowiki> |Other Trails=<optional></nowiki><br/><nowiki> |Zoom Cancel=<optional, any entry to envoke>}}</nowiki></code>
|Returns a large topo map showing the trailhead and parking location. Replace <optional> with comma separated trails on this website. For the current trail page and any specified 'Other Trails' it will also show any map markers and KML file from the trail page. When displaying, if a KML file is found with the name of the trail page, it will provide a link under the map to download the kml file or to upload a replacement. If not found, it provides a link to upload a KML file.
|Returns a large topo map showing the trailhead and parking location. Replace <optional> with comma separated trails on this website. For the current trail page and any specified 'Other Trails' it will also show any map markers and KML file from the trail page. When displaying, if a KML file is found with the name of the trail page, it will provide a link under the map to download the kml file or to upload a replacement. If not found, it provides a link to upload a KML file. The Zoom Cancel command can be used if there are added map markers much beyond the uploaded KML, as default behavior is to zoom in on the KML.
|-
|-
|[[Template:Park trail gallery|Park trail gallery]]  
|[[Template:Park trail gallery|Park trail gallery]]  
Line 143: Line 145:
|Returns a photo gallery of the images associated with a specified trail. This same template can be used for Parks simply by replacing Trail with Park. Images need to be tagged to enable the template to find them and show them.
|Returns a photo gallery of the images associated with a specified trail. This same template can be used for Parks simply by replacing Trail with Park. Images need to be tagged to enable the template to find them and show them.
|}
|}
[https://www.mediawiki.org/wiki/Extension:SimpleTable Simple Tables] are available to easily add tables to your page. This allows both "logical" and compact adding simple tables to the page. You can also type out a table in a spreadsheet and save the content as a CSV file and paste it between the table commands. See the link for details but most usage is likely as follows:
[https://www.mediawiki.org/wiki/Extension:SimpleTable Simple Tables] are available to easily add tables to your page. This allows more "logical" and compact addition of simple tables to the page. You can also type out a table in a spreadsheet and save the content as a comma delimited or tab delimited file and paste it between the table commands. Tab delimited is useful if you want to use commas in the text. Excel's "Save as..." includes an option to save as either tab or comma delimited text files. After saving it, open the created text file, then paste the contents between the tab open and close commands. See the link for details but most usage is likely as follows (omit "sep=comma" if the data is tab delimited):
<pre><tab class=wikitable sep=comma head=top>
{| class="wikitable"
|+Example simple table usage
!Wiki table code
!How it would be shown
|-
|<pre><tab class=wikitable sep=comma head=top>
Head 1,Head 2,Head 3
Head 1,Head 2,Head 3
Field 4,Field 5,Field 6
Field 4,Field 5,Field 6
Field 7,Field 8,Field 9
Field 7,Field 8,Field 9
</tab></pre>
</tab></pre>
|<tab class=wikitable sep=comma head=top>
Head 1,Head 2,Head 3
Field 4,Field 5,Field 6
Field 7,Field 8,Field 9
</tab>
|}
|}
|}


'''Free text:'''
'''Free text:'''


{{{standard input|free text|rows=10}}}
{{{standard input|free text|rows=30}}}
= Map Markers =
= Map Markers =
Markers to place on the park page (and eventually to show on trail pages
Markers to place on the park page (and eventually to show on trail pages)
{{{for template|Map Marker|label=Map Markers|multiple|display=spreadsheet|height=500}}}
{{{for template|Map Marker|label=Map Markers|multiple|display=spreadsheet|height=500}}}
'''[[ClubWiki:Using_GMaps#Icons_reference|Icon]]:''' {{{field|Icon Type|type=combobox|values=Parking,Photo spot,Waterfall,Other photo spot,Overlook,Shelter,Point of interest,Campground,Cave,Water crossing,Bench,Trail bridge,Comm tower,Cemetery,Playground,Summit,Toilet,Tunnel,Picnic spot,Trail sign,Road crossing,Old structure,Horseback,Alien landing,Rest,Skiing,Tower,Power line,Blowdown}}}
'''[[ClubWiki:Using_GMaps#Icons_reference|Icon]]:''' {{{field|Icon Type|type=combobox|values=Parking,Photo spot,Waterfall,Other photo spot,Overlook,Shelter,Point of interest,Campground,Cave,Water crossing,Bench,Trail bridge,Comm tower,Cemetery,Playground,Summit,Toilet,Tunnel,Picnic spot,Trail sign,Road crossing,Old structure,Horseback,Alien landing,Rest,Skiing,Tower,Power line,Blowdown,Station}}}
'''Title:''' {{{field|Marker Title|}}}
'''Title:''' {{{field|Marker Title|}}}
'''Description:''' {{{field|Marker Description|}}}
'''Description:''' {{{field|Marker Description|}}}
'''Location:''' {{{field|Marker Location|}}}
'''Location:''' {{{field|Marker Location|}}}
{{{end template}}}
{{{end template}}}
<headertabs />
<headertabs />



Latest revision as of 22:29, 11 September 2020

This is the "Trail" form. To create a page with this form, enter the page name below; if a page with that name already exists, you will be sent to a form to edit that page.