Difference between revisions of "Template:Morebus-short"

From Transit.Wiki
m
m
 
(12 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:morebusid |{{#expr:{{#var:morebusid}}+1}}}}{{#arraydefine:morebus{{#var:morebusid}}|{{#ask: {{{show|[[Place::{{PAGENAME}}]]}}} {{{not|}}}
| mainlabel=-|?provider=|link=none|limit=200}}|,|unique}}
+
| mainlabel=-|?provider=|link=none|limit=200|sep=;|valuesep=;|sort=provider}}|;|unique}}{{#arrayprint:morebus{{#var:morebusid}}||$1|{{#vardefine:varid |{{#expr:{{#var:varid}}+1}}}}<h3>{{#ifexist:$1|[[$1]]|$1}}</h3>
{{#arrayprint:morebus{{#var:morebusid}}||$1|{{#vardefine:varid |{{#expr:{{#var:varid}}+1}}}}<h3>'''$1'''</h3>
+
{{#if:{{{autocol|}}}|<div style="-webkit-column-count: {{{autocol|}}}; -webkit-column-gap: 30px; -moz-column-count: {{{autocol|}}}; -moz-column-gap: 30px; column-count: {{{autocol|}}};column-gap: 30px; column-width:20em;">}}{{#ask: {{{show|[[Place::{{PAGENAME}}]]}}} [[Provider::$1]]
{{#ask: {{{show|[[Place::{{PAGENAME}}]]}}} [[Provider::$1]]
+
| format=template| link=none| template=listlines4a| ?rvalue=| ?to=| sort=rpref,rnum,rlet
| format=template| template=listlines2| link=none | ?rnum=| ?rlet=| ?to=| sort=rnum,rlet
+
}}{{#if:{{{autocol|}}}|</div>}}}}</onlyinclude>
}}}}</onlyinclude>
 
  
 
show: which parameter to show
 
show: which parameter to show
Line 10: Line 9:
 
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]])
  
notcollapsed provider: name of provider where list is shown without collapsed.
+
autocol: <number> - have multi-columns available and automatically adjusted.

Latest revision as of 05:35, 22 February 2024


show: which parameter to show

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

autocol: <number> - have multi-columns available and automatically adjusted.