• 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:FurnitureInfo"

From Kancolle Wiki
Jump to navigation Jump to search
>Fujihita
(Set overflow property to improve preview)
>Fujihita
(Add special alignment to floor type's preview image)
Line 2: Line 2:
 
{| style="border: 1px solid darkgray" cellpadding="5px" width="100%"
 
{| style="border: 1px solid darkgray" cellpadding="5px" width="100%"
 
|-
 
|-
| style="min-width:250px; border: solid 3px #{{#switch: {{{type|}}}| wallpaper = cc9966| floor = cc9999 | desk = 9999cc | window = 99cccc | decoration = 66cc99 | furniture = cccc99| d3d3d3}};" rowspan="3"| <div style="overflow:hidden;width:250px;"> {{#if:{{{image|}}}|[[{{{image|}}}{{!}}center{{#if:{{{description|}}}|{{!}}{{{description|}}}| }}]]</div>| }}
+
| style="min-width:250px; border: solid 3px #{{#switch: {{{type|}}}| wallpaper = cc9966| floor = cc9999 | desk = 9999cc | window = 99cccc | decoration = 66cc99 | furniture = cccc99| d3d3d3}};" rowspan="3"| <div style="overflow:hidden;width:250px;">{{#ifeq:{{{type|}}}|floor|<div style="position:relative;right:100%;">|}}{{#if:{{{image|}}}|[[{{{image|}}}{{!}}center{{#if:{{{description|}}}|{{!}}{{{description|}}}| }}]]</div>{{#ifeq:{{{type|}}}|floor|</div>|}}| }}
 
| style="border: solid 0px;background-color:#{{#switch: {{{type|}}}| wallpaper = cc9966| floor = cc9999 | desk = 9999cc | window = 99cccc | decoration = 66cc99 | furniture = cccc99 | d3d3d3}};" width="100%" align="center" colspan="3"| '''{{{name|Name?}}}'''  
 
| style="border: solid 0px;background-color:#{{#switch: {{{type|}}}| wallpaper = cc9966| floor = cc9999 | desk = 9999cc | window = 99cccc | decoration = 66cc99 | furniture = cccc99 | d3d3d3}};" width="100%" align="center" colspan="3"| '''{{{name|Name?}}}'''  
 
{{{japanesename|}}}
 
{{{japanesename|}}}
Line 26: Line 26:
 
*default = lightgray
 
*default = lightgray
  
 +
'''Note:'''
 +
"type=floor" has different preview alignment from other types, the image is shifted relatively to the left half the width of the image. This is done to center viewing window on the image.
  
 
<pre>
 
<pre>

Revision as of 09:49, 11 December 2014

Name?
Furniture coin.pngFree


Full sample, all fields are filled.

type -> color

  • wallpaper = #cc9966
  • floor = #cc9999
  • desk = #9999cc
  • window = #99cccc
  • decoration = #66cc99
  • furniture = #cccc99
  • default = lightgray

Note: "type=floor" has different preview alignment from other types, the image is shifted relatively to the left half the width of the image. This is done to center viewing window on the image.

{{FurnitureInfo
| name=Thanks to 2,000,000" scroll
| japanesename=「200万の感謝」掛け軸
| type=decoration
| image=File:Furniture-204.jpg
| description=Hover over this for item description, Japanese description if possible
| coin=15000
| fairy=1
| BGM=Template BGM
| feature1=Template Feature 1
| feature2=Template Feature 2
| feature2=Template Feature 3
| releasenote=Available since 1/1/2014
Reward for those who logged in during 1/1~1/3/2014
}}


Hover over this for item description, Japanese description if possible
Thanks to 2,000,000" scroll

「200万の感謝」掛け軸

Furniture coin.png15000 Item Icon Furniture Fairy.png1 ★Template BGM
★Template Feature 1
★Template Feature 2
★Template Feature 3
Available since 1/1/2014

Reward for those who logged in during 1/1~1/3/2014


Simplified sample, stripped down to essential fields only

{{FurnitureInfo
| name=Final boss
| japanesename=麻雲 
| type=furniture
| image=File:NPC_FinalBoss.png
| coin=200000
}}


NPC Fairy Tutorial A 1.png
Final boss

麻雲

Furniture coin.png200000 Item Icon Furniture Fairy.png999