Module:inline/documentation: Difference between revisions

ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
(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>