Module:EcopediaString: Difference between revisions
From Eco - English Wiki
[checked revision] | [checked revision] |
m StalEF moved page Module:GetEcopedia to Module:EcopediaString without leaving a redirect |
No edit summary Tag: Manual revert |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
function p.main(param) | |||
local Utils = require('Module:Utils') | |||
function | local args = Utils.normaliseArgs(param) | ||
local String = "" | |||
local EcopediaList = mw.loadData("Module:EcopediaData") | |||
local String = EcopediaList[args.num] | |||
local | |||
return | return String | ||
end | end | ||
return p | return p |
Latest revision as of 10:14, 28 June 2024
This module provides the back end functionality of the Template:EcopediaString.
If the template is passed information will be displayed using details from the following Modules:
local p = {}
function p.main(param)
local Utils = require('Module:Utils')
local args = Utils.normaliseArgs(param)
local String = ""
local EcopediaList = mw.loadData("Module:EcopediaData")
local String = EcopediaList[args.num]
return String
end
return p