• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Difference between revisions of "Template:CharacterBox"

From Kancolle Wiki
Jump to navigation Jump to search
 
 
Line 1: Line 1:
 
<div style="float:left;">
 
<div style="float:left;">
{| class="infobox people headerlink" style="width: 210px; text-align: left; font-size: 90%; float: none; clear: left; margin-left: 0; margin-right: 1em;" cellpadding="2"
+
{| class="infobox people headerlink" style="width: {{#if:{{{width|}}}|{{{width|}}}|210px}}; text-align: left; font-size: 90%; float: none; clear: left; margin-left: 0; margin-right: 1em;" cellpadding="2"
 
|-
 
|-
 
! colspan="2" style="color: #ffffff; text-align:center; vertical-align:middle; font-size: small; background-color: #7BA1EC;/*78b3f0;*/ padding-bottom: 3px;" |'''{{{name|{{{1}}}}}}''' {{#if:{{{english-name|}}}|''' / '''{{{english-name}}}}}
 
! colspan="2" style="color: #ffffff; text-align:center; vertical-align:middle; font-size: small; background-color: #7BA1EC;/*78b3f0;*/ padding-bottom: 3px;" |'''{{{name|{{{1}}}}}}''' {{#if:{{{english-name|}}}|''' / '''{{{english-name}}}}}
Line 25: Line 25:
 
| squeezed            =    (Optional: squeezed lines - e.g. for specific cases)
 
| squeezed            =    (Optional: squeezed lines - e.g. for specific cases)
 
| footnotes          =    (Optional: will not show the row if omitted)
 
| footnotes          =    (Optional: will not show the row if omitted)
 +
| width              =    (Optional: width of the entire box (defaults to 210px)
 
}}
 
}}
 
</pre>
 
</pre>
Line 34: Line 35:
 
|description=Zuikaku is an armored aircraft carrier with twintails.
 
|description=Zuikaku is an armored aircraft carrier with twintails.
 
|link=[[Zuikaku]]
 
|link=[[Zuikaku]]
 +
|width=500px
 
}}
 
}}
 
</pre>
 
</pre>
{{CharacterBox|name=Zuikaku|image=Zuikaku_Kai_Ni_A.png|description=Zuikaku is an armored aircraft carrier with twintails.|link=[[Zuikaku]]}}
+
{{CharacterBox|name=Zuikaku|image=Zuikaku_Kai_Ni_A.png|description=Zuikaku is an armored aircraft carrier with twintails.|link=[[Zuikaku]]|width=500px}}
  
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 15:40, 14 November 2023

The following is a list of required or optional parameters for generating a character box

{{CharacterBox|<name>|<image>|<description>
| name                =    (Optional)
| english-name        =    (Optional)
| image               =    (Optional)
| link                =    (Optional: link to point to when clicking on image)
| description         =    (Optional)
| fsize               =    (Optional: font-size - e.g. for specific cases)
| squeezed            =    (Optional: squeezed lines - e.g. for specific cases)
| footnotes           =    (Optional: will not show the row if omitted)
| width               =    (Optional: width of the entire box (defaults to 210px)
}}

Example:

{{CharacterBox
|name=Zuikaku
|image=Zuikaku_Kai_Ni_A.png
|description=Zuikaku is an armored aircraft carrier with twintails.
|link=[[Zuikaku]]
|width=500px
}}