Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Module:SMAPI compatibility
(view source)
Revision as of 01:30, 24 October 2018
624 bytes added
,
01:30, 24 October 2018
add footer/header methods
Line 20:
Line 20:
--## Public functions
--## Public functions
--##########
--##########
+
-- Start a SMAPI compatibility table.
+
-- @test mw.log(p.header())
+
function p.header()
+
local row = mw.html.create("tr")
+
row:node(mw.html.create("th"):wikitext("mod name"))
+
row:node(mw.html.create("th"):wikitext("author"))
+
row:node(mw.html.create("th"):wikitext("compatibility"))
+
row:node(mw.html.create("th"):wikitext("broke in"))
+
row:node(mw.html.create("th"):wikitext("source"))
+
row:node(mw.html.create("th"):wikitext(" "))
+
+
return '<table class="wikitable plainlinks">' .. tostring(row)
+
end
+
+
-- End a SMAPI compatibility table.
+
-- @test mw.log(p.footer())
+
function p.footer()
+
return '</table>'
+
end
+
--- Render a mod row in the SMAPI compatibility table.
--- Render a mod row in the SMAPI compatibility table.
-- @param frame The arguments passed to the script.
-- @param frame The arguments passed to the script.
Pathoschild
translators
8,404
edits
Navigation menu
Personal tools
Create account
Log in
Namespaces
Module
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Admin noticeboard
Help Editing
Random page
Official Links
Official Site
Official Forums
Official Merchandise
Discord
Reddit
Tools
Upload file
Special pages
Printable version