Form:Trail: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
(add example simple table output)
m (add note for elev loss)
 
(14 intermediate revisions by the same user not shown)
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 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 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 both tab and comma delimited text files. You will do that, then open the created text file, then post it 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):
[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):
{| class="wikitable"
{| class="wikitable"
|+Example simple table usage
|+Example simple table usage
Line 159: Line 161:
Field 7,Field 8,Field 9
Field 7,Field 8,Field 9
</tab>
</tab>
|}
|}
|}


Line 165: Line 168:
{{{standard input|free text|rows=30}}}
{{{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 21: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.