Actions

Module

Difference between revisions of "Infobox PlayerStoryline"

From ThornsWiki

(Created page with "local p = {} function p.default(frame) local capiunto = require 'capiunto' return capiunto.create( { top = tostring(mw.title.getCurrentTitle()), topStyle = 'background...")
 
 
(4 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
local capiunto = require 'capiunto'
 
local capiunto = require 'capiunto'
 
return capiunto.create( {
 
return capiunto.create( {
top = tostring(mw.title.getCurrentTitle()),
+
top = 'Storyline Quick Facts',
topStyle = 'background:#5f5543;color:#FFF;font-family:Metamorphous, serif;line-height:1.25em;',
+
topStyle = 'background:#5f5543;color:#FFF; font-family:Metamorphous, serif; line-height:1.25em; font-weight:normal;',
 
} )
 
} )
:addImage(
+
 
string.format('[[File:%s|250px]]', frame.args["image"]), -- featured image
 
frame.args["caption"] -- caption
 
)
 
:addHeader('Storyline Information')
 
 
:addRow('Status', frame.args["status"])
 
:addRow('Status', frame.args["status"])
 
:addRow('Activity', frame.args["activity"])
 
:addRow('Activity', frame.args["activity"])
 
:addRow('Location(s)', frame.args["locations"])
 
:addRow('Location(s)', frame.args["locations"])
:addHeader('Follow the Story')
+
:addHeader('Follow Along')
:addRow('Thread Tag', frame.args["tag"])
+
:addRow('Thread List', frame.args["tag"])
 
 
 
end
 
end
  
 
return p
 
return p

Latest revision as of 12:09, 28 November 2018

Documentation for this module may be created at Module:Infobox PlayerStoryline/doc

local p = {}
 
function p.default(frame)
	local capiunto = require 'capiunto'
	return capiunto.create( {
		top = 'Storyline Quick Facts',
		topStyle = 'background:#5f5543;color:#FFF; font-family:Metamorphous, serif; line-height:1.25em; font-weight:normal;',
	} )

	:addRow('Status', frame.args["status"])
	:addRow('Activity', frame.args["activity"])
	:addRow('Location(s)', frame.args["locations"])
	:addHeader('Follow Along')
	:addRow('Thread List', frame.args["tag"])
	
end

return p