A Wiki in the Desert
Log in

View source for Module:Color

From A Wiki in the Desert

You do not have permission to edit this page, for the following reason:

The action you have requested is limited to users in the group: Users.


You can view and copy the source of this page.

local p = {}
function p.style( frame )
local background = background(frame.args[1])
local foreground = foreground(frame.args[1])
return 'style="background-color: #' .. background .. '; color: ' .. foreground .. ';"'
end
function background( color )
local color_table =
{
['Alice Blue'] = 'f0f8ff',
['Amethyst'] = '9966cc',
['Antique White'] = 'faebd7',
['Aqua'] = '00ffff',
['Aquamarine'] = '7fffd4',
['Azure'] = 'f0ffff',
['Baker Miller Pink'] = 'ff91af',
['Banana'] = 'e3cf57',
['Barn Red'] = '7c0a02',
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
000
1:0
Debug console
* The module exports are available as the variable "p", including unsaved modifications. * Precede a line with "=" to evaluate it as an expression or use print(). Use mw.logObject() for tables. * Use mw.log() and mw.logObject() in module code to send messages to this console.

Template used on this page:

Return to Module:Color.