The wiki is lacking in content. You can help by creating a new article. See the to do list for more ways you can help.

Difference between revisions of "Template:Infobox Enemy"

From Final Fantasy Wiki
Jump to navigationJump to search
(color switch code)
(upd)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="infobox" style="width:300px"
{| class="infobox" style="width:300px"
|- style="background:{{#if:{{{color|}}}|{{{{{color}}}darkcolor}}|{{{{{color|enemy}}}darkcolor}}}}"
|- style="background:{{#if:{{{color|}}}|{{{{{color}}}darkcolor}}|{{{{{color|enemy}}}darkcolor}}}}"
!colspan="2" style="color:#FFF"|{{{name|{{PAGENAME}}}}}
!colspan="2" style="color:{{{txtcolor|#FFF}}}"|{{{name|{{PAGENAME}}}}}
|-
|-
|colspan="2" style="text-align:center"|{{{image|}}}
|colspan="2" style="text-align:center"|{{{image|}}}
Line 7: Line 7:
|colspan="2" style="text-align:center; background:{{#if:{{{color|}}}|{{{{{color}}}color}}|{{{{{color|enemy}}}color}}}}"|{{{jname}}}<br>''{{{romaji}}}''
|colspan="2" style="text-align:center; background:{{#if:{{{color|}}}|{{{{{color}}}color}}|{{{{{color|enemy}}}color}}}}"|{{{jname}}}<br>''{{{romaji}}}''
|-
|-
{{#if: {{{firstappear|}}} | {{!}}-style="background:{{#if:{{{color|}}}|{{{{{color}}}color}}|{{{{{color|enemy}}}color}}}}"
{{#if: {{{first_appear|}}} | {{!}}-
{{!}} '''First appearance'''
{{!}}style="background:{{#if:{{{color|}}}|{{{{{color}}}color}}|{{{{{color|enemy}}}color}}}}"{{!}} '''First appearance'''
{{!}} style="padding:2px" {{!}} {{{firstappear}}} | {{!}}- }}
{{!}} style="padding:2px" {{!}} {{{first_appear}}} | {{!}}- }}
{{#if: {{{species|}}} | {{!}}-style="background:{{#if:{{{color|}}}|{{{{{color}}}color}}|{{{{{color|enemy}}}color}}}}"
{{#if: {{{species|}}} | {{!}}-
{{!}} '''Species'''
{{!}}style="background:{{#if:{{{color|}}}|{{{{{color}}}color}}|{{{{{color|enemy}}}color}}}}"{{!}} '''Species'''
{{!}} style="padding:2px" {{!}} {{{species}}} | {{!}}- }}
{{!}} style="padding:2px" {{!}} {{{species}}} | {{!}}- }}
{{#if: {{{other_names|}}} | {{!}}-style="background:{{#if:{{{color|}}}|{{{{{color}}}color}}|{{{{{color|enemy}}}color}}}}"
{{#if: {{{other_names|}}} | {{!}}-
{{!}} '''Other names'''
{{!}}style="background:{{#if:{{{color|}}}|{{{{{color}}}color}}|{{{{{color|enemy}}}color}}}}"{{!}} '''Other names'''
{{!}} style="padding:2px" {{!}} {{{other_names}}} | {{!}}- }}
{{!}} style="padding:2px" {{!}} {{{other_names}}} | {{!}}- }}
{{#if: {{{related|}}} |
{{#if: {{{related|}}} |
Line 32: Line 32:
|jname=
|jname=
|romaji=
|romaji=
|firstappear=
|first_appear=
|species=
|species=
|other_names=
|other_names=
|related=
|related=
}}
}}
</pre>
These two parameters affect the color of the template:
<pre>
|color= // enter a word or game abbreviation that has an associated dark and light color template, e.g. "FF6"
|txtcolor = // used to change the text color of the header.
</pre>
</pre>


[[Category:Infoboxes|Enemy]]
[[Category:Infoboxes|Enemy]]
</noinclude>
</noinclude>

Latest revision as of 12:40, October 28, 2021

Infobox Enemy
{{{jname}}}
{{{romaji}}}
{{Infobox Enemy
|name=
|image=
|jname=
|romaji=
|first_appear=
|species=
|other_names=
|related=
}}

These two parameters affect the color of the template:

|color= // enter a word or game abbreviation that has an associated dark and light color template, e.g. "FF6"
|txtcolor = // used to change the text color of the header.