Difference between revisions of "User:Dorsal Axe/Sandbox2"

From Nookipedia, the Animal Crossing wiki
Line 178: Line 178:
 
|- {{#if:{{{data|}}}|
 
|- {{#if:{{{data|}}}|
 
{{!-}}
 
{{!-}}
! colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}}%); text-align:center; {{#if:{{{data2|}}}
+
! colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}}); text-align:center; {{#if:{{{data2|}}}
 
<!--t-->|{{#if:{{{group|}}}
 
<!--t-->|{{#if:{{{group|}}}
 
<!--              t--->|   
 
<!--              t--->|   
Line 202: Line 202:
 
|- {{#if:{{{data2|}}}|
 
|- {{#if:{{{data2|}}}|
 
{{!-}}
 
{{!-}}
! colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}}%); text-align:center; {{#if:{{{data3|}}}||{{roundybl|9px}}}}" {{!}} {{{label2}}}
+
! colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}}); text-align:center; {{#if:{{{data3|}}}||{{roundybl|9px}}}}" {{!}} {{{label2}}}
 
{{!}} colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style="background:#ffffff; padding:0 0 0 6px; {{#if:{{{data3|}}}||{{roundybr|9px}}}}" {{!}} {{{data2|}}} }}
 
{{!}} colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style="background:#ffffff; padding:0 0 0 6px; {{#if:{{{data3|}}}||{{roundybr|9px}}}}" {{!}} {{{data2|}}} }}
 
<!-- L3 -->
 
<!-- L3 -->
 
|- {{#if:{{{data3|}}}|
 
|- {{#if:{{{data3|}}}|
 
{{!-}}
 
{{!-}}
! colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}}%); text-align:center; {{#if:{{{data4|}}}||{{roundybl|9px}}}}" {{!}} {{{label3}}}
+
! colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}}); text-align:center; {{#if:{{{data4|}}}||{{roundybl|9px}}}}" {{!}} {{{label3}}}
 
{{!}} colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style="background:#ffffff; padding:0 0 0 6px; {{#if:{{{data4|}}}||{{roundybr|9px}}}}" {{!}} {{{data3|}}} }}
 
{{!}} colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style="background:#ffffff; padding:0 0 0 6px; {{#if:{{{data4|}}}||{{roundybr|9px}}}}" {{!}} {{{data3|}}} }}
 
<!-- L4 -->
 
<!-- L4 -->
 
|- {{#if:{{{data4|}}}|
 
|- {{#if:{{{data4|}}}|
 
{{!-}}
 
{{!-}}
! colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}}%); text-align:center; {{#if:{{{data5|}}}||{{roundybl|9px}}}}" {{!}} {{{label4}}}
+
! colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}}); text-align:center; {{#if:{{{data5|}}}||{{roundybl|9px}}}}" {{!}} {{{label4}}}
 
{{!}} colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style="background:#ffffff; padding:0 0 0 6px; {{#if:{{{data5|}}}||{{roundybr|9px}}}}" {{!}} {{{data4|}}} }}
 
{{!}} colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style="background:#ffffff; padding:0 0 0 6px; {{#if:{{{data5|}}}||{{roundybr|9px}}}}" {{!}} {{{data4|}}} }}
 
<!-- L5 -->
 
<!-- L5 -->
 
|- {{#if:{{{data5|}}}|
 
|- {{#if:{{{data5|}}}|
 
{{!-}}
 
{{!-}}
! colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}}%); text-align:center; {{#if:{{{data6|}}}||{{roundybl|9px}}}}" {{!}} {{{label5}}}
+
! colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}}); text-align:center; {{#if:{{{data6|}}}||{{roundybl|9px}}}}" {{!}} {{{label5}}}
 
{{!}} colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style="background:#ffffff; padding:0 0 0 6px; {{#if:{{{data6|}}}||{{roundybr|9px}}}}" {{!}} {{{data5|}}} }}
 
{{!}} colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style="background:#ffffff; padding:0 0 0 6px; {{#if:{{{data6|}}}||{{roundybr|9px}}}}" {{!}} {{{data5|}}} }}
 
<!-- L6 -->
 
<!-- L6 -->
 
|- {{#if:{{{data6|}}}|
 
|- {{#if:{{{data6|}}}|
 
{{!-}}
 
{{!-}}
! colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}}%); text-align:center; {{#if:{{{data7|}}}||{{roundybl|9px}}}}" {{!}} {{{label6}}}
+
! colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}}); text-align:center; {{#if:{{{data7|}}}||{{roundybl|9px}}}}" {{!}} {{{label6}}}
 
{{!}} colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style="background:#ffffff; padding:0 0 0 6px; {{#if:{{{data7|}}}||{{roundybr|9px}}}}" {{!}} {{{data6|}}} }}
 
{{!}} colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style="background:#ffffff; padding:0 0 0 6px; {{#if:{{{data7|}}}||{{roundybr|9px}}}}" {{!}} {{{data6|}}} }}
 
<!-- L7 -->
 
<!-- L7 -->
 
|- {{#if:{{{data7|}}}|
 
|- {{#if:{{{data7|}}}|
 
{{!-}}
 
{{!-}}
! colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}}%); text-align:center; {{#if:{{{data8|}}}||{{roundybl|9px}}}}" {{!}} {{{label7}}}
+
! colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}}); text-align:center; {{#if:{{{data8|}}}||{{roundybl|9px}}}}" {{!}} {{{label7}}}
 
{{!}} colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style="background:#ffffff; padding:0 0 0 6px; {{#if:{{{data8|}}}||{{roundybr|9px}}}}" {{!}} {{{data7|}}} }}
 
{{!}} colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style="background:#ffffff; padding:0 0 0 6px; {{#if:{{{data8|}}}||{{roundybr|9px}}}}" {{!}} {{{data7|}}} }}
 
<!-- L8 -->
 
<!-- L8 -->
 
|- {{#if:{{{data8|}}}|
 
|- {{#if:{{{data8|}}}|
 
{{!-}}
 
{{!-}}
! colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}}%); text-align:center; {{#if:{{{data9|}}}||{{roundybl|9px}}}}" {{!}} {{{label8}}}
+
! colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}}); text-align:center; {{#if:{{{data9|}}}||{{roundybl|9px}}}}" {{!}} {{{label8}}}
 
{{!}} colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style="background:#ffffff; padding:0 0 0 6px; {{#if:{{{data9|}}}||{{roundybr|9px}}}}" {{!}} {{{data8|}}} }}
 
{{!}} colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style="background:#ffffff; padding:0 0 0 6px; {{#if:{{{data9|}}}||{{roundybr|9px}}}}" {{!}} {{{data8|}}} }}
 
<!-- L9 -->
 
<!-- L9 -->
 
|- {{#if:{{{data9|}}}|
 
|- {{#if:{{{data9|}}}|
 
{{!-}}
 
{{!-}}
! colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}}%); text-align:center; {{#if:{{{data10|}}}||{{roundybl|9px}}}}" {{!}} {{{label9}}}
+
! colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}}); text-align:center; {{#if:{{{data10|}}}||{{roundybl|9px}}}}" {{!}} {{{label9}}}
 
{{!}} colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style="background:#ffffff; padding:0 0 0 6px; {{#if:{{{data10|}}}||{{roundybr|9px}}}}" {{!}} {{{data9|}}} }}
 
{{!}} colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style="background:#ffffff; padding:0 0 0 6px; {{#if:{{{data10|}}}||{{roundybr|9px}}}}" {{!}} {{{data9|}}} }}
 
<!-- L10 -->
 
<!-- L10 -->
 
|- {{#if:{{{data10|}}}|
 
|- {{#if:{{{data10|}}}|
 
{{!-}}
 
{{!-}}
! colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}}%); text-align:center; {{#if:{{{data11|}}}||{{roundybl|9px}}}}" {{!}} {{{label10}}}
+
! colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}}); text-align:center; {{#if:{{{data11|}}}||{{roundybl|9px}}}}" {{!}} {{{label10}}}
 
{{!}} colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style="background:#ffffff; padding:0 0 0 6px; {{#if:{{{data11|}}}||{{roundybr|9px}}}}" {{!}} {{{data10|}}} }}
 
{{!}} colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style="background:#ffffff; padding:0 0 0 6px; {{#if:{{{data11|}}}||{{roundybr|9px}}}}" {{!}} {{{data10|}}} }}
 
<!-- L11 -->
 
<!-- L11 -->
 
|- {{#if:{{{data11|}}}|
 
|- {{#if:{{{data11|}}}|
 
{{!-}}
 
{{!-}}
! colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}}%); text-align:center; {{#if:{{{data12|}}}||{{roundybl|9px}}}}" {{!}} {{{label11}}}
+
! colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}}); text-align:center; {{#if:{{{data12|}}}||{{roundybl|9px}}}}" {{!}} {{{label11}}}
 
{{!}} colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style="background:#ffffff; padding:0 0 0 6px; {{#if:{{{data12|}}}||{{roundybr|9px}}}}" {{!}} {{{data11|}}} }}
 
{{!}} colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style="background:#ffffff; padding:0 0 0 6px; {{#if:{{{data12|}}}||{{roundybr|9px}}}}" {{!}} {{{data11|}}} }}
 
<!-- L12 -->
 
<!-- L12 -->
 
|- {{#if:{{{data12|}}}|
 
|- {{#if:{{{data12|}}}|
 
{{!-}}
 
{{!-}}
! colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}}%); text-align:center; {{roundybl|9px}}" {{!}} {{{label12}}}
+
! colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}}); text-align:center; {{roundybl|9px}}" {{!}} {{{label12}}}
 
{{!}} colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style="background:#ffffff; padding:0 0 0 6px; {{roundybr|9px}}" {{!}} {{{data12|}}} }}
 
{{!}} colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style="background:#ffffff; padding:0 0 0 6px; {{roundybr|9px}}" {{!}} {{{data12|}}} }}
  

Revision as of 07:34, July 18, 2020

Infobox
Nia.png









Usage

{{Infobox
 | Title          = 
 | Lefticon       =
 | Righticon      =

 | PrimaryColor   =
 | SecondaryColor =

 | LeftLink       =
 | RightLink      =

 | SubtitleAbove  = 
 | SubtitleBelow  =

 | Image          =
 | Caption        =
 | Image2         =
 | Caption2       =

 | LeftLabel      =
 | LeftData       =
 | MiddleLabel    =
 | MiddleData     =
 | RightLabel     =
 | RightData      =

 | Calendar       =
 | CalColor       = 

 | WideLabel      =
 | WideData       =

 | Group          =
 | Label          = 
 | Data           = 

 | Appearances    =
 | O-Appearances  =
 | Languages      =

 | StrategyWiki   =
}}

This template is intended to be used for all infoboxes, as it allows them to be easily created and maintained and gives them a consistent visual style and functionality. It is very complex, and has been designed to adapt to the many different needs of various infoboxes across the wiki. This template is mobile-friendly and should appear the same on mobile devices.


The following parameters primarily set the visual style of the template:

  • Title sets the displayed heading of the infobox.
  • LeftIcon is an optional parameter that allows an image or text to appear in the upper-left corner of the infobox.
  • RightIcon is an optional parameter that allows an image or text to appear in the upper-right corner of the infobox.
  • PrimaryColor sets the display colors of the infobox. Requires hue and saturation values in in HSL format, as other colors on the template are adjusted dynamically based on these values.
  • SecondaryColor allows a complimentary color to be specified. Requires hue and saturation values in in HSL format, as other colors on the template are adjusted dynamically based on these values.
  • CalColor sets the displayed colour of highlighted months on calendar, if it has been set to be shown (see below). Requires hue and saturation values in in HSL format, as other colors on the template are adjusted dynamically based on these values.

The following parameters primarily set the content of the template:

  • Image sets the image file to be displayed in the infobox.
  • Caption sets a text caption to be displayed below the image.
  • Image2 sets a second image file to be displayed in the infobox, below the first image.
  • Caption2 sets a text caption to be displayed below the second image.
  • LeftLink sets a link that appears on the upper-left side of the infobox with an arrow pointing left. Intended for navigation between related topics.
  • RightLink sets a link that appears on the upper-right side of the infobox with an arrow pointing right. Intended for navigation between related topics.
  • SubtitleAbove sets a subtitle that will appear below the heading, but above any images.
  • SubtitleBelow sets a subtitle that will appear below images. Setting this to Gallery will automatically set this to a styled gallery page link.

The infobox can be set to show two or three adjacent columns of labels and data using the following parameters. It will appear with two columns if only left and right sides are specified, and three if the middle parameters are specified.

  • LeftLabel
  • LeftData
  • MiddleLabel
  • MiddleData
  • RightLabel
  • RightData

A calendar can be set to appear in the infobox and will highlight any specified months. The calendar will appear above and visually join wide labels if they are set to be shown.

The following parameters will set the label to appear above the data, in a single column that spans the width of the infobox:

  • WideLabel
  • WideData

The following parameters will set the label to appear adjacent to the data, in two columns.

  • Group will create a group label in a single column that spans the width of the infobox. This will also shade the labels in a slightly lighter colour, allowing the creation of "sub-labels".
  • Label
  • Data

The following parameters will display which media the subject has appeared in, by checking the categories the page is included in. For both parameters, the category name must be specified, omitting the title of the media (e.g. just "characters" rather than "New Horizons characters")

  • Appearances will display appearances in main series games.
  • O-Appearances will display appearances in spin-off games and media.
  • Languages setting to yes toggles the appearance of the languages sub-box, intended for names for the subject in other languages. The following parameters must be used to specify any parameters for the supported languages.
    • Japanese
    • Korean
    • Chinese
    • French
    • Italian
    • Spanish
    • German
    • Dutch
    • Russian
  • StrategyWiki allows a link to be set to a corresponding on StrategyWiki

The infobox template supports up to 5 wide rows and 12 two-column rows. When adding more than one row, you must append the sequential number to the names of the parameters like so. Failing to this will result in display errors.

 | widelabel2     =
 | widedata2      =

 | label2         = 
 | data2          =