Difference between revisions of "Template:Morebus-mini"

From Transit.Wiki
m
m
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
<onlyinclude>{{#vardefine:morebusid |{{#expr:{{#var:morebusid}}+1}}}}{{#arraydefine:morebus{{#var:morebusid}}|{{#ask: {{{show|[[Place::{{PAGENAME}}]]}}} {{{not|}}}
+
<onlyinclude>{{#vardefine:moreminibusid |{{#expr:{{#var:moreminibusid}}+1}}}}{{#arraydefine:morebus{{#var:moreminibusid}}|{{#ask: {{{show|[[Place::{{PAGENAME}}]]}}} {{{not|}}}
| mainlabel=-|?provider=|link=none|limit=200|sep=;}}|;|unique}}{{#arrayprint:morebus{{#var:morebusid}}||$1|{{#vardefine:varid |{{#expr:{{#var:varid}}+1}}}}<b>$1</b> routes: {{#ask: {{{show|[[Place::{{PAGENAME}}]]}}} [[Provider::$1]]
+
| mainlabel=-|?provider=|link=none|limit=200|sep=;}}|;|unique}}{{#arrayprint:morebus{{#var:moreminibusid}}|,&#32;|$1|{{#vardefine:varminiid |{{#expr:{{#var:varminiid}}+1}}}}<span style="white-space: nowrap;">{{#if:{{{noheader|}}}||🚍 <b>$1</b> routes:}}{{#ask: {{{show|[[Place::{{PAGENAME}}]]}}} [[Provider::$1]]
| format=list| link=none| template=listlines6| ?rnum=| ?rlet=| ?to=| sort=rnum,rlet| sep=,
+
| format=list| link=none| template=listlines6| ?rvalue=| ?to=| sort=rnum,rlet| sep={{{list sep|,&#32;}}}
}}|print=pretty}}</onlyinclude>
+
}}</span>}}</onlyinclude>
 
Usage:
 
Usage:
  
Line 12: Line 12:
  
 
not: which parameter to omit - use full property statement (e.g. [[Provider::!Muni]])
 
not: which parameter to omit - use full property statement (e.g. [[Provider::!Muni]])
 +
 +
noheader: if yes, then ... routes won't show.

Revision as of 22:50, 18 April 2024

Usage:

{{Morebus-mini|show=}}

show: which parameter to show

not: which parameter to omit - use full property statement (e.g. !Muni)

noheader: if yes, then ... routes won't show.