Jump to content

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

From Wikipedia, the free encyclopedia
Content deleted Content added
Create doc page
 
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 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