Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Race

From MassiveCraft Wiki
Revision as of 23:57, 25 August 2015 by Ryciera (talk | contribs)

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

local p = {}

name = ""
img = ""
pron = ""
nick = ""
class = ""
age = ""
naming = ""
language = ""
subraces = ""

function p.info(frame)
	
	name=frame.args.Name
	img=frame.args.Image
	pron=frame.args.Pronunciation
	nick=frame.args.Nicknames
	class=frame.args.Classification
	age=frame.args.MaxAge
	naming=frame.args.NamingCustoms
	language=frame.args.Languages
	subraces=frame.args.Subraces
	
	fullimg = "[[File:" .. img .. "|200px|center]]"
	
return( [[{| class="wikitable" style="float:right; margin-left: 10px;"
|
{| style="border:0px solid #A3B1BF; float:right;" width="270px"
|- style="background:#C6DCF3; height:34px; text-align:center; vertical-align:middle; text-size:large"
|''']] .. name .. [['''
|- style="vertical-align:middle;"
| style="height:120px" valign="top"|
]]
.. fullimg ..
[[
|}
|- style="vertical-align:middle;"
| style="height:20px; width:270px; text-align:center;" | '''Pronunciation:''' ]] .. pron ..
[[.
|- style="vertical-align:middle;"
| style="height:20px; width:270px; text-align:center;" | '''Common Nicknames:''' ]] .. nick ..
[[.
|- style="vertical-align:middle;"
| style="height:20px; width:270px; text-align:center;" | '''Classification:''' ]] .. class ..
[[.
|- style="vertical-align:middle;"
| style="height:20px; width:270px; text-align:center;" | '''Max Age:''' ]] .. age ..
[[ years.
|- style="vertical-align:middle;"
| style="height:20px; width:270px; text-align:center;" | '''Naming Customs:''' ]] .. naming ..
[[.
|- style="vertical-align:middle;"
| style="height:20px; width:270px; text-align:center;" | '''Languages:''' ]] .. language ..
[[.
|- style="vertical-align:middle;"
| style="height:20px; width:270px; text-align:center;" | '''Subraces:'''
|-
| style="width:270px;" |
TBA.
|}]] )

end

return p