Difference between revisions of "Template:Morebus-short"

From Transit.Wiki
m
m
 
(3 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|sep=;|sort=provider}}|;|unique}}{{#arrayprint:morebus{{#var:morebusid}}||$1|{{#vardefine:varid |{{#expr:{{#var:varid}}+1}}}}<h3>{{#ifexist:$1|[[$1]]|$1}}</h3>
+
| 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>
{{#ask: {{{show|[[Place::{{PAGENAME}}]]}}} [[Provider::$1]]
+
{{#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]]
 
| format=template| link=none| template=listlines4a| ?rvalue=| ?to=| sort=rpref,rnum,rlet
 
| format=template| link=none| template=listlines4a| ?rvalue=| ?to=| sort=rpref,rnum,rlet
}}}}</onlyinclude>
+
}}{{#if:{{{autocol|}}}|</div>}}}}</onlyinclude>
  
 
show: which parameter to show
 
show: which parameter to show
  
 
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]])
 +
 +
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.