Template:Monster Infobox: Difference between revisions
From Dragon Quest Wiki
FlyingRagnar (talk | contribs) No edit summary |
FlyingRagnar (talk | contribs) (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}}} }} | ||
{{#if: {{{kanji|}}} | {{!}} label2 = Kanji {{!}} data2 = {{{kanji}}} }} | |||
| label2 = Kanji | {{#if: {{{romanji|}}} | {{!}} label3 = Romanji {{!}} data3 = {{{romanji}}} | ||
{{#if: {{{firstappear|}}} | {{!}} label4 = First Appearance {{!}} data4 = {{{firstappear}}} | |||
| label3 = Romanji | |||
| label4 = First Appearance | |||
}}</onlyinclude></includeonly><noinclude> | }}</onlyinclude></includeonly><noinclude> | ||
{{{{PAGENAME}}/doc}} | {{{{PAGENAME}}/doc}} | ||
[[Category:Enemy templates|{{PAGENAME}}]] | [[Category:Enemy templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> |
Revision as of 11: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 = | caption = You must die! Template:If:
{{#if: | | label3 = Romanji | data3 = {{{romanji}}}
| label4 = First Appearance | data4 = Dragon Quest L
Wiki markup
{{Monster Infobox |title=Ninja Enemy 1 |image=[[Image:Rhapthorne2 DQVIII PS2.png]] |caption=You must die! |jap=にほんご <!-- Optional: Japanese name --> |romaji=Nihongo <!-- Optional: Japanese name in latin letters --> |firstappear=Dragon Quest L |old=Auld Fāh<!-- Older names, if any --> }}
Compatibility parameters
- "jap=" can be "kanji=".
- "romaji=" can be "romanji=".
Second names are old ones (of wrong/inaccurate terminology), but retained for compatibility.