![]() | This is the module sandbox page for Module:Party name with color (diff). |
![]() | This module is rated as beta, and is ready for widespread use. It is still new and should be used with some caution to ensure the results are as expected. |
![]() | This module is subject to page protection. It is a highly visible module in use by a very large number of pages, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing. |
![]() | This module depends on the following other modules: |
Usage
This module implements Template:Party name with color. See the documentation for Template:Party name with color for usage.
local p = {}
local fetch = nil -- lazy load
local function getData(args)
local yesno = require('Module:Yesno')
local color = args.color
fetch = require('Module:Political party')._fetch
color = fetch({args[1], 'color'})
return color
end
function p._cell(args)
local color = getData(args)
return color
end
function p.cell(frame)
local getArgs = require('Module:Arguments').getArgs
local args = getArgs(frame)
return p._cell(args)
end
return p