Home
Random
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:Sandbox/PHansen/Param
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!
--[=[ ==This modified code was OK== Test via User:PHansen/Param - Answer: Some text Modified from [[:sv:Modul:Mandattabell]] p.start -> p.main and added local p = {} and return p and local text = "" (avoid nil) <source lang="lua"> --]=] local p = {} -- added function p.main( frame ) local pFrame = frame:getParent(); local args = pFrame.args; for k,v in pairs( frame.args ) do args[k] = v; end local text = "" -- added --[[ .. Er en del længere på Modul:Mandattabel_sv med bl.a. boksens begyndelse .. Her ville det vel være den indledende html-kode ? mw.text.tag('span', eller lign .. Herunder eks. --]] t4 = mw.text.tag('span',{style="cursor: help; border-bottom: 1px dotted;", title="Grafisk præsentation af mandatfordeling og valgdeltagelse"}, 'Grafik: Mandatfordeling og valgdeltagelse') text = text .. mw.text.tag('th', {style="box-sizing:content-box;width:400px;"},t4) --A basic example could look like this: -- https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#HTML_library local div = mw.html.create( 'div' ) div :attr( 'id', 'testdiv' ) :css( 'width', '100%' ) :wikitext( 'Some text' ) :tag( 'hr' ) return tostring( div ) -- Output: <div id="testdiv" style="width:100%;">Some text<hr /></div> end return p -- added -- </source>
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, 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 (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template used on this page:
Module:Sandbox/PHansen/Param/doc
(
edit
)