Home
Random
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:Sandbox/Wangxuan8331800/SB1
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.ass (frame) class_list={ "fa", "fl", "a", "ga", --[[ if (frame.args['bplus'] == "yes" or "y" or "1") then "bplus", end ]] "b", "c", "start", "stub", "list", } importance_list={ "top", "high", "mid", "low", --[[ if frame.args['bottom'] == "yes" or "y" or "1" then "bottom", end if frame.args['no'] == "yes" or "y" or "1" then "no", end if frame.args['na'] == "yes" or "y" or "1" then "na", end ]] } local classicon ={ fa='Featured article star.svg', fl='Featured article star.svg', a='Symbol a class.svg', ga='Symbol support vote.svg', b='Symbol b class.svg', c='Symbol c class.svg', start='Start-icon.svg', stub='Symbol stub class.svg', list='Symbol list class.svg', bplus='Symbol bplus class.svg', no='Crystal button cancel.svg', cat='Folder Hexagonal Icon.svg', disambig='Symbol dab class.svg', redirect='Symbol redirect vote.svg', template='Symbol template class.svg', na='Symbol neutral vote.svg', image='Video-x-generic.svg', portal='Portal.svg', project='Symbol information vote.svg', } local class_color = { fa = '#6699ff', fl = '#6699ff', fm = '#6699ff', a = '#66ffff', al = '#66ffff', ga = '#66ff66', b = '#b2ff66', bl = '#b2ff66', c = '#ffff66', cl = '#ffff66', start = '#ffaa66', stub = '#ff6666', list = '#aa88ff', na = '#f5f5f5', categorycat = '#ffdb58', current = '#d462ff', disambigdab = '#00fa9a', fileimage = '#ddccff', audio = '#ddccff', future = '#8a95c9', merge = '#add8e6', needed = '#dcdcdc', portal = '#cc8899', project = '#c0c090', redirect = '#c0c0c0', template = '#fbceb1', bplus = '#66ff66', sl = '#ff6666', user = '#999900', deferred = '#999999', book = '#98FF98', unassessed = 'transparent', } for i, v in ipairs(class_list) do for j, w in ipairs(importance_list) do --[=[ local class_number[i] .. '_' .. importance_number[j] = tonumber(frame.args[class_number[i] .. '_' .. importance_number[j]]) ]=] end end function input_row (i, j) row_title = '<th class="assess-' .. num_class[i] .. '" style="background: ' .. class_color[num_class[i]] .. '; text-align: center;">[[File:' .. classicon[num_class[i]] .. '|16px|alt=' .. class_name ..']]' .. class_category[num_class[i]] .. '</th>' row_top = arg end end
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/Wangxuan8331800/SB1/doc
(
edit
)