• 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
m (Minor edit)
>Fujihita
(Add the experimental slideshow view)
Line 1: Line 1:
 
 
{| style="border: 1px solid darkgray; border-top-left-radius:20px; border-bottom-left-radius:20px;" cellpadding="5px" width="100%"
 
{| style="border: 1px solid darkgray; border-top-left-radius:20px; border-bottom-left-radius:20px;" cellpadding="5px" width="100%"
 
|-
 
|-
| style="width:250px; border-top-left-radius:20px; border-bottom-left-radius:20px; border: solid 3px #{{#switch: {{{type|}}}| wall = cc9966| floor = cc9999 | desk = 9999cc | window = 99cccc | object = 66cc99 | chest = cccc99| d3d3d3}}; background:#" rowspan="3"| <div style="overflow:hidden;width:250px;max-height:250px;">{{#ifeq:{{{type|}}}|floor|<div style="position:relative;right:100%;">|}}{{#if:{{{image|}}}|[[{{{image|}}}{{!}}center{{#if:{{{description|}}}|{{!}}{{{description|}}}|}}]]|}}{{#ifeq:{{{type|}}}|floor|</div>|}}</div>
+
| style="width:250px; border-top-left-radius:20px; border-bottom-left-radius:20px; border: solid 3px #{{#switch: {{{type|}}}| wall = cc9966| floor = cc9999 | desk = 9999cc | window = 99cccc | object = 66cc99 | chest = cccc99| d3d3d3}}; background:#" rowspan="3"| {{#if:{{{slideshow|}}}|<div style="overflow:hidden;width:265px;max-height:200px;border-top-left-radius:20px; border-bottom-left-radius:20px;"><div style="position:relative;bottom:5px;right:5px;"><gallery type="slideshow" widths="267px" crop="true" position="center" hideaddbutton="true">{{{slideshow}}}</gallery></div></div>
 +
|<div style="overflow:hidden;width:265px;max-height:250px;">{{#ifeq:{{{type|}}}|floor|<div style="position:relative;right:100%;">|}}{{#if:{{{image|}}}|[[File:{{{image|}}}{{!}}center{{#if:{{{description|}}}|{{!}}{{{description|}}}|}}]]|}}{{#ifeq:{{{type|}}}|floor|</div>|}}</div>}}
 
| style="border: solid 0px;background-color:#{{#switch: {{{type|}}}| wall = cc9966| floor = cc9999 | desk = 9999cc | window = 99cccc | object = 66cc99 | chest = cccc99 | d3d3d3}};" width="100%" align="center" colspan="3"| '''{{{name|Name?}}}'''  
 
| style="border: solid 0px;background-color:#{{#switch: {{{type|}}}| wall = cc9966| floor = cc9999 | desk = 9999cc | window = 99cccc | object = 66cc99 | chest = cccc99 | d3d3d3}};" width="100%" align="center" colspan="3"| '''{{{name|Name?}}}'''  
 
{{{japanesename|}}}
 
{{{japanesename|}}}
Line 37: Line 37:
 
| type=object
 
| type=object
 
| japanesename=「200万の感謝」掛け軸
 
| japanesename=「200万の感謝」掛け軸
| image=File:Furniture-204.jpg
+
| image=Furniture-204.jpg
 
| description=Hover over this for item description, Japanese description if possible
 
| description=Hover over this for item description, Japanese description if possible
 
| coin=15000
 
| coin=15000
Line 52: Line 52:
 
| type=object
 
| type=object
 
| japanesename=「200万の感謝」掛け軸
 
| japanesename=「200万の感謝」掛け軸
| image=File:Furniture-204.jpg
+
| image=Furniture-204.jpg
 
| description=Hover over this for item description, Japanese description if possible
 
| description=Hover over this for item description, Japanese description if possible
 
| coin=15000
 
| coin=15000
Line 67: Line 67:
 
| type=chest
 
| type=chest
 
| japanesename=麻雲  
 
| japanesename=麻雲  
| image=File:NPC_FinalBoss.png
+
| image=NPC_FinalBoss.png
 
| coin=200000
 
| coin=200000
 
}}
 
}}
Line 77: Line 77:
 
| type=chest
 
| type=chest
 
| japanesename=麻雲  
 
| japanesename=麻雲  
| image=File:NPC_FinalBoss.png
+
| image=NPC_FinalBoss.png
 
| coin=200000
 
| coin=200000
 
| fairy=999
 
| fairy=999
 +
}}
 +
 +
'''Slideshow view (Experimental)'''
 +
 +
Slideshow view is available for items containing multiple images.
 +
There are a few limitations of this mode:
 +
# Maximum height is constrained to 200 pixel
 +
# There's a default light blue backdrop behind the image
 +
# The zoom is faulty on furniture types other than "floor" or "object"
 +
# "description" and "image" fields are disabled
 +
<pre>
 +
{{FurnitureInfo
 +
| name=Snowfield
 +
| type=floor
 +
| japanesename=麻雲
 +
| slideshow=Floor_023_01.png
 +
Floor_023_02.png
 +
Floor_023_03.png
 +
Floor_023_04.png
 +
| coin=2000
 +
| fairy=1
 +
}}
 +
</pre>
 +
 +
{{FurnitureInfo
 +
| name=Snowfield
 +
| type=floor
 +
| japanesename=雪原
 +
| slideshow=Floor_023_01.png
 +
Floor_023_02.png
 +
Floor_023_03.png
 +
Floor_023_04.png
 +
| coin=2000
 +
| fairy=1
 
}}
 
}}
 
</noinclude>
 
</noinclude>

Revision as of 07:12, 26 December 2014

Name?
Furniture coin.pngFree


Full sample, all fields are filled.

type -> color

  • wall = #cc9966
  • floor = #cc9999
  • desk = #9999cc
  • window = #99cccc
  • object = #66cc99
  • chest = #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.

Note 2: The text box containing release note, BGM and feature has a limit height of 200px before overflown texts become hidden.

{{FurnitureInfo
| name=Thanks to 2,000,000" scroll
| type=object
| japanesename=「200万の感謝」掛け軸
| image=Furniture-204.jpg
| description=Hover over this for item description, Japanese description if possible
| coin=15000
| fairy=1
| BGM=Template BGM
| feature=Template Feature, this item has awesome special feature that will blow your mind, or not, it'll just change color according to the time of date.
| 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
Available since 1/1/2014. Reward for those who logged in during 1/1~1/3/2014

Special: Template Feature, this item has awesome special feature that will blow your mind, or not, it'll just change color according to the time of date.

BGM: Template BGM


Simplified sample, stripped down to essential fields only

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


NPC FinalBoss.png
Final boss

麻雲

Furniture coin.png200000 Item Icon Furniture Fairy.png999


Slideshow view (Experimental)

Slideshow view is available for items containing multiple images. There are a few limitations of this mode:

  1. Maximum height is constrained to 200 pixel
  2. There's a default light blue backdrop behind the image
  3. The zoom is faulty on furniture types other than "floor" or "object"
  4. "description" and "image" fields are disabled
{{FurnitureInfo
| name=Snowfield
| type=floor
| japanesename=麻雲 
| slideshow=Floor_023_01.png
Floor_023_02.png
Floor_023_03.png
Floor_023_04.png
| coin=2000
| fairy=1
}}
Snowfield

雪原

Furniture coin.png2000 Item Icon Furniture Fairy.png1