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:Ds/aware
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 = {} local getArgs = require('Module:Arguments').getArgs function p.detect(frame) local title local args = getArgs(frame) if args.testTitle then title = mw.title.new(args.testTitle) else title = mw.title.getCurrentTitle() end local content = title:getContent() or '' local codes = string.match(content, "{{%s-D[sS]/[aA]ware%s-|([^}]-)}}") if not codes then return end local text = p._listToText(frame, mw.text.split(codes, "|")) return frame:preprocess( "<div style = 'font-weight: bold'>It is not necessary to notify this user of sanctions for the following topic area(s):" ..text.. "\n The user has indicated that they are already aware of these sanctions using the template <nowiki>{{Ds/aware}}</nowiki> on their talk page.</div>" ) end function p.listToText(frame) return p._listToText(frame, getArgs(frame)) end function p._listToText(frame, t) local new = {} local t = require('Module:TableTools').compressSparseArray(t) for i,v in ipairs(t) do table.insert(new, frame:expandTemplate{title = 'Ds/topics', args = {["sanctions scope"] = v}}) end return '\n*'..table.concat(new, '\n*') 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:Sandbox other
(
edit
)
Template:Used in system
(
edit
)
Module:Ds/aware/doc
(
edit
)
Module:Effective protection level
(
edit
)
Module:High-use
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:Message box/ombox.css
(
edit
)
Module:String
(
edit
)
Module:Transclusion count
(
edit
)
Module:Transclusion count/data/D
(
edit
)
Module:Yesno
(
edit
)