Open main menu
Home
Random
Log in
Settings
About Stardew Valley Wiki
Disclaimers
Stardew Valley Wiki
Search
Changes
← 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,445
edits