From Dark and Darker Wiki
|  (Automated to grab data from Template:Class Data.) | m (Added space to margins.) | ||
| Line 2: | Line 2: | ||
| <div class="itembox" style="width:90%;max-width:400px;{{#ifeq:{{{nofloat|}}}|1||float:right;}}"> | <div class="itembox" style="width:90%;max-width:400px;{{#ifeq:{{{nofloat|}}}|1||float:right;}}"> | ||
| 	<div class="itemboxheader"> | 	<div class="itemboxheader"> | ||
| 		<div style="float:left"> | 		<div style="float:left;margin-left:15px;margin-top:15px;"> | ||
| 			{{Iconbox|{{{1}}}|caption=no|size=96px|nolink=1}} | 			{{Iconbox|{{{1}}}|caption=no|size=96px|nolink=1}} | ||
| 		</div> | 		</div> | ||
| 		<div style="width:60%;max-width:280px;margin-left: | 		<div style="width:60%;max-width:280px;margin-left:20px;height:100px;justify-content:space-between!important;display:flex;flex-direction: column!important;float:left;margin-top:0px;"> | ||
| 			<div class="bold" style="margin-top: | 			<div class="bold" style="margin-top:15px!important;font-size:22px;">{{{1}}}</div> | ||
|              <div style="width:100%;justify-content:space-between!important;display:flex;flex-direction: row!important;font-size:17px;"> |              <div style="width:100%;justify-content:space-between!important;display:flex;flex-direction: row!important;font-size:17px;"> | ||
| 				<div style="color:rgb(221,149,42);">{{{2}}}</div> | 				<div style="color:rgb(221,149,42);">{{{2}}}</div> | ||
| Line 15: | Line 15: | ||
| 	<div class="stats-container" style="clear: both;"> | 	<div class="stats-container" style="clear: both;"> | ||
| 		<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Strength</div> | 		<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Strength</div> | ||
| 		<div style="float: right;width: 20%;color:rgb(132,176,5);text-align-last: right;font-weight:bold;">{{#if:true|{{Class Data|{{{1}}}|attributes|strength}}}}</div> | 		<div style="float: right;width: 20%;color:rgb(132,176,5);text-align-last: right;font-weight:bold;margin-right:20px;">{{#if:true|{{Class Data|{{{1}}}|attributes|strength}}}}</div> | ||
| 	</div> | 	</div> | ||
| 	<div class="stats-container" style="clear: both;"> | 	<div class="stats-container" style="clear: both;"> | ||
| 		<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Vigor</div> | 		<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Vigor</div> | ||
| 		<div style="float: right;width: 20%;color:rgb(132,176,5);text-align-last: right;font-weight:bold;">{{#if:true|{{Class Data|{{{1}}}|attributes|vigor}}}}</div> | 		<div style="float: right;width: 20%;color:rgb(132,176,5);text-align-last: right;font-weight:bold;margin-right:20px;">{{#if:true|{{Class Data|{{{1}}}|attributes|vigor}}}}</div> | ||
| 	</div> | 	</div> | ||
| 	<div class="stats-container" style="clear: both;"> | 	<div class="stats-container" style="clear: both;"> | ||
| 		<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Agility</div> | 		<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Agility</div> | ||
| 		<div style="float: right;width: 20%;color:rgb(132,176,5);text-align-last: right;font-weight:bold;">{{#if:true|{{Class Data|{{{1}}}|attributes|agility}}}}</div> | 		<div style="float: right;width: 20%;color:rgb(132,176,5);text-align-last: right;font-weight:bold;margin-right:20px;">{{#if:true|{{Class Data|{{{1}}}|attributes|agility}}}}</div> | ||
| 	</div> | 	</div> | ||
| 	<div class="stats-container" style="clear: both;"> | 	<div class="stats-container" style="clear: both;"> | ||
| 		<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Dexterity</div> | 		<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Dexterity</div> | ||
| 		<div style="float: right;width: 20%;color:rgb(132,176,5);text-align-last: right;font-weight:bold;">{{#if:true|{{Class Data|{{{1}}}|attributes|dexterity}}}}</div> | 		<div style="float: right;width: 20%;color:rgb(132,176,5);text-align-last: right;font-weight:bold;margin-right:20px;">{{#if:true|{{Class Data|{{{1}}}|attributes|dexterity}}}}</div> | ||
| 	</div> | 	</div> | ||
| 	<div class="stats-container" style="clear: both;"> | 	<div class="stats-container" style="clear: both;"> | ||
| 		<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Will</div> | 		<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Will</div> | ||
| 		<div style="float: right;width: 20%;color:rgb(132,176,5);text-align-last: right;font-weight:bold;">{{#if:true|{{Class Data|{{{1}}}|attributes|will}}}}</div> | 		<div style="float: right;width: 20%;color:rgb(132,176,5);text-align-last: right;font-weight:bold;margin-right:20px;">{{#if:true|{{Class Data|{{{1}}}|attributes|will}}}}</div> | ||
| 	</div> | 	</div> | ||
| 	<div class="stats-container" style="clear: both;"> | 	<div class="stats-container" style="clear: both;"> | ||
| 		<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Knowledge</div> | 		<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Knowledge</div> | ||
| 		<div style="float: right;width: 20%;color:rgb(132,176,5);text-align-last: right;font-weight:bold;">{{#vardefineecho:knowledge|{{Class Data|{{{1}}}|attributes|knowledge}}}}</div> | 		<div style="float: right;width: 20%;color:rgb(132,176,5);text-align-last: right;font-weight:bold;margin-right:20px;">{{#vardefineecho:knowledge|{{Class Data|{{{1}}}|attributes|knowledge}}}}</div> | ||
| 	</div>	<div class="stats-container" style="clear: both;"> | 	</div>	<div class="stats-container" style="clear: both;"> | ||
| 		<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Resourcefulness</div> | 		<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Resourcefulness</div> | ||
| 		<div style="float: right;width: 20%;color:rgb(132,176,5);text-align-last: right;font-weight:bold;">{{#if:true|{{Class Data|{{{1}}}|attributes|resourcefulness}}}}</div> | 		<div style="float: right;width: 20%;color:rgb(132,176,5);text-align-last: right;font-weight:bold;margin-right:20px;">{{#if:true|{{Class Data|{{{1}}}|attributes|resourcefulness}}}}</div> | ||
| 	</div> | 	</div> | ||
| Line 45: | Line 45: | ||
| 	<div class="stats-container" style="clear: both;"> | 	<div class="stats-container" style="clear: both;"> | ||
| 		<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Health</div> | 		<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Health</div> | ||
| 		<div style="float: right;width: 20%;text-align-last: right;font-weight:bold;"><!-- | 		<div style="float: right;width: 20%;text-align-last: right;font-weight:bold;margin-right:20px;"><!-- | ||
|              -->{{#vardefine:sum|{{#expr:{{Class Data|{{{1}}}|attributes|strength}}*0.25+{{Class Data|{{{1}}}|attributes|vigor}}*0.75}}}}<!-- |              -->{{#vardefine:sum|{{#expr:{{Class Data|{{{1}}}|attributes|strength}}*0.25+{{Class Data|{{{1}}}|attributes|vigor}}*0.75}}}}<!-- | ||
|              -->{{#ifexpr:{{#var:sum}}<=10|{{#expr:ceil(60+3*{{#var:sum}})}}|{{#expr:ceil(90+2*({{#var:sum}}-10))}}}}<!-- |              -->{{#ifexpr:{{#var:sum}}<=10|{{#expr:ceil(60+3*{{#var:sum}})}}|{{#expr:ceil(90+2*({{#var:sum}}-10))}}}}<!-- | ||
| Line 53: | Line 53: | ||
| 	<div class="stats-container" style="clear: both;"> | 	<div class="stats-container" style="clear: both;"> | ||
| 		<div style="float: left; width: 40%; font-weight:bold; color:rgb(221,149,42);">Memory</div> | 		<div style="float: left; width: 40%; font-weight:bold; color:rgb(221,149,42);">Memory</div> | ||
| 		<div style="float: right;width: 20%;text-align-last: right;font-weight:bold;">{{#ifexpr:{{#var:knowledge}}>6|{{#expr:{{ | 		<div style="float: right;width: 20%;text-align-last: right;font-weight:bold;margin-right:20px;">{{#ifexpr:{{#var:knowledge}}>6|{{#expr:{{#var:knowledge}}-6}}|0}}</div> | ||
| 	</div>| | 	</div>| | ||
| |}} | |}} | ||
| Line 62: | Line 62: | ||
| == Usage == | == Usage == | ||
| This template can be used by entering the following onto a relevant page. Do not use this on your user page. It is reserved for content pages. | This template can be used by entering the following onto a relevant page. Do not use this on your user page. It is reserved for content pages. | ||
| <pre>{{Infobox Class| | <pre>{{Infobox Class|Wizard|'Yer a wizard, Harry!'|yes}} | ||
| </pre> | </pre> | ||
| Results in: | Results in: | ||
| {{Infobox Class| | {{Infobox Class|Wizard|'Yer a wizard, Harry!'|yes}} | ||
Revision as of 01:07, 4 March 2024
Usage
This template can be used by entering the following onto a relevant page. Do not use this on your user page. It is reserved for content pages.
{{Infobox Class|Wizard|'Yer a wizard, Harry!'|yes}}
Results in:

Wizard
            'Yer a wizard, Harry!'
			Strength
		6
	Vigor
		7
	Agility
		15
	Dexterity
		17
	Will
		20
	Knowledge
		25
	Resourcefulness
		15
	
    
Health
		81
	Memory
		19
	
 
						