Module:TagInfoCard: Difference between revisions
From Eco - English Wiki
| [checked revision] | [checked revision] |
No edit summary |
No edit summary |
||
| Line 8: | Line 8: | ||
function p.main(frame) | function p.main(frame) | ||
local PageName = frame.args[1] | local PageName = frame.args[1] | ||
PageName = string.gsub(PageName," | PageName = string.gsub(PageName," Tag", "") | ||
if (Lang == 'English') then TagName = PageName else TagName = Utils.TagSearch(PageName) end | if (Lang == 'English') then TagName = PageName else TagName = Utils.TagSearch(PageName) end | ||
local TagData = require( "Module:TagData" ) | local TagData = require( "Module:TagData" ) | ||
Revision as of 16:34, 16 July 2025
Documentation for this module may be created at Module:TagInfoCard/doc
local p = {}
local Utils = require('Module:Utils')
local IconUtils = require('Module:IconUtils')
local L = require('Module:Localization')
local Lang = Utils.getLanguageName()
function p.main(frame)
local PageName = frame.args[1]
PageName = string.gsub(PageName," Tag", "")
if (Lang == 'English') then TagName = PageName else TagName = Utils.TagSearch(PageName) end
local TagData = require( "Module:TagData" )
local Tag = TagData.tags[TagName]
local WikiText =''
WikiText = WikiText ..'page name get test: ' .. PageName ..'</br>'
WikiText = WikiText ..'Item name get test: ' .. TagName ..'</br>'
return WikiText
end
return p