Module:Infobox/sandbox: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Created page with "--[=[ -- For documentation, see Module:Infobox/doc --]=] -- <nowiki> local Infobox = {} Infobox.__index = Infobox Infobox.__tostring = Infobox.tostring -- Edit button for unknown params local editbutton = require('Module:Edit button') local var = mw.ext.VariablesLua local edit = editbutton("'''?''' (edit)") -- Page title local pagename = mw.title.getCurrentTitle().fullText -- map of flags to html tags used by Infobox.addRow() -- let's only define it once, since :...")
 
No edit summary
 
Line 43:
end
 
-- Create a standardized release function, since so many mw.pages use it
-- Turns release and update into a single parameter
function releaseUpdate(release, update)
Line 299:
 
-- Defines an infobox name ({{Template:arg}})
-- Used to create a link at the bottom of mw.pages
function Infobox:defineName(arg)
self.infoboxname = arg
Line 721:
end
 
-- Add a tracking category for mw.pages that have more than 1 version
if onContentNamespace and self.versions > 1 then
-- version count data

Navigation menu