Home
Random
Log in
Settings
About the Deadlock Wiki
Search
Editing
Module
:
Souls
Give feedback
Warning:
You are not logged in. Once you make an edit, a temporary account will be created for you.
Learn more
.
Log in
or
create an account
to continue receiving notifications after this account expires, and to access other features.
Anti-spam check. Do
not
fill this in!
local p = {} local Lang = require('Module:Lang') local lang_code = Lang.get_lang_code() -- Formats souls amount with an icon and styling local function render(amount, args) local args = args or {} local size = args.size or '14px' local shadow = (args.Shadow ~= '' and args.Shadow) or 'text-shadow: 0px 0px 2px #2c312e, 1.3px 1.3px rgba(0, 0, 0, 0.2);' local style = 'color:#98ffde; font-family:Retail Demo; text-wrap:nowrap; ' .. shadow local link = 'Souls' if lang_code ~= 'en' then link = 'Souls/' .. lang_code end local file = '[[File:Souls iconColored.png|link=' .. link .. '|' .. size .. '|Souls]]' local thin_space = amount and ' ' or '' local bold = amount and '<b>' .. amount .. '</b>' or '' return '<span class="souls-text" style="' .. style .. '">' .. file .. thin_space .. bold .. '</span>' end -- Template entrypoint {{Souls|<amount>|size=|Shadow=}} function p.render(frame) local args = frame:getParent().args local amount = args[1] or "" return render(amount, args) end -- Module entrypoint function p._render(amount, args) return render(amount, args) end return p
Summary:
Please note that all contributions to The Deadlock Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
Deadlock: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)
Preview page with this template
Page included on this page:
Module:Souls/doc
(
view source
)