Template:Trip Report Table: Difference between revisions
Jump to navigation
Jump to search
m (fix timeline query) |
(remove date restrictions from timeline) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
* dateEnd - if included, will filter to be before or on this date - provide in (dd month yyyy) format | * dateEnd - if included, will filter to be before or on this date - provide in (dd month yyyy) format | ||
* ShowClubOnly - if included, it will only show club led hikes | * ShowClubOnly - if included, it will only show club led hikes | ||
* SortOrder - sorts based on date in direction defined, choices are 'asc' or 'desc' anything else is ignored | |||
For your date entries, you may use the time parser function to get relative dates. e.g. <code><nowiki>{{#time: 1 F Y | -2 month}}</nowiki></code> | For your date entries, you may use the time parser function to get relative dates. e.g. <code><nowiki>{{#time: 1 F Y | -2 month}}</nowiki></code> | ||
Line 19: | Line 20: | ||
|dateEnd = | |dateEnd = | ||
|ShowClubOnly = | |ShowClubOnly = | ||
|SortOrder = | |||
}} | }} | ||
</pre> | </pre> | ||
Line 42: | Line 44: | ||
|link=none | |link=none | ||
|sort=Trip Date | |sort=Trip Date | ||
|order=asc | |order={{#ifeq: {{{SortOrder|}}}|desc|desc|asc}} | ||
|mainlabel=Report Page | |mainlabel=Report Page | ||
|template=Trip Report Table Format | |template=Trip Report Table Format | ||
Line 54: | Line 56: | ||
{{#if: {{{ShowNewsOnly|}}}|[[Share in Newsletter::true]]}} | {{#if: {{{ShowNewsOnly|}}}|[[Share in Newsletter::true]]}} | ||
{{#if: {{{trail|}}}|[[Trail::{{#arraymap:{{{trail|}}}|,|@@@@|@@@@|{{!}}{{!}}}}]]}} | {{#if: {{{trail|}}}|[[Trail::{{#arraymap:{{{trail|}}}|,|@@@@|@@@@|{{!}}{{!}}}}]]}} | ||
{{#if: {{{ShowClubOnly|}}}|[[TEHCC Organized Event::true]]}} | {{#if: {{{ShowClubOnly|}}}|[[TEHCC Organized Event::true]]}} | ||
|?Trip Date | |?Trip Date | ||
|format= | |format=moderntimeline | ||
| | |start at end=yes | ||
|limit=500 | |||
|limit= | |||
}}</includeonly> | }}</includeonly> |
Latest revision as of 12:43, 29 October 2020
This creates a table of hikes. It has several options. Each one works exclusive from the rest. Any options that can be passed multiple, use commas as the separator.
- userreport - omitted will show all hike loggers, otherwise shown for listed user(s) requested - must be in User:username format (the user page name)
- ShowNewsOnly - if included, it will only show those flagged for newsletter
- park - not used yet, need to think this through
- trail - if included, will filter for requested trail(s)
- dateStart - if included, will filter to be after or on this date - provide in (dd month yyyy) format
- dateEnd - if included, will filter to be before or on this date - provide in (dd month yyyy) format
- ShowClubOnly - if included, it will only show club led hikes
- SortOrder - sorts based on date in direction defined, choices are 'asc' or 'desc' anything else is ignored
For your date entries, you may use the time parser function to get relative dates. e.g. {{#time: 1 F Y | -2 month}}
It expects the following usage format.
{{Trip Report Table |userreport = |ShowNewsOnly = |park = |trail = |dateStart = |dateEnd = |ShowClubOnly = |SortOrder = }}