Module:Proofreadpage index template/indicators/sandbox
Appearance
This is the module sandbox page for Module:Proofreadpage index template/indicators (diff). |
require('strict')
-- utility values
local lang_code = 'en'
local current_title = mw.title.getCurrentTitle()
local pagenamee = current_title:partialUrl()
return {
['pagegame'] = {
name = "WS Page Game",
image = "File:OOjs UI icon page number.svg",
link = mw.title.new('toolforge:ws-page-game'):fullUrl({wikisource = lang_code, lang = lang_code, index = pagenamee}),
caption = "Wikisource Page Game (step-by-step pagelist builder)"
},
['purge'] = {
name = "purge file",
image = "File:OOjs UI icon reload.svg",
link = mw.title.new('commons:File:' .. current_title.text):fullUrl({action = 'purge'}),
caption = "Purge file"
},
['book2scroll'] = {
name = "book2scroll",
image = "File:Library-logo-blue-outline.png",
link = mw.title.new('toolforge:book2scroll'):fullUrl({wikisource = lang_code, lang = lang_code, index = pagenamee}),
caption = "Open in Book2Scroll"
},
['bookreader'] = {
name = "bookreader",
image = "File:BookReader-favicon.svg",
link = mw.title.new('toolforge:bookreader/' .. lang_code .. '/' .. pagenamee):fullUrl(),
caption = "Open file in BookReader"
}
}