Difference between revisions of "Template:Charbox"

ADVERTISEMENT
From Diablo Wiki
Jump to: navigation, search
m
m
Line 18: Line 18:
  
 
<div style="clear:both;"></div>
 
<div style="clear:both;"></div>
</noinclude><includeonly>
+
</noinclude><includeonly><!--
{|cellpadding="2" width="250px" align="right" style="border-collapse: collapse; border: none; background: #2D0606; clear:left; margin-top: 5px; margin-right: 0px; margin-bottom: 5px; margin-left: 10px; line-height: 10px; font-size: 10px;"
+
--><table cellpadding="2" width="250px" align="right" style="border-collapse: collapse; border: none; background: #2D0606; clear:left; margin-top: 5px; margin-right: 0px; margin-bottom: 5px; margin-left: 10px; line-height: 10px; font-size: 10px;"><!--
!colspan="2" style="text-align: center; line-height: 12px; font-size: 14px;"|'''[[Character|Diablo Character]]''' {{editlink|Template:Charbox|e|www|A|A}}
+
-->  <tr><!--
|-
+
-->    <th colspan="2" style="text-align: center; line-height: 12px; font-size: 14px;"><!--
|colspan="2" style="text-align: center;"|[[File:{{{portrait|Diablo_III_Logo.jpg}}}|{{{portrait-width|200px}}}]]
+
-->    '''[[Character|Diablo Character]]''' {{editlink|Template:Charbox|e|www|A|A}}<!--
|-
+
-->    </th><!--
!colspan="2" style="text-align: center; line-height: 14px; font-size: 16px;"| '''''{{{name|{{PAGENAME}}}}}'''''
+
-->  </tr><!--
{{Charbox_{{{chartype|normal}}}|title={{{title|Mr/Mrs}}}}}
+
-->  <tr><!--
|-
+
-->    <td colspan="2" style="text-align: center;">[[File:{{{portrait|Diablo_III_Logo.jpg}}}|{{{portrait-width|200px}}}]]<!--
|width="35%"|Gender:
+
-->    </td><!--
|width="65%"|{{{gender|Unknown}}}
+
-->  </tr><!--
|-
+
-->  <tr><!--
|Race:
+
-->    <th colspan="2" style="text-align: center; line-height: 14px; font-size: 16px;"><!--
|[[{{{race|Unknown}}}]]
+
-->      '''''{{{name|{{PAGENAME}}}}}'''''<!--
|-
+
-->      {{#if: {{{title|}}} | <span style="line-height:6px;"><br></span><span style="font-size:12px;font-weight:normal;font-style:italic;">{{{title|}}}</span> }}<!--
|Status:
+
-->      {{#if: {{{chartype|}}} | {{#switch: {{{chartype|}}}
|{{{status|Unknown}}}
+
  |main = <br>[[Image:Bosshead.png]]<span style="font-size:18px;">&nbsp;[[Main character|Main Character]]&nbsp;</span>[[Image:Bosshead.png]]
|-
+
  |Main = <br>[[Image:Bosshead.png]]<span style="font-size:18px;">&nbsp;[[Main character|Main Character]]&nbsp;</span>[[Image:Bosshead.png]]
|Occupation:
+
}}<!--
|{{{occupation|Unknown}}}
+
-->    </th><!--
|-
+
-->  </tr><!--
|Affilliation:
+
-->  <tr><!--
|{{{affiliation|Unknown}}}
+
-->    <td width="35%">Gender:</td><!--
|-
+
-->    <td width="65%">{{{gender|Unspecified}}}</td><!--
|Friends:
+
-->  </tr><!--
|{{{friends|None known}}}
+
-->  <tr><!--
|-
+
-->    <td >Race:</td><!--
|Foes:
+
-->    <td >[[{{{race|Unspecified}}}]]</td><!--
|{{{foes|None known}}}
+
-->  </tr><!--
|-
+
-->  <tr><!--
|Location:
+
-->    <td >Status:</td><!--
|{{{location|Unknown}}}
+
-->    <td >{{{status|Unknown}}}</td><!--
|-
+
-->  </tr><!--
|Role:
+
--> {{#if: {{{occupation|}}} |<!--
|{{{role|Non-specific}}}
+
-->  <tr><!--
|}{{{categories|}}}[[Category:Characters]]</includeonly>
+
-->    <td >Occupation:</td><!--
<noinclude>[[Category:Templates]][[Category:Infoboxes]]
+
-->    <td >{{{occupation|Unknown}}}</td><!--
 +
-->  </tr> }}<!--
 +
--> {{#if: {{{affiliation|}}} |<!--
 +
-->  <tr><!--
 +
-->    <td >Affilliation:</td><!--
 +
-->    <td >{{{affiliation|Unknown}}}</td><!--
 +
-->  </tr> }}<!--
 +
-->  <tr><!--
 +
-->    <td >Friends:</td><!--
 +
-->    <td >{{{friends|None known}}}</td><!--
 +
-->  </tr><!--
 +
-->  <tr><!--
 +
-->    <td >Foes:</td><!--
 +
-->    <td >{{{foes|None known}}}</td><!--
 +
-->  </tr><!--
 +
-->  <tr><!--
 +
-->    <td >Location:</td><!--
 +
-->    <td >{{{location|Unknown}}}</td><!--
 +
-->  </tr><!--
 +
-->  <tr><!--
 +
-->    <td >Role:</td><!--
 +
-->    <td >{{{role|Non-specific}}}</td><!--
 +
-->  </tr><!--
 +
--></table><!--
 +
-->{{#if: {{{catexclude|}}} ||<!--
 +
-->  {{{categories|}}}[[Category:Characters]]<!--
 +
-->  {{#if: {{{chartype|}}} | [[Category:{{#switch: {{{chartype|General Item}}}
 +
  |main = Main characters
 +
  |Main = Main characters }}]]<!-- (END of switch chartype)
 +
-->  }}<!-- (END of chartype)<!--
 +
-->}}<!-- (END of catexclude)</includeonly><noinclude>
 +
 
 +
 
 +
[[Category:Templates]][[Category:Infoboxes]]
  
 
Use this template on [[character]] pages. If a character page also is a [[monster]] or [[NPC]] page, consider separating them. The following two templates are used with the charbox for [[main character]]s and other (normal) characters:
 
Use this template on [[character]] pages. If a character page also is a [[monster]] or [[NPC]] page, consider separating them. The following two templates are used with the charbox for [[main character]]s and other (normal) characters:

Revision as of 21:49, 28 May 2010

Diablo Character [e]
Diablo III Logo.jpg
Example
The Buggerer
Bosshead.png Main Character Bosshead.png
Gender: Male
Race: Human
Status: Alive
Occupation: Boss
Affilliation: Holy Knights of Westmarch
Friends: None Known
Foes: None Known
Location: Unknown

Use this template on character pages. If a character page also is a monster or NPC page, consider separating them. The following two templates are used with the charbox for main characters and other (normal) characters:

They are linked in through the "chartype" attribute of the template. It currently also holds the Title, which must be used.

This template will also add the article to Category:Characters and/or Category:Main characters, depending on if it's a normal or main character.

{{Charbox
|portrait=        Filename. Automatically set to D3 logo.
|portrait-width=  If different than 200px, set width here.
|name=            If different than article title, set here.
|chartype=        normal or main. Use no capital letters.
|title=           Must be used. If lacking proper title, add Mr, Mrs or Ms. Multiple titles go here.
|gender=          Male, Female, Androgynous or Unknown.
|race=            Human, Human (Undead), Khazra etc.
|status=          Alive, Dead, Undead, Imprisoned, Unknown
|occupation=      (Profession) set to "Unknown" if occupation is not known. Can be same as title.
|affiliation=     What faction(s) character is aligned to.
|friends=         Known friends listed with <br>. Or: "None Known".
|foes=            Known foes listed with <br>. Or: "None Known".
|location=        Where the character is now. Or: "Unknown".
|categories=      Optional entry for any categories you might want to put character in.
}}


{{Charbox
|portrait=        
|portrait-width=  
|name=            
|chartype=        
|title=           
|gender=          
|race=            
|status=          
|occupation=      
|affiliation=     
|friends=         
|foes=            
|location=        
|categories=      
}}