Difference between revisions of "Template:Infobox Character"

From Johnisdead Wiki
Jump to navigation Jump to search
(Created page with "<div class="infobox"> <div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}| <div class="infobox-image">[[File:{{{image}}}|300px]]</div>}} <table>{{#if:{...")
 
 
(49 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
<noinclude>{{Infobox Character
 +
|title = Name
 +
|image = Wikimainimg.png
 +
|caption = Caption
 +
|name = Name
 +
|alias = Alt Name<br />Alt Name
 +
|affiliation = Group<br />Group (Former)
 +
|gender = Gender
 +
|status = Status
 +
|relations = Character (Relation)<br />Character (Relation)<br />Character (Relation)
 +
}}
 +
</noinclude><noinclude>Copy-paste the following to use this template.
 +
<ul>
 +
<li>
 +
Replace the capitalized words with the information you wish to present.
 +
</li>
 +
<li>
 +
Type <nowiki><br /></nowiki> to break text into another line. Example: <i><nowiki>|alias = Name<br />Name<br />Name</nowiki></i>
 +
</li>
 +
</ul><br />
 +
 +
If the Infobox has only one image:
 +
<div class="cheatSheet" style="width: 50%;"><pre>
 +
{{Infobox Character
 +
|title = TEXT
 +
|image = FILE.png
 +
|caption = TEXT
 +
|name = TEXT
 +
|alias = TEXT
 +
|affiliation = TEXT
 +
|gender = TEXT
 +
|status = TEXT
 +
|relations = TEXT
 +
}}
 +
</pre></div>
 +
If the Infobox has multiple images: (Extend the "tabber" section as needed for more images)
 +
<div class="cheatSheet" style="width: 50%;"><pre>
 +
{{Infobox Character
 +
|title = TEXT
 +
|imagetab = <tabber>TAB_TITLE=[[File:FILE_NAME.jpg]]<br>CAPTION_TEXT|-|TAB_TITLE=[[File:FILE_NAME.jpg]]<br>CAPTION_TEXT</tabber>
 +
|name = TEXT
 +
|alias = TEXT
 +
|affiliation = TEXT
 +
|gender = TEXT
 +
|status = TEXT
 +
|relations = TEXT
 +
}}
 +
</pre></div>
 +
</noinclude>
 
<div class="infobox">
 
<div class="infobox">
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
+
<div class="infobox-title">
<div class="infobox-image">[[File:{{{image}}}|300px]]</div>}}
+
{{{title|{{PAGENAME}}}}}
<table>{{#if:{{{param1|}}}|<tr>
+
</div>
     <th>Parameter 1</th>
+
{{#if:{{{imagetab|}}}|
     <td>{{{param1}}}</td>
+
<div class="infobox-image">{{{imagetab}}}
</tr>}}{{#if:{{{param2|}}}|<tr>
+
</div>}}
     <th>Parameter 2</th>
+
{{#if:{{{image|}}}|
     <td>{{{param2}}}</td>
+
<div class="infobox-image">[[File:{{{image}}}]]
</tr>}}{{#if:{{{param3|}}}|<tr>
+
{{#if:{{{caption|}}}|<p>{{{caption}}}</p>}}
     <th>Parameter 3</th>
+
</div>}}
     <td>{{{param3}}}</td>
+
<table>
</tr>}}{{#if:{{{param4|}}}|<tr>
+
{{#if:{{{name|}}}|<tr>
     <th>Parameter 4</th>
+
    <th>Name</th>
     <td>{{{param4}}}</td>
+
    <td>{{{name}}}</td>
</tr>}}{{#if:{{{param5|}}}|<tr>
+
</tr>}}{{#if:{{{alias|}}}|<tr>
     <th>Parameter 5</th>
+
     <th>Alias</th>
     <td>{{{param5}}}</td>
+
     <td>{{{alias}}}</td>
</tr>}}</table>
+
</tr>}}{{#if:{{{affiliation|}}}|<tr>
 +
     <th>Affiliation</th>
 +
     <td>{{{affiliation}}}</td>
 +
</tr>}}{{#if:{{{gender|}}}|<tr>
 +
     <th>Gender</th>
 +
     <td>{{{gender}}}</td>
 +
</tr>}}{{#if:{{{status|}}}|<tr>
 +
     <th>Status</th>
 +
     <td>{{{status}}}</td>
 +
</tr>}}{{#if:{{{relations|}}}|<tr style="border-bottom: none;">
 +
     <th>Relations</th>
 +
     <td>{{{relations}}}</td>
 +
</tr>
 +
}}
 +
</table>
 
</div>
 
</div>

Latest revision as of 13:26, 9 May 2023

Name

Wikimainimg.png

Caption

Name Name
Alias Alt Name
Alt Name
Affiliation Group
Group (Former)
Gender Gender
Status Status
Relations Character (Relation)
Character (Relation)
Character (Relation)

Copy-paste the following to use this template.

  • Replace the capitalized words with the information you wish to present.
  • Type <br /> to break text into another line. Example: |alias = Name<br />Name<br />Name


If the Infobox has only one image:

{{Infobox Character
|title = TEXT
|image = FILE.png
|caption = TEXT
|name = TEXT
|alias = TEXT
|affiliation = TEXT
|gender = TEXT
|status = TEXT
|relations = TEXT
}}

If the Infobox has multiple images: (Extend the "tabber" section as needed for more images)

{{Infobox Character
|title = TEXT
|imagetab = <tabber>TAB_TITLE=[[File:FILE_NAME.jpg]]<br>CAPTION_TEXT|-|TAB_TITLE=[[File:FILE_NAME.jpg]]<br>CAPTION_TEXT</tabber>
|name = TEXT
|alias = TEXT
|affiliation = TEXT
|gender = TEXT
|status = TEXT
|relations = TEXT
}}

Infobox Character