Difference between revisions of "Template:Charbox"
ADVERTISEMENT
From Diablo Wiki
m |
m |
||
| (7 intermediate revisions by 2 users not shown) | |||
| Line 15: | Line 15: | ||
|location= Unknown | |location= Unknown | ||
<!--|categories= --> | <!--|categories= --> | ||
| + | |catexclude= Yes | ||
}} | }} | ||
<div style="clear:both;"></div> | <div style="clear:both;"></div> | ||
</noinclude><includeonly><!-- | </noinclude><includeonly><!-- | ||
| − | --><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;"><!-- | + | --><table cellpadding="2" width="250px" align="right" style="border-collapse: collapse; float: right; border: none; background: #2D0606; clear:left; margin-top: 5px; margin-right: 0px; margin-bottom: 5px; margin-left: 10px; line-height: 10px; font-size: 10px;"><!-- |
--> <tr><!-- | --> <tr><!-- | ||
--> <th colspan="2" style="text-align: center; line-height: 12px; font-size: 14px;"><!-- | --> <th colspan="2" style="text-align: center; line-height: 12px; font-size: 14px;"><!-- | ||
| Line 44: | Line 45: | ||
--> <td width="65%">{{{gender|Unspecified}}}</td><!-- | --> <td width="65%">{{{gender|Unspecified}}}</td><!-- | ||
--> </tr><!-- | --> </tr><!-- | ||
| + | --> {{#if: {{{race|}}} |<!-- | ||
--> <tr><!-- | --> <tr><!-- | ||
--> <td >Race:</td><!-- | --> <td >Race:</td><!-- | ||
| − | --> <td >[[{{{race| | + | --> <td >[[{{{race|}}}]]</td><!-- |
| − | --> </tr><!-- | + | --> </tr> }} <!-- |
--> <tr><!-- | --> <tr><!-- | ||
--> <td >Status:</td><!-- | --> <td >Status:</td><!-- | ||
| Line 62: | Line 64: | ||
--> <td >{{{affiliation|Unknown}}}</td><!-- | --> <td >{{{affiliation|Unknown}}}</td><!-- | ||
--> </tr> }}<!-- | --> </tr> }}<!-- | ||
| + | --> {{#if: {{{friends|}}} |<!-- | ||
--> <tr><!-- | --> <tr><!-- | ||
--> <td >Friends:</td><!-- | --> <td >Friends:</td><!-- | ||
--> <td >{{{friends|None known}}}</td><!-- | --> <td >{{{friends|None known}}}</td><!-- | ||
| − | --> </tr><!-- | + | --> </tr> }}<!-- |
| + | --> {{#if: {{{foes|}}} |<!-- | ||
--> <tr><!-- | --> <tr><!-- | ||
--> <td >Foes:</td><!-- | --> <td >Foes:</td><!-- | ||
| − | --> <td >{{{foes|None known}}}</td><!-- | + | --> <td >{{{foes|None known}}} }}</td><!-- |
--> </tr><!-- | --> </tr><!-- | ||
| + | --> {{#if: {{{location|}}} |<!-- | ||
--> <tr><!-- | --> <tr><!-- | ||
--> <td >Location:</td><!-- | --> <td >Location:</td><!-- | ||
--> <td >{{{location|Unknown}}}</td><!-- | --> <td >{{{location|Unknown}}}</td><!-- | ||
| − | --> </tr><!-- | + | --> </tr> }}<!-- |
| + | --> {{#if: {{{role|}}} |<!-- | ||
--> <tr><!-- | --> <tr><!-- | ||
--> <td >Role:</td><!-- | --> <td >Role:</td><!-- | ||
--> <td >{{{role|Non-specific}}}</td><!-- | --> <td >{{{role|Non-specific}}}</td><!-- | ||
| − | --> </tr><!-- | + | --> </tr> }}<!-- |
--></table><!-- | --></table><!-- | ||
| − | -->{{#if: {{{catexclude|}}} ||<!-- | + | -->{{#if: {{{catexclude|}}} | |<!-- |
| − | --> {{{categories|}}} | + | --> {{{categories|}}}<!-- |
| − | --> {{#if: {{{chartype|}}} | [[Category:{{#switch: {{{chartype| | + | --><!-- |
| + | --> {{#if: {{#switch: {{{chartype|}}} | ||
| + | |main = Main characters | ||
| + | |Main = Main characters }} <!-- (END of check switch) | ||
| + | --> | [[Category:{{#switch: {{{chartype|}}} | ||
|main = Main characters | |main = Main characters | ||
| − | |Main = Main characters }}]]<!-- (END of switch | + | |Main = Main characters }}]]<!-- (END of category switch) |
| − | --> }}<!-- (END of | + | --> }}<!-- (END of main #if) |
| + | --><!-- | ||
| + | --> {{#if: {{{race|}}} | [[Category:{{{race|}}} characters]] }}<!-- | ||
| + | --><!-- | ||
| + | --> {{#if: {{{race|}}} | [[Category:{{#switch: {{{race|}}} | ||
| + | |Angel = Angels | ||
| + | |angel = Angels | ||
| + | |Demon = Demons | ||
| + | |demon = Demons | ||
| + | |Human = Humans | ||
| + | |human = Humans | ||
| + | }}]]<!-- (END of race category switch)<!-- | ||
| + | --> }}<!-- (END of race #if) | ||
| + | --><!-- | ||
| + | --> [[Category:Characters]]<!-- | ||
-->}}<!-- (END of catexclude)</includeonly><noinclude> | -->}}<!-- (END of catexclude)</includeonly><noinclude> | ||
| Line 90: | Line 114: | ||
[[Category:Templates]][[Category:Infoboxes]] | [[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 '''NO LONGER''' used with the charbox for [[main character]]s and other (normal) characters: |
| − | * [http://www.diablowiki.net/Template:Charbox_main&action=edit Edit Template:Charbox_main] | + | * <s>[http://www.diablowiki.net/Template:Charbox_main&action=edit Edit Template:Charbox_main]</s> |
| − | * [http://www.diablowiki.net/Template:Charbox_main&action=edit Edit Template:Charbox_normal] | + | * <s>[http://www.diablowiki.net/Template:Charbox_main&action=edit Edit Template:Charbox_normal]</s> |
| − | They are linked in through the "chartype" attribute of the template. It currently also holds the Title, which must be used. | + | <s>They are linked in through the "chartype" attribute of the template. It currently also holds the Title, which must be used.</s> |
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. | 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. | ||
| Line 111: | Line 135: | ||
|foes= Known foes listed with <nowiki><br></nowiki>. Or: "None Known". | |foes= Known foes listed with <nowiki><br></nowiki>. Or: "None Known". | ||
|location= Where the character is now. Or: "Unknown". | |location= Where the character is now. Or: "Unknown". | ||
| + | |role= Can't remember why this was added! | ||
|categories= Optional entry for any categories you might want to put character in. | |categories= Optional entry for any categories you might want to put character in. | ||
| + | |catexclude= If added, no categories are added. | ||
<nowiki>}}</nowiki> | <nowiki>}}</nowiki> | ||
Latest revision as of 02:19, 2 November 2013
| Diablo Character [e] | |
|---|---|
| Example The Buggerer | |
| 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 NO LONGER 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".
|role= Can't remember why this was added!
|categories= Optional entry for any categories you might want to put character in.
|catexclude= If added, no categories are added.
}}
{{Charbox
|portrait=
|portrait-width=
|name=
|chartype=
|title=
|gender=
|race=
|status=
|occupation=
|affiliation=
|friends=
|foes=
|location=
|categories=
}}