Open main menu
Home
Random
Donate
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:Tlx
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 = {} bold, ital, subst = "", false, false function p.tlxs(frame) subst=true return p.tlx(frame) end function p.tlxb(frame) bold="'''" return p.tlx(frame) end function p.tlxi(frame) ital = true return p.tlx(frame) end function p.tlx(frame) local outStr = frame:extensionTag{name='nowiki',content='{{'} local args = frame:getParent().args if (subst or args['subst'] or '') ~= '' then outStr = outStr..'[[Help:Substitution|subst]]:' end local tempTitle = (args[1] or ' ') if mw.title.new(tempTitle) ~= nil then if (mw.title.new(tempTitle).nsText or '') == '' and (mw.title.new(tempTitle).interwiki or '') == '' then tempLink=frame:callParserFunction{name='ns',args='Template'}..':'..tempTitle else tempLink = tempTitle end else tempLink = tempTitle end outStr = outStr..'[[:'..(args['LANG'] or frame.args['LANG'] or '')..(args['SISTER'] or frame.args['SISTER'] or '')..tempLink..'|'..bold..tempTitle..bold..']]' local k, v for k, v in pairs(args) do if type(k) == 'number' and k ~= 1 then if ital then outStr = outStr..'|'..frame:extensionTag{name='var',content=v} else outStr = outStr..'|'..v end elseif k ~= 1 and k ~= 'subst' and k ~= 'LANG' and k ~= 'SISTER' then if ital then outStr = outStr..'|'..frame:extensionTag{name='var',content=k..'='..v} else outStr = outStr..'|'..k..'='..v end end end outStr = outStr..frame:extensionTag{name='nowiki',content='}}'} return frame:extensionTag{name='code',content=outStr} end return p
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)
Templates used on this page:
Template:Module other
(
edit
)
Template:Module rating
(
edit
)
Template:Ombox
(
edit
)
Template:Para
(
edit
)
Template:Tl
(
edit
)
Template:Tlx/sandbox
(
edit
)
Module:Arguments
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:Message box/ombox.css
(
edit
)
Module:Tlx/doc
(
edit
)
Module:Yesno
(
edit
)