Module:Road data/browsetable/doc: Difference between revisions
Appearance
Content deleted Content added
BrandonXLF (talk | contribs) No edit summary |
BrandonXLF (talk | contribs) Use Template:Box for the demop |
||
Line 5: | Line 5: | ||
== Example == |
== Example == |
||
{{nowiki template demo|code=<nowiki>{{ |
{{nowiki template demo|code=<nowiki>{{Box|width=20em|padding=8px| |
||
⚫ | |||
| bodystyle = float: none; |
|||
⚫ | |||
<!-- Route browse rows --> |
|||
{{oh browse|previous_type=SR|previous_route=222|route=OH|next_type=OH 1927|next_route=223|next_dab=1927-1930}} |
{{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}} |
{{mi browse|previous_type=M|previous_route=222|route=MI|next_type=M|next_route=227}} |
Revision as of 22:02, 26 July 2024
![]() | This is a documentation subpage for Module:Road data/browsetable. It may contain usage information, categories and other content that is not part of the original module page. |
![]() | This module uses TemplateStyles: |
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
{{Box|width=20em|padding=8px| {{#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}} }} }}