Difference between revisions of "Template:Expedition"

From Geohashing
imported>Eupeodes
(Undo revision 480980 by Sourcerer (talk) (I think the categories need some clarification with them))
m
(6 intermediate revisions by 5 users not shown)
Line 2: Line 2:
 
'''Use '''
 
'''Use '''
 
<nowiki>{{subst:Expedition}}</nowiki>  
 
<nowiki>{{subst:Expedition}}</nowiki>  
'''(or preferably the more verbose version with parameters given below) to copy an expedition report template to your newly created expedition page.'''
+
'''to copy an expedition report template to your newly created expedition page.'''
  
Please provide the following parameters. If you don't, the required parameters will be substituted with placeholders that you may fill in later.
+
There is no need to specify the latitude/longitude/date anymore, they will be automatically deduced from the name of the page.
 
+
You can add the image option to specify your best picture, which will be shown at the top of the report (omit the "Image:" or "File:" prefix)
Basic usage:
 
 
 
<pre>{{subst:Expedition
 
|lat = latitude of graticule  (e.g.: 60 - just the integer number, not the full coordinates of the geohash!)
 
|lon = longitude of graticule (e.g.: 10)
 
|date = date of expedition, in YYYY-MM-DD format
 
|image = your best picture, which will be shown at the top of the report (omit the "Image:" or "File:" prefix)
 
}}</pre>
 
  
 
'''[[:Template:Expedition/Example|Click here to see an example of what the template looks like as you start to fill it in.]]'''
 
'''[[:Template:Expedition/Example|Click here to see an example of what the template looks like as you start to fill it in.]]'''
 
Minimal, copyable version:
 
<pre>{{subst:Expedition |lat = |lon = |date = }}</pre>
 
  
 
Complete list of available options:
 
Complete list of available options:
 
<pre>
 
<pre>
 
{{subst:Expedition
 
{{subst:Expedition
|lat = latitude of graticule
+
|lat = latitude of graticule (optional, will be deduced automatically from the name of the page if not specified)
|lon = longitude of graticule
+
|lon = longitude of graticule (optional, will be deduced automatically from the name of the page if not specified)
|date = date of expedition (YYYY-MM-DD format)
+
|date = date of expedition in format YYYY-MM-DD (optional, will be deduced automatically from the name of the page if not specified)
 
|image = image to show at the top of the page (optional)
 
|image = image to show at the top of the page (optional)
 
|TOC = t/f (optional. Set t to show TOC, f to not show it. Defaults to f)
 
|TOC = t/f (optional. Set t to show TOC, f to not show it. Defaults to f)
Line 42: Line 31:
  
 
|show_tracklog = t/f (optional. Set t to include Tracklog section in page, f to exclude. Defaults to t)
 
|show_tracklog = t/f (optional. Set t to include Tracklog section in page, f to exclude. Defaults to t)
|tracklog = link to tracklog (optional)
+
|tracklog = appropriate use of Template:Tracklog or link to tracklog (optional)
  
 
|show_photos = t/f (optional. Set t to include Photos section in page, f to exclude. Defaults to t)
 
|show_photos = t/f (optional. Set t to include Photos section in page, f to exclude. Defaults to t)
Line 51: Line 40:
 
</pre>
 
</pre>
  
</noinclude>
+
</noinclude><includeonly><!-- If you did not specify these parameters in the template, please substitute appropriate values for IMAGE, LAT, LON, and DATE (YYYY-MM-DD format)  
<includeonly><!-- If you did not specify these parameters in the template, please substitute appropriate values for IMAGE, LAT, LON, and DATE (YYYY-MM-DD format)  
 
  
 
[[Image:{{{image|IMAGE}}}|thumb|left]]
 
[[Image:{{{image|IMAGE}}}|thumb|left]]
Line 60: Line 48:
  
 
And DON'T FORGET to add your expedition and the best photo you took to the gallery on the Main Page! We'd love to read your report, but that means we first have to discover it! :)
 
And DON'T FORGET to add your expedition and the best photo you took to the gallery on the Main Page! We'd love to read your report, but that means we first have to discover it! :)
-->
+
-->{{meetup graticule  
{{meetup graticule  
+
| lat={{{lat|{{#explode:{{SUBPAGENAME}}| |1}}}}}
| lat={{{lat|LAT}}}
+
| lon={{{lon|{{#explode:{{SUBPAGENAME}}| |2}}}}}
| lon={{{lon|LON}}}
+
| date={{{date|{{#explode:{{SUBPAGENAME}}| |0}}}}}
| date={{{date|DATE}}}
+
}}<!-- edit as necessary -->
}}
 
 
 
<!-- edit as necessary -->
 
 
{{subst:#ifeq: {{{TOC|f}}}|t|  | __NOTOC__}}
 
{{subst:#ifeq: {{{TOC|f}}}|t|  | __NOTOC__}}
 
 
{{subst:#ifeq: {{{show_location|t}}}|f| |  
 
{{subst:#ifeq: {{{show_location|t}}}|f| |  
 
== Location ==
 
== Location ==
Line 93: Line 77:
 
{{subst:#ifeq: {{{show_tracklog|t}}}|f| |  
 
{{subst:#ifeq: {{{show_tracklog|t}}}|f| |  
 
== Tracklog ==
 
== Tracklog ==
{{{tracklog|<!-- if your GPS device keeps a log, you may post a link here -->}}}
+
{{{tracklog|<!-- if your GPS device keeps a log, you may use Template:Tracklog, post a link here, or both -->}}}
 
}}
 
}}
  
Line 99: Line 83:
 
== Photos ==  
 
== Photos ==  
 
<!-- Insert pictures between the gallery tags using the following format:  
 
<!-- Insert pictures between the gallery tags using the following format:  
Image:2012-##-## ## ## Alpha.jpg | Witty Comment
+
Image:2020-##-## ## ## Alpha.jpg | Witty Comment
 
-->
 
-->
 
<gallery perrow="5">
 
<gallery perrow="5">

Revision as of 15:28, 19 June 2021

Use {{subst:Expedition}} to copy an expedition report template to your newly created expedition page.

There is no need to specify the latitude/longitude/date anymore, they will be automatically deduced from the name of the page. You can add the image option to specify your best picture, which will be shown at the top of the report (omit the "Image:" or "File:" prefix)

Click here to see an example of what the template looks like as you start to fill it in.

Complete list of available options:

{{subst:Expedition
|lat = latitude of graticule (optional, will be deduced automatically from the name of the page if not specified)
|lon = longitude of graticule (optional, will be deduced automatically from the name of the page if not specified)
|date = date of expedition in format YYYY-MM-DD (optional, will be deduced automatically from the name of the page if not specified)
|image = image to show at the top of the page (optional)
|TOC = t/f (optional. Set t to show TOC, f to not show it. Defaults to f)

|show_location = t/f (optional. Set t to include Location section in page, f to exclude. Defauts to t)
|location = description of location (optional)

|show_participants = t/f (optional. Set t to include Participants section in page, f to exclude. Defaults to t)
|participants = list of participants (optional)

|show_plans = t/f (optional. Set t to include Plans section in page, f to exclude. Defaults to t)
|plan = plan for this expedition (optional)

|show_expedition = t/f (optional. Set t to include Expedition section in page, f to exclude. Defaults to t)
|expedition = description of your expedition (optional)

|show_tracklog = t/f (optional. Set t to include Tracklog section in page, f to exclude. Defaults to t)
|tracklog = appropriate use of Template:Tracklog or link to tracklog (optional)

|show_photos = t/f (optional. Set t to include Photos section in page, f to exclude. Defaults to t)

|show_achievements = t/f (optional. Set t to include Achievements section in page, f to exclude. Defaults to t)
|achievements = achievements earned on this expedition (optional)
}}