|
|
Line 1: |
Line 1: |
| --<nowiki> | | --<nowiki> |
| local p = {} | | local p = {} |
| | | require('Module:Common') |
| require('Module:Icon/data') | | require('Module:Icon/data') |
|
| |
| local function trim(object)
| |
| if string.sub(object, 1, 1) == ' ' then
| |
| object = string.sub(object, 2)
| |
| end
| |
|
| |
| if string.sub(object, string.len(object)) == ' ' then
| |
| object = string.sub(object, 1, string.len(object) - 1)
| |
| end
| |
|
| |
| return object
| |
| end
| |
|
| |
| function exists(object)
| |
| if object == nil or object == '' then
| |
| return false
| |
| else
| |
| return true
| |
| end
| |
| end
| |
|
| |
|
| local function _requirements(resource, value, link, text) | | local function _requirements(resource, value, link, text) |