• 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 (Oops, forgot to remove a debugger lol)
>Fujihita
m (False position value for floor type, new value is right:100%. Fix a bug caused by "wall" type and the old "wallpaper" type confusion)
Line 2: Line 2:
 
|-
 
|-
 
| 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;">{{{slideshow|}}}</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;">{{{slideshow|}}}</div></div>
|<div style="overflow:hidden;width:265px;max-height:250px;border-top-left-radius:20px; border-bottom-left-radius:20px;"><div style="position:relative;{{{position|{{#switch: {{{type|}}}| floor = right:25%;| chest = left:10%;bottom:80px;|}}}}}">{{#if:{{{image|}}}|[[File:{{{image|}}}{{!}}center{{#if:{{{description|}}}|{{!}}{{{description|}}}|}}{{#if: {{{size|{{#switch: {{{type|}}}| wallpaper = 600px| window = 350px| desk = 265px| }}}}}|{{!}}{{{size|{{#switch: {{{type|}}}| wallpaper = 600px| window = 350px| desk = 265px| }}}}}|}}]]|}}</div></div>}}
+
|<div style="overflow:hidden;width:265px;max-height:250px;border-top-left-radius:20px; border-bottom-left-radius:20px;"><div style="position:relative;{{{position|{{#switch: {{{type|}}}| floor = right:100%;| chest = left:10%;bottom:80px;|}}}}}">{{#if:{{{image|}}}|[[File:{{{image|}}}{{!}}center{{#if:{{{description|}}}|{{!}}{{{description|}}}|}}{{#if: {{{size|{{#switch: {{{type|wall}}}| wall = 600px| window = 350px| desk = 265px| }}}}}|{{!}}{{{size|{{#switch: {{{type|}}}| wall = 600px| window = 350px| desk = 265px| }}}}}|}}]]|}}</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 129: Line 129:
 
Some furniture types will have these values predefined, they can be overwritten by redefining the field. Find below the default values according to furniture type:
 
Some furniture types will have these values predefined, they can be overwritten by redefining the field. Find below the default values according to furniture type:
 
{| style="margin:20px; border: 1px solid black;padding:10px;" width="60%"
 
{| style="margin:20px; border: 1px solid black;padding:10px;" width="60%"
|align="center"| Wallpaper
+
|align="center"| Wall
 
|rowspan="5" style="background:gray;"|  
 
|rowspan="5" style="background:gray;"|  
 
|
 
|
Line 135: Line 135:
 
|-
 
|-
 
|align="center"| Floor
 
|align="center"| Floor
|align="center"| right:25%;
+
|align="center"| right:100%;
 
|
 
|
 
|-
 
|-

Revision as of 15:19, 27 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
| japanesename=朝雲
| image=NPC_FinalBoss.png
| coin=200000
}}


NPC Fairy Tutorial A 1.png
Final boss

朝雲

Furniture coin.png200000 Item Icon Furniture Fairy.png999


Slideshow (Experimental as of 12/26/2014)

Slideshow is available for furniture 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

If possible, try to use the default templates above instead of the slideshow.

{{FurnitureInfo
| name=Snowfield
| type=floor
| japanesename=雪原
| slideshow=<gallery type="slideshow" widths="267px" crop="true" position="center" hideaddbutton="true">Floor_023_01.png
Floor_023_02.png
Floor_023_03.png
Floor_023_04.png
Furniture-204.jpg</gallery>
| coin=2000
| fairy=1
}}


Snowfield

雪原

Furniture coin.png2000 Item Icon Furniture Fairy.png1


Advanced image operations

  • "position" field allows customized positioning within the frame
  • "size" field allows different scaling/zooming value

Some furniture types will have these values predefined, they can be overwritten by redefining the field. Find below the default values according to furniture type:

Wall 600px
Floor right:100%;
Desk 265px
Window 350px
Chest left:10%; bottom:80px;
{{FurnitureInfo
| name=Final boss
| japanesename=朝雲 
| image=NPC_FinalBoss.png
| position=left:20%;bottom:30px;
| size=100px
| coin=200000
}}


NPC Fairy Tutorial A 1.png
Final boss

朝雲

Furniture coin.png200000