More actions
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
-- Module:Transcluder is a general-purpose transclusion engine
-- Central version and documentation at https://en.wikipedia.org/wiki/Module:Transcluder
-- By User:Sophivorus, User:Certes & others
-- Version 1.4.1
-- License CC-BY-SA-3.0
local p = {}
-- Helper function to test for truthy and falsy values
-- @todo Somehow internationalize it
local function truthy(value)
if not value or value == '' or value == 0 or value == '0' or value == 'false' or value == 'no' or value == 'non' then
return false
end
return true
end
-- Helper function to match from a list of regular expressions
-- Like so: match pre..list[1]..post or pre..list[2]..post or ...
local function matchAny(text, pre, list, post, init)
000
1:0
Template used on this page:
Return to Module:Transcluder.