Munurin millum rættingarnar hjá "Module:Road data/parser/hooks/doc"

s
Bot: Erstatt forældet <source> -tag og parameteren "enclose" [https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2020-April/002284.html]
(Stovnaði síðu við "This module includes hook functions that provide extra functionality to Module:Road data/parser and its associated string modules. ==Basics== Each hook is simply a fu...")
 
s (Bot: Erstatt forældet <source> -tag og parameteren "enclose" [https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2020-April/002284.html])
 
Each hook is simply a function stored in the <code>p</code> package table exported by this module. Each function accepts two arguments:
* <code>parameters</code>: The table in the string module that references the hook. In this example, this argument would be the table stored in the <code>shield</code> field of the type table (from [[Module:Road data/strings/USA/KY]]):
<sourcesyntaxhighlight lang="lua">
KY["KY 1966"] = {shield = {hook = "split",
split = 100,
link = KY.KY.link,
abbr = KY.KY.abbr}
</syntaxhighlight>
</source>
* <code>args</code>: The arguments originally passed to the parser.
 
14.816

rættingar