VOOZH about

URL: https://minecraft.wiki/w/Module:Al_version

⇱ Module:Al version – Minecraft Wiki


Module:Al version

From Minecraft Wiki
Jump to navigation Jump to search
Documentation[view] [edit] [history] [purge]Jump to code ↴

This module implements {{al version}}.

Data stored at Module:Al version/Versions.

[view] [edit] [history] [purge]The above documentation is transcluded from Module:Al version/doc.
localp={}
-- Raw version ({{al_version}})
functionp.al_version(f)
localargs=f
iff==mw.getCurrentFrame()then
args=require('Module:ProcessArgs').merge(true)
end
localversion=mw.text.trim(args[1]or'')
-- load the values from the submodule
localversion_data=mw.loadData('Module:al_version/Versions').versions[version]
localcategory=''
localvalue
localtitle=mw.title.getCurrentTitle()
ifversion_datathen
ifversion_data.verthen
ifversion_data.ver=='Unknown'then
value='Unknown'
ifnotargs.nocatandtitle.namespace==0andnottitle.isSubpagethen
category='[[Category:Unknown al_version]]'
end
else
value=version_data.ver
end
else
value='N/A'
end
else
value='Unspecified'
ifnotargs.nocatandtitle.namespace==0andnottitle.isSubpagethen
category='[[Category:Pending al_version]]'
end
end
returnvalue..category
end
-- Version table ({{al_version/table}})
functionp.table(f)
localargs=f
iff==mw.getCurrentFrame()then
args=require('Module:ProcessArgs').merge(true)
end
localhtml={}
localvalues=mw.loadData('Module:al_version/Versions').list
localfunctiontable_header(phase)
table.insert(html,'\n==='..phase..'===\n')
table.insert(html,'<table class="wikitable sortable jquery-tablesorter">\n')
table.insert(html,'<tr>\n')
table.insert(html,' <th>Game version</th>\n')
table.insert(html,' <th>'..((phase=='Alpha'orphase=='Beta'orphase=='Release')and'ID'or'al_version')..'</th>\n')
table.insert(html,'</tr>')
end
table.insert(html,'<table>')
for_,versioninipairs(values)do
ifversion.phase~=nilthen
table.insert(html,'</table>')
table_header(version.phase)
end
table.insert(html,'<tr>\n')
table.insert(html,' <td>[[Java Edition '..version.name..'|'..version.name..']]</td>')
table.insert(html,' <td style="text-align:center;">'..version.ver..'</td>')
table.insert(html,'</tr>')
end
table.insert(html,'</table>')
returntable.concat(html)
end
returnp
Retrieved from "https://minecraft.wiki/w/Module:Al_version?oldid=3505804"

Navigation menu