Home
Random
Log in
Settings
About Brighter Shores Wiki
Disclaimers
Search
Editing
Module:Sandbox/User:Artoire
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
local data = require('Module:Experience/data') local last_seen = 0 for i = 0, 500 do if data.album[i] ~= nil then if data.album[i] <= last_seen then error(('Level %s is not strictly greater than the previous value (%s <= %s)'):format(i, data.album[i], last_seen)) end last_seen = data.album[i] end end local output = mw.html.create() :wikitext('L = level; A = Album XP; K = Knowledge XP; D = floor(K / 10) - A') :tag('table') :addClass('wikitable sortable') :tag('tr') :tag('th'):wikitext('L'):done() :tag('th'):wikitext('A'):done() :tag('th'):wikitext('K'):done() :tag('th'):wikitext('D'):done() :done() for i = 0, 499 do if data.album[i] ~= nil then local needed = data.level[i+1]-data.level[i] local k = data.knowledge[i] output:tag('tr') :tag('td'):wikitext(i):done() :tag('td'):wikitext(data.album[i]):done() :tag('td'):wikitext(data.knowledge[i]):done() :tag('td'):wikitext(data.knowledge[i] and math.floor(data.knowledge[i] / 10) - data.album[i]):done() :done() end end return { main = function() return output:done() end }
Summary:
Please note that all contributions to Brighter Shores Wiki are considered to be released under the CC BY-NC-SA 3.0 (see
Brighter Shores:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Preview page with this template
Template used on this page:
Module:Sandbox/User:Artoire/doc
(
view source
)