Results of User:HumansCanWinElves/LuaSandbox
Source code of User:HumansCanWinElves/LuaSandbox
<noinclude>
== Source code of [[Module:Sandbox/HumansCanWinElves]] ==
<div class="mw-collapsible mw-collapsed">
{{#tag:SyntaxHighlight|{{Module:Sandbox/HumansCanWinElves}}|lang="lua"}}
</div>
</noinclude>
<!--
== unique ==
<pre>
* {{#invoke:Sandbox/HumansCanWinElves|unique}}
* {{#invoke:Sandbox/HumansCanWinElves|unique}}
* {{#invoke:Sandbox/HumansCanWinElves|unique}}
* {{#invoke:Sandbox/HumansCanWinElves|unique}}
* {{#invoke:Sandbox/HumansCanWinElves|unique}}
* {{#invoke:Sandbox/HumansCanWinElves|unique}}
* {{#invoke:Sandbox/HumansCanWinElves|unique}}
* {{#invoke:Sandbox/HumansCanWinElves|unique}}
* {{#invoke:Sandbox/HumansCanWinElves|unique}}
* {{#invoke:Sandbox/HumansCanWinElves|unique}}
</pre>
* {{#invoke:Sandbox/HumansCanWinElves|unique}}
* {{#invoke:Sandbox/HumansCanWinElves|unique}}
* {{#invoke:Sandbox/HumansCanWinElves|unique}}
* {{#invoke:Sandbox/HumansCanWinElves|unique}}
* {{#invoke:Sandbox/HumansCanWinElves|unique}}
* {{#invoke:Sandbox/HumansCanWinElves|unique}}
* {{#invoke:Sandbox/HumansCanWinElves|unique}}
* {{#invoke:Sandbox/HumansCanWinElves|unique}}
* {{#invoke:Sandbox/HumansCanWinElves|unique}}
* {{#invoke:Sandbox/HumansCanWinElves|unique}}
== loop ==
<pre>{{#invoke:Sandbox/HumansCanWinElves|loop|to = 12|text = $$Number $, $$$<br />}}</pre>
{{#invoke:Sandbox/HumansCanWinElves|loop|to = 12|text = $$Number $, $$$<br />}}
== Echoing ==
(see https://phabricator.wikimedia.org/T295657 )
<pre>{{#invoke:Sandbox/HumansCanWinElves|echo|1 = == {{!}} wikitext ==
* to [[wikipedia:HTML|HTML]] conversion
* should ''not'' happen now}}</pre>
{{#invoke:Sandbox/HumansCanWinElves|echo|1 = == {{!}} wikitext ==
* to [[wikipedia:HTML|HTML]] conversion
* should ''not'' happen now}}
<pre>{{#invoke:Sandbox/HumansCanWinElves|preprocess|1 = == {{!}} wikitext ==
* to [[wikipedia:HTML|HTML]] conversion
* should ''not'' happen now}}</pre>
{{#invoke:Sandbox/HumansCanWinElves|preprocess|1 = == {{!}} wikitext ==
* to [[wikipedia:HTML|HTML]] conversion
* should ''not'' happen now}}
<pre>{{#invoke:Sandbox/HumansCanWinElves|chars|1 = == {{!}} wikitext ==
* to [[wikipedia:HTML|HTML]] conversion
* should ''not'' happen now}}</pre>
{{#invoke:Sandbox/HumansCanWinElves|chars|1 = == {{!}} wikitext ==
* to [[wikipedia:HTML|HTML]] conversion
* should ''not'' happen now}}
== Debug info ==
<pre>{{#invoke:Sandbox/HumansCanWinElves|dumpEnv}}</pre>
{{#invoke:Sandbox/HumansCanWinElves|dumpEnv}}
-->
Source code of Module:Sandbox/HumansCanWinElves
see below
local p = {}
function p.example(frame)
local titleContent = mw.html.create('title')
:attr('source', 'name')
:tag('default')
:wikitext("Lua-generated infobox")
local dataContent = mw.html.create('data')
:tag('default')
:wikitext("data item of a Lua-generated infobox")
local output = tostring(frame:extensionTag{
name = 'infobox',
content = tostring(titleContent:allDone()) .. tostring(dataContent:allDone()),
args = { layout = 'stacked' }
})
return output
end
return p