Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Search
Search
Appearance
Create account
Log in
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Editing
Module
:
Based on
Module
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
local p = {} function p.lua_main(frame) local s = frame.args[1] local indent = frame.args['indent'] indent = indent and indent:lower() or "" local do_indent = indent == "yes" or indent == "y" or indent == "true" or indent == "1" if frame.args[3] then local args = {} for i, v in ipairs(frame.args) do if i >= 2 then args[#args+1] = v end end args['style'] = 'display: inline' args['list_style'] = 'display: inline' args['item1_style'] = 'display: inline' h = mw.html.create('div') h:addClass('template-based-on') local expanded = frame:expandTemplate{ title = 'Unbulleted list', args = args } if do_indent then s = '<div style="padding-left: 1em; text-indent: -1em;">' .. s .. '</div>' h:wikitext(s) h:wikitext('<span style="margin-left:1em;">by </span>') expanded = expanded:gsub("<li>", "<li style='padding-left: 1em;'>") expanded = expanded:gsub("<br />", "<br /><span style='margin-left:1em;'>") h:wikitext(expanded) else h:wikitext(s) h:tag('br') -- h:newline() is not working for some reason h:wikitext('by ') h:wikitext(expanded) end return h elseif frame.args[2] then if do_indent then s = '<div class="template-based-on" style="padding-left: 1em; text-indent: -1em;">' .. s .. '<br />by ' .. frame.args[2] .. '</div>' else s = '<div class="template-based-on">' .. s .. '<br />by ' .. frame.args[2] .. '</div>' end return s end return s end function p.main(frame) return p.lua_main(frame:getParent()) end return p
Summary:
Please note that all contributions to LarpOfHoi4 Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
LarpOfHoi4 Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Page included on this page:
Module:Based on/doc
(
edit
)
Search
Search
Editing
Module
:
Based on
Add topic