Module:Race: Difference between revisions

From MassiveCraft Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 23: Line 23:
subraces=frame.args.Subraces
subraces=frame.args.Subraces
box=[[
print( [[{| class="wikitable" style="float:right; margin-left: 10px;"
{| class="wikitable" style="float:right; margin-left: 10px;"
|
|
{| style="border:0px solid #A3B1BF; float:right;" width="270px"
{| style="border:0px solid #A3B1BF; float:right;" width="270px"
|- style="background:#C6DCF3; height:34px; text-align:center; vertical-align:middle; text-size:large"
|- style="background:#C6DCF3; height:34px; text-align:center; vertical-align:middle; text-size:large"
|''']]  
|''']] .. name .. [['''
 
..  
name
..  
 
[['''
|- style="vertical-align:middle;"
|- style="vertical-align:middle;"
| style="height:120px" valign="top"|]]
| style="height:120px" valign="top"|
 
\[\[File:]] .. img .. [[|200px|center\]\]
..
img
..
 
[[
|}
|}
|- style="vertical-align:middle;"
|- style="vertical-align:middle;"
| style="height:20px; width:270px; text-align:center;" | '''Pronunciation:''']] .. pron ..  
| style="height:20px; width:270px; text-align:center;" | '''Pronunciation:''' ]] .. pron ..
 
[[.
[[
|- style="vertical-align:middle;"
|- style="vertical-align:middle;"
| style="height:20px; width:270px; text-align:center;" | '''Common Nicknames:''']] .. nick ..
| style="height:20px; width:270px; text-align:center;" | '''Common Nicknames:''' ]] .. nick ..
 
[[.
[[
|- style="vertical-align:middle;"
|- style="vertical-align:middle;"
| style="height:20px; width:270px; text-align:center;" | '''Classification:''']] .. class ..
| style="height:20px; width:270px; text-align:center;" | '''Classification:''' ]] .. class ..
 
[[.
[[
|- style="vertical-align:middle;"
|- style="vertical-align:middle;"
| style="height:20px; width:270px; text-align:center;" | '''Max Age:''']] .. age ..
| style="height:20px; width:270px; text-align:center;" | '''Max Age:''' ]] .. age ..
 
[[ years.
[[
|- style="vertical-align:middle;"
|- style="vertical-align:middle;"
| style="height:20px; width:270px; text-align:center;" | '''Naming Customs:''']] .. naming ..
| style="height:20px; width:270px; text-align:center;" | '''Naming Customs:''' ]] .. naming ..
 
[[.
[[
|- style="vertical-align:middle;"
|- style="vertical-align:middle;"
| style="height:20px; width:270px; text-align:center;" | '''Languages:''']] .. language ..
| style="height:20px; width:270px; text-align:center;" | '''Languages:''' ]] .. language ..
 
[[.
[[
|- style="vertical-align:middle;"
|- style="vertical-align:middle;"
| style="height:20px; width:270px; text-align:center;" | '''Subraces:''']] .. subraces ..
| style="height:20px; width:270px; text-align:center;" | '''Subraces:'''
 
|-
[[
| style="width:270px;" |
|}
TBA.
]]
|}]] )


print(box)
end
end


return p
return p

Revision as of 23:37, 25 August 2015

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
	
print( [[{| 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"|
\[\[File:]] .. img .. [[|200px|center\]\]
|}
|- 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