View source for Module:Conservation status
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
local p = {}
-- function main() - entry point for template
function p.main(frame)
local system = mw.text.trim(frame:getParent().args[1]) -- needs trim() for unnamed parameters
local status = mw.text.trim(frame:getParent().args[2])
local refs = mw.text.trim(frame:getParent().args[3] or "" )
--TODO add handling of extinct parameter
return '! colspan = 2 | <div style = "text-align:center;">[[Conservation status]]</div>' -- header row
.. '\n|-'
.. '\n| colspan = 2 | <div style = "text-align:center;">'
.. p._main(frame, system, status, refs) -- status content
.. '</div>'
end
-- function status() - entry point for direct invoke testing (assumes table structure and adds cell content)
function p.status(frame)
000
1:0
Templates used on this page:
- Template:Module other (view source)
- Template:Module rating (view source)
- Template:Ombox (view source)
- Template:Template link (view source)
- Template:Tl (view source)
- Module:Arguments (view source)
- Module:Conservation status/doc (view source)
- Module:Message box (view source)
- Module:Message box/configuration (view source)
- Module:No globals (view source)
- Module:Yesno (view source)
Return to Module:Conservation status.