Module:inline/documentation: Difference between revisions
Jump to navigation
Jump to search
TheNightAvl (talk | contribs) (Created page with "{{documentation subpage}} <pre> local m_inline = require("Module:inline") local term, args = m_inline.parse("hello<key1:value1><key2:value2>") </pre> Yields: <pre> term = "hello" args = {["key1"] = "value1", ["key2"] = "value2"} </pre>") |
TheNightAvl (talk | contribs) No edit summary |
||
Line 3: | Line 3: | ||
<pre> | <pre> | ||
local m_inline = require("Module:inline") | local m_inline = require("Module:inline") | ||
local term, args = m_inline.parse("hello<key1:value1><key2 | local term, args = m_inline.parse("hello<key1:value1><key2>") | ||
</pre> | </pre> | ||
Yields: | Yields: | ||
<pre> | <pre> | ||
term = "hello" | term = "hello" | ||
args = {["key1"] = "value1", ["key2"] = | args = {["key1"] = "value1", ["key2"] = true} | ||
</pre> | </pre> |
Latest revision as of 14:13, 31 May 2024
local m_inline = require("Module:inline") local term, args = m_inline.parse("hello<key1:value1><key2>")
Yields:
term = "hello" args = {["key1"] = "value1", ["key2"] = true}