Difference between revisions of "Template:Monster Infobox"

From Dragon Quest Wiki
Jump to navigation Jump to search
(adding if statements)
Line 2: Line 2:
 
| bgcolor = CC5B14
 
| bgcolor = CC5B14
 
| type = Dragon Quest Monster
 
| type = Dragon Quest Monster
| title = {{{title}}}
+
{{#if: {{{title|}}} | {{!}} title = {{{title}}} }}
| image = {{{image}}}
+
{{#if: {{{image|}}} | {{!}} image = {{{image}}} }}
| caption = {{{caption}}}
+
{{#if: {{{caption|}}} | {{!}} caption = {{{caption}}} }}
| label1 = family
+
{{if: {{{family|}}} | {{!}} label1 = family {{!}} data1 = {{{family}}} }}
| data1 = {{{family}}}
+
{{#if: {{{kanji|}}} | {{!}} label2 = Kanji {{!}} data2 = {{{kanji}}} }}
| label2 = Kanji
+
{{#if: {{{romanji|}}} | {{!}} label3 = Romanji {{!}} data3 = {{{romanji}}}
| data2 = {{{kanji}}}
+
{{#if: {{{firstappear|}}} | {{!}} label4 = First Appearance {{!}} data4 = {{{firstappear}}}
| label3 = Romanji
 
| data3 = {{{romanji}}}
 
| label4 = First Appearance
 
| data4 = {{{firstappear}}}
 
 
}}</onlyinclude></includeonly><noinclude>
 
}}</onlyinclude></includeonly><noinclude>
 
{{{{PAGENAME}}/doc}}
 
{{{{PAGENAME}}/doc}}
 
[[Category:Enemy templates|{{PAGENAME}}]]
 
[[Category:Enemy templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Revision as of 10:42, 20 January 2011

Usage

This template is an infobox for monsters/enemy and is to be used on monster articles. This template is designed to give a "cliff notes" version of information about the monster. More detailed information should appear within the article's content using Template:Enemy. This template uses Template:Infobox as a base template.

Sample

{{Infobox | bgcolor = CC5B14 | type = Dragon Quest Monster | title = Ninja Enemy 1 | image = Rhapthorne2 DQVIII PS2.png | caption = You must die! Template:If: | label2 = Kanji | data2 = chingchao {{#if: | | label3 = Romanji | data3 = | label4 = First Appearance | data4 = Dragon Quest IV

Wiki markup

{{Monster Infobox
|title=Ninja Enemy 1
|image=[[Image:Rhapthorne2 DQVIII PS2.png]]
|caption=You must die!
|kanji=chingchao
|romanji=
|firstappear=Dragon Quest IV
}}