Module:Transclude random page: Difference between revisions
Jump to navigation
Jump to search
Created page with "local p = {} local mRandom = require('Module:Random') local currentTitle = mw.title.getCurrentTitle() local function getRandomNumber(max) -- Gets a random integer between 1 and max; max defaults to 1 return mRandom.number{max or 1} end local function expandArg(args, key) -- Emulate how unspecified template parameters appear in wikitext. If the -- specified argument exists, its value is returned, and if not the argument -- name is returned inside tr..."
imported>Camenati (Created page with "local p = {} local mRandom = require('Module:Random') local currentTitle = mw.title.getCurrentTitle() local function getRandomNumber(max) -- Gets a random integer between 1 and max; max defaults to 1 return mRandom.number{max or 1} end local function expandArg(args, key) -- Emulate how unspecified template parameters appear in wikitext. If the -- specified argument exists, its value is returned, and if not the argument -- name is returned inside tr...") |
(No difference)
|