Module:Road data/size/doc: Difference between revisions
Appearance
< Module:Road data | size
Content deleted Content added
BrandonXLF (talk | contribs) Create doc page |
BrandonXLF (talk | contribs) Create |
||
Line 2: | Line 2: | ||
{{High use}} |
{{High use}} |
||
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> |
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> |
||
This module contains common shield sizes for use when displaying highway shields. |
|||
== Lua usage == |
|||
=== Function: <code>_size</code> === |
|||
* <code>args</code> - A table of arguments. |
|||
** <code>style</code> - The shield style to get the size for. |
|||
== Wikitext usage == |
|||
=== Function: <code>size</code> === |
|||
* {{para|style}} - The shield style to get the size for. |
|||
== Example == |
|||
{{Demo inline|<nowiki>{{#invoke:Road data/size|size|style=jct}}</nowiki>}} |
|||
<includeonly>{{Sandbox other|| |
<includeonly>{{Sandbox other|| |
Latest revision as of 18:05, 26 August 2024
![]() | This Lua module is used on approximately 18,000 pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox. Consider discussing changes on the talk page before implementing them. |
This module contains common shield sizes for use when displaying highway shields.
Lua usage
[edit]Function: _size
[edit]args
- A table of arguments.style
- The shield style to get the size for.
Wikitext usage
[edit]Function: size
[edit]|style=
- The shield style to get the size for.
Example
[edit]{{#invoke:Road data/size|size|style=jct}}
→ 24px