Lists: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
m (testing list name transfer)
(Undo revision 11093 by Tim (talk))
Tag: Undo
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#arraydefine:listuser|{{#urlget:user}}}}{{#arraydefine:listname|{{#urlget:list}}}}
{{#arraydefine:listuser|{{#urlget:user}}}}{{#arraydefine:listname|{{#urldecode:{{#urlget:list}}}}}}
{{#if:{{#arrayprint:listuser}}
{{#if:{{#arrayprint:listuser}}
|
|
Work in progress.
Work in progress.
{{urlencode:{{#arrayprint:listname}}}}
{{#ask: [[Category:Lists]][[Listed By::User:{{#arrayprint:listuser}}]]
{{#ask: [[Category:Lists]][[Listed By::User:{{#arrayprint:listuser}}]]
  |?Part of List
  |?Part of List
Line 13: Line 10:
  |headers=hide
  |headers=hide
  |mainlabel=-
  |mainlabel=-
}}{{#arrayslice:uniquenames|listnames}}{{#arrayunique:uniquenames}}
}}{{#arrayslice:uniquenames|listnames}}<!-- arrayslice used to simply duplicate array -->{{#arrayunique:uniquenames}}


List names in use by {{#arrayprint:listuser}}:  
List names in use by {{#arrayprint:listuser}}:  
{{#arrayprint:uniquenames||@@@@|<nowiki />
{{#arrayprint:uniquenames||@@@@|<nowiki />
*[{{fullurl:Lists}}?user={{#arrayprint:listuser}}&list={{urlencode:@@@@}} @@@@ ({{#arraysearcharray:size|listnames|@@@@}}{{#arraysize:size}} locations)]}}
*[{{fullurl:Lists}}?user={{#arrayprint:listuser}}&list={{urlencode:@@@@}} @@@@ ({{#arraysearcharray:size|listnames|@@@@}}{{#arraysize:size}} locations)]}}
= Map =
{{#compound_query: [[Category:Lists]]
[[Listed By::User:{{#arrayprint:listuser}}]]{{#if:{{#arrayprint:listname}}|[[Part of List::{{#arrayprint:listname}}]]}}
[[Listed Location::<q>[[Category:Parks]]</q>]] ;?Listed Location.Main Location ;icon=MarkerS.png ;limit = 5000
|[[Category:Lists]]
[[Listed By::User:{{#arrayprint:listuser}}]]{{#if:{{#arrayprint:listname}}|[[Part of List::{{#arrayprint:listname}}]]}}
[[Listed Location::<q>[[Category:Trails]]</q>]] ;?Listed Location.Parking location ;icon=MarkerT.png ;limit = 5000
| format = googlemaps
| searchmarkers = all
| limit = 1000
| type=terrain
| scale=yes
| width=auto
| height=600
| markercluster=no
}}


= Table =
= Table =
{{#if:{{#arrayprint:listname}}|Showing only items related to List "{{#arrayprint:listname}}"|Showing all listed items for user {{#arrayprint:listuser}}}}
<!-- Open "if there are trails" -->{{#ifexpr:{{#ask:[[Category:Lists]][[Listed By::User:{{#arrayprint:listuser}}]]{{#if:{{#arrayprint:listname}}|[[Part of List::{{#arrayprint:listname}}]]}}[[Listed Location::<q>[[Category:Trails]]</q>]]|format=count}}>0|
== Trails ==
{{List trail template|#userparam=intro}}
{{List trail template|#userparam=intro}}
{{#ask: [[Category:Lists]]
{{#ask: [[Category:Lists]]
Line 42: Line 60:
}}
}}
{{List trail template|#userparam=outro}}
{{List trail template|#userparam=outro}}
}}<!-- Close "if there are trails" -->
<!-- Open "if there are parks" -->{{#ifexpr:{{#ask:[[Category:Lists]][[Listed By::User:{{#arrayprint:listuser}}]]{{#if:{{#arrayprint:listname}}|[[Part of List::{{#arrayprint:listname}}]]}}[[Listed Location::<q>[[Category:Parks]]</q>]]|format=count}}>0|
== Parks ==
{{List park template|#userparam=intro}}
{{#ask: [[Category:Lists]]
[[Listed By::User:{{#arrayprint:listuser}}]]{{#if:{{#arrayprint:listname}}|[[Part of List::{{#arrayprint:listname}}]]}}
[[Listed Location::<q>[[Category:Parks]]</q>]]
|?Listed Location=park
|?Listed Location.Main Location=parking
|?Listed Location.Park Trail Count=trail count
|?Listed Location.Park Trail Miles=trail miles
|?Listed Location.Allowed activities=activities
|?Listed Location.Park Amenities=amenities
|?Listed Location.Features=features
|?Listed Location.Lodging Types=lodging
|?Listed Location.Camping Amenities=camping
|?List Comment=list comment
|mainlabel=listpage
|format=plainlist
|headers=hide
|link=none
|template=List park template
|userparam=row
|named args=yes
}}
{{List park template|#userparam=outro}}
}}<!-- Close "if there are parks" -->
|
|
Members of the wiki can create custom lists by visiting pages for parks and trails and using the List It button.}}
Members of the wiki can create custom lists by visiting pages for parks and trails and using the List It button.}}

Latest revision as of 18:32, 12 April 2023

Members of the wiki can create custom lists by visiting pages for parks and trails and using the List It button.