Jump to content

Module:Road data/browsetable/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Add example
No edit summary
Line 11: Line 11:
{{mi browse|previous_type=M|previous_route=222|route=MI|next_type=M|next_route=227}}
{{mi browse|previous_type=M|previous_route=222|route=MI|next_type=M|next_route=227}}
}}
}}
}}</nowiki>
}}</nowiki>}}
<includeonly>{{Sandbox other||<!-- Categories below this line; interwikis at Wikidata -->
<includeonly>{{Sandbox other||<!-- Categories below this line; interwikis at Wikidata -->
}}</includeonly>
}}</includeonly>

Revision as of 21:41, 26 July 2024

This module exports the functions browsetable (for use from wikitext) and _browsetable (for use within Lua). The functions can serve as a container for the output Module:Road data/browse, adding padding between multiple instances of Module:Road data/browse.

Example

{{Infobox
| bodystyle = float: none;
| data1 = {{#invoke:Road data/browsetable|browsetable|
 {{oh browse|previous_type=SR|previous_route=222|route=OH|next_type=OH 1927|next_route=223|next_dab=1927-1930}}
 {{mi browse|previous_type=M|previous_route=222|route=MI|next_type=M|next_route=227}}
}}
}}
SR 222OH SR 223
M-222MI M-227