Actions

Module

Difference between revisions of "Infobox PlayerStoryline"

From ThornsWiki

Line 7: Line 7:
 
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;',
 
} )
 
} )
:addImage(
+
 
string.format('[[File:%s|250px]]', frame.args["image"]), -- featured image
 
frame.args["caption"] -- caption
 
)
 
 
:addHeader('Storyline Information')
 
:addHeader('Storyline Information')
 
:addRow('Status', frame.args["status"])
 
:addRow('Status', frame.args["status"])

Revision as of 12:06, 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 = tostring(mw.title.getCurrentTitle()),
		topStyle = 'background:#5f5543;color:#FFF;font-family:Metamorphous, serif;line-height:1.25em;',
	} )

	:addHeader('Storyline Information')
	:addRow('Status', frame.args["status"])
	:addRow('Activity', frame.args["activity"])
	:addRow('Location(s)', frame.args["locations"])
	:addHeader('Follow the Story')
	:addRow('Forum Link', frame.args["tag"])
	
end

return p