Editing
Module:QuestList
Jump to navigation
Jump to search
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!
require('strict') require('Module:Mw.html extension') local purge = require('Module:Purge')._purge local parse = require('Module:Param Parse') local p = {} function p.main(frame) local args = frame:getParent().args -- get all episodes by episode sequence order -- local episodes = mw.smw.ask{ '[[Category:Episodes]]', ('[[Name::%s]]'):format( args.episode or '+' ), '[[Episode sequence number::+]]', '[[Release Date::+]]', '?Name#-', '?Premium', 'order=asc', 'sort=Episode sequence number', 'link=none', 'format=plainlist' } local table = mw.html.create('table') if (episodes == nil) then table:wikitext("No quests available for " .. args.episode .. " " .. purge('source-'..mw.uri.anchorEncode(args.episode), '(update)', 'span')) else table :addClass('wikitable quest-table align-center-2 align-center-3 align-left-4') :css{ ['width'] = '65%' } :attr{ cellspacing = '3' } for _, episode in ipairs(episodes) do table :tag('tr') :tag('th') :attr('colspan', 4) :wikitextIf(episode.Premium == true, '[[File:Premium Pass icon.png|16px]] ') :wikitext('[[File:'.. episode.Name ..' episode icon.png|16px]] ' .. episode[1]) :done() :done() :tag('tr') :tag('th') :wikitext('Quest') :done() :tag('th') :wikitext('Type') :done() :tag('th') :wikitext('Difficulty') :done() :tag('th') :wikitext('Requirements') :done() :done() if ( episode ) then -- get all quests for episode -- local quests = mw.smw.ask{ '[[Category:Quests]]', '[[Name::+]]', ('[[Episode::%s]]'):format( episode.Name ), '?Quest type', '?Difficulty', '?Requirements', 'order=asc', 'sort=Quest type,override_seq,Difficulty' } if ( quests ) then -- get quests for episode -- for _, quest in ipairs( quests ) do table :tag('tr') :tag('td') :wikitext( quest[1] ) :done() :tag('td') :css { ['width'] = '50px' } :wikitext( quest['Quest type'] ) :done() :tag('td') :wikitext( parse.difficulty_func( tostring(quest.Difficulty ) ) ) :done() :tag('td') :css { ['width'] = '55%' } :tag('div') :addClass('lighttable checklist') :newline() :wikitext( quest.Requirements ) :newline() :done() :done() :done() end end end end table:done() end return table end return p
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:QuestList/doc
(
view source
)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Module
Discussion
English
Views
Read
Edit source
View history
More
Refresh
Search
Discord
Discord
Navigation
About us
User help
Random page
Recent changes
Roughbark Spriggan
6m
ago
-
Plav
Powerful Spriggan
15m
ago
-
Plav
Mysterious Spriggan
16m
ago
-
Plav
Stretching Spriggan
16m
ago
-
Plav
Show more...
Brighter Shores
Professions
Factions
Episodes
Premium Pass
Monsters
Quests
Community
Policies
Tools
What links here
Related changes
Special pages
Page information