Module:inline/documentation: Difference between revisions

From Laenkea
Jump to navigation Jump to search
(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>")
 
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:value2>")
local term, args = m_inline.parse("hello<key1:value1><key2>")
</pre>
</pre>
Yields:
Yields:
<pre>
<pre>
term = "hello"
term = "hello"
args = {["key1"] = "value1", ["key2"] = "value2"}
args = {["key1"] = "value1", ["key2"] = true}
</pre>
</pre>

Latest revision as of 14:13, 31 May 2024

Edit-copy green.svg Documentation for Module:inline. [edit]
This page contains usage information, categories, interwiki links and other content describing the module.
local m_inline = require("Module:inline")
local term, args = m_inline.parse("hello<key1:value1><key2>")

Yields:

term = "hello"
args = {["key1"] = "value1", ["key2"] = true}