Difference between revisions of "User:Dorsal Axe/Sandbox2"
Dorsal Axe (talk | contribs) |
Dorsal Axe (talk | contribs) |
||
Line 262: | Line 262: | ||
! colspan="6" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{{overridesecondary|85%}}}); {{roundytop|9px}} text-align: center;" {{!}} Main appearances | ! colspan="6" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{{overridesecondary|85%}}}); {{roundytop|9px}} text-align: center;" {{!}} Main appearances | ||
{{!-}} | {{!-}} | ||
− | {{!}} colspan="6" style="background:#ffffff; text-align: center; {{#if:{{{o-appearances|}}}||{{roundybottom|9px}}}}" {{!}} {{#incat: | + | {{!}} colspan="6" style="background:#ffffff; text-align: center; {{#if:{{{o-appearances|}}}||{{roundybottom|9px}}}}" {{!}} {{#incat:Doubutsu no Mori {{{appearances}}}|{{Infobox Appearance|game={{DnM|shortest}}|appears=yes}}|{{Infobox Appearance|game={{DnM|shortest}}''|appears=no}}}} |
{{#incat:Animal Crossing {{{appearances}}}|{{Infobox Appearance|game={{PG|shortest}}|appears=yes}}|{{Infobox Appearance|game={{PG|shortest}}|appears=no}}}} | {{#incat:Animal Crossing {{{appearances}}}|{{Infobox Appearance|game={{PG|shortest}}|appears=yes}}|{{Infobox Appearance|game={{PG|shortest}}|appears=no}}}} | ||
− | {{#incat: | + | {{#incat:Doubutsu no Mori e+ {{{appearances}}}|{{Infobox Appearance|game={{DnMe+|shortest}}|appears=yes}}|{{Infobox Appearance|game=[[Dōbutsu no Mori e+|e+]]|appears=no}}}} |
{{#incat:Animal Crossing: Wild World {{{appearances}}}|{{Infobox Appearance|game={{WW|shortest}}|appears=yes}}|{{Infobox Appearance|game={{WW|shortest}}|appears=no}}}} | {{#incat:Animal Crossing: Wild World {{{appearances}}}|{{Infobox Appearance|game={{WW|shortest}}|appears=yes}}|{{Infobox Appearance|game={{WW|shortest}}|appears=no}}}} | ||
{{#incat:Animal Crossing: City Folk {{{appearances}}}|{{Infobox Appearance|game={{CF|shortest}}|appears=yes}}|{{Infobox Appearance|game={{CF|shortest}}|appears=no}}}} | {{#incat:Animal Crossing: City Folk {{{appearances}}}|{{Infobox Appearance|game={{CF|shortest}}|appears=yes}}|{{Infobox Appearance|game={{CF|shortest}}|appears=no}}}} | ||
Line 277: | Line 277: | ||
! colspan="6" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{{overridesecondary|85%}}}); text-align:center;" {{!}} Other appearances | ! colspan="6" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{{overridesecondary|85%}}}); text-align:center;" {{!}} Other appearances | ||
{{!-}} | {{!-}} | ||
− | {{!}} colspan="6" style="background:#ffffff; text-align: center; {{roundybottom|9px}}" {{!}} {{#incat: | + | {{!}} colspan="6" style="background:#ffffff; text-align: center; {{roundybottom|9px}}" {{!}} {{#incat:Doubutsu no Mori (film) {{{o-appearances}}}|{{Infobox Appearance|game={{AM|shortest}}|appears=yes}}|{{Infobox Appearance|game=[[Dōbutsu no Mori (film)|Film]]|appears=no}}}} |
{{#incat:Happy Home Designer {{{o-appearances}}}|{{Infobox Appearance|game={{HHD|shortest}}|appears=yes}}|{{Infobox Appearance|game={{HHD|shortest}}|appears=no}}}} | {{#incat:Happy Home Designer {{{o-appearances}}}|{{Infobox Appearance|game={{HHD|shortest}}|appears=yes}}|{{Infobox Appearance|game={{HHD|shortest}}|appears=no}}}} | ||
{{#incat:amiibo Festival {{{o-appearances}}}|{{Infobox Appearance|game={{AMF|short}}|appears=yes}}|{{Infobox Appearance|game={{AMF|shortest}}|appears=no}}}} | {{#incat:amiibo Festival {{{o-appearances}}}|{{Infobox Appearance|game={{AMF|short}}|appears=yes}}|{{Infobox Appearance|game={{AMF|shortest}}|appears=no}}}} | ||
Line 379: | Line 379: | ||
+ | ;Visual styles | ||
The following parameters primarily set the visual style of the template: | The following parameters primarily set the visual style of the template: | ||
− | * <code> | + | * <code>title</code> sets the displayed heading of the infobox. |
− | * <code> | + | * <code>lefticon</code> is an optional parameter that allows an image or text to appear in the upper-left corner of the infobox. |
− | * <code> | + | * <code>righticon</code> is an optional parameter that allows an image or text to appear in the upper-right corner of the infobox. |
− | * <code> | + | * <code>primarycolor</code> 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. |
− | * <code> | + | * <code>secondarycolor</code> 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. |
− | <!--* <code> | + | * <code>overrideprimary</code> allows the lightness of the primary color to be overridden with a custom percentage value. Should only be used if chosen color lightness is not suitable. |
− | <!--* <code> | + | * <code>overridesecondary</code> allows the lightness of the secondary color to be overridden with a custom percentage value. Should only be used if chosen color lightness is not suitable. |
− | * <code> | + | <!--* <code>titlecolor</code> sets the displayed colour that appears behind the heading text. ''Not currently used.''--> |
+ | <!--* <code>titletextcolor</code> sets the displayed colour of the heading text. ''Not currently used.''--> | ||
+ | * <code>calcolor</code> 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. Appending <code>2</code> defines the color of the second calendar (see below). | ||
+ | ;Content | ||
The following parameters primarily set the content of the template: | The following parameters primarily set the content of the template: | ||
− | * <code> | + | * <code>image</code> sets the image file to be displayed in the infobox. |
− | * <code> | + | * <code>caption</code> sets a text caption to be displayed below the image. |
− | * <code> | + | * <code>image2</code> sets a second image file to be displayed in the infobox, below the first image. |
− | * <code> | + | * <code>caption2</code> sets a text caption to be displayed below the second image. |
− | * <code> | + | * <code>leftlink</code> sets a link that appears on the upper-left side of the infobox with an arrow pointing left. Intended for navigation between related topics. |
− | * <code> | + | * <code>rightlink</code> sets a link that appears on the upper-right side of the infobox with an arrow pointing right. Intended for navigation between related topics. |
− | * <code> | + | * <code>subtitleabove</code> sets a subtitle that will appear below the heading, but above any images. |
− | * <code> | + | * <code>subtitlebelow</code> sets a subtitle that will appear below images. Setting this to <code>Gallery</code> will automatically set this to a styled gallery page link. |
+ | ;Multi-column labels | ||
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. | 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. | ||
− | * <code> | + | * <code>leftlabel</code> |
− | * <code> | + | * <code>leftdata</code> |
− | * <code> | + | * <code>middlelabel</code> |
− | * <code> | + | * <code>middledata</code> |
− | * <code> | + | * <code>rightlabel</code> |
− | * <code> | + | * <code>rightdata</code> |
− | 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. | + | ;Calendars |
− | * <code> | + | 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. Appending <code>2</code> to these parameters will allow creation of a second calendar below the first one, which is primarily intended for distinguishing months between northern and southern hemispheres. |
− | + | * <code>calendar</code> | |
− | + | {{columns-list| | |
− | + | * <code>jan</code> for [[January]] | |
− | + | * <code>feb</code> for [[February]] | |
− | + | * <code>mar</code> for [[March]] | |
− | + | * <code>apr</code> for [[April]] | |
− | + | * <code>may</code> for [[May]] | |
− | + | * <code>jun</code> for [[June]] | |
− | + | * <code>jul</code> for [[July]] | |
− | + | * <code>aug</code> for [[August]] | |
− | + | * <code>sep</code> for [[September]] | |
− | + | * <code>oct</code> for [[October]] | |
+ | * <code>nov</code> for [[November]] | ||
+ | * <code>dec</code> for [[December]] | ||
+ | }} | ||
+ | ;Wide labels | ||
The following parameters will set the label to appear ''above'' the data, in a single column that spans the width of the infobox: | The following parameters will set the label to appear ''above'' the data, in a single column that spans the width of the infobox: | ||
− | * <code> | + | * <code>widelabel</code> |
− | * <code> | + | * <code>widedata</code> |
+ | ;Labels | ||
The following parameters will set the label to appear adjacent to the data, in two columns. | The following parameters will set the label to appear adjacent to the data, in two columns. | ||
− | * <code> | + | * <code>group</code> 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". |
− | * <code> | + | * <code>labelspan</code> can be set to <code>wide</code> to extend the width of the labels at the expense of the data column. |
− | * <code> | + | * <code>label</code> |
+ | * <code>data</code> | ||
+ | * <code>subdata</code> allows an extra cell to be displayed to the right of the first level of data. At the present time, this is solely intended to display [[star sign]]s in [[Template:Infobox Villager]]. | ||
+ | ;Appearances | ||
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") | 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") | ||
− | * <code> | + | * <code>appearances</code> will display appearances in main series games. |
− | * <code> | + | * <code>o-appearances</code> will display appearances in spin-off games and media. |
− | * <code> | + | ;Languages |
− | ** <code> | + | * <code>languages</code> setting to <code>yes</code> 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. Appending <code>2</code> to these parameters will allow creation of a second languages box below the first one. |
− | ** <code> | + | {{columns-list| |
− | ** <code> | + | * <code>ja-name</code> for {{wp|Japanese}} |
− | + | * <code>ko-name</code> for {{wp|Korean}} | |
− | + | * <code>zh-name</code> for {{wp|Simplified Chinese}} | |
− | + | * <code>zht-name</code> for {{wp|Traditional Chinese}} | |
− | + | * <code>fr-name</code> for {{wp|French}} | |
− | + | * <code>frq-name</code> for {{wp|Québec French}} | |
− | + | * <code>es-name</code> for {{wp|Spanish}} | |
+ | * <code>esl-name</code> for {{wp|Latin American Spanish}} | ||
+ | * <code>it-name</code> for {{wp|Italian}} | ||
+ | * <code>de-name</code> for {{wp|German}} | ||
+ | * <code>nl-name</code> for {{wp|Dutch}} | ||
+ | * <code>ru-name</code> for {{wp|Russian}} | ||
+ | }} | ||
+ | ;Miscellaneous | ||
* <code>StrategyWiki</code> allows a link to be set to a corresponding on [https://strategywiki.org/wiki/Main_Page StrategyWiki] | * <code>StrategyWiki</code> allows a link to be set to a corresponding on [https://strategywiki.org/wiki/Main_Page StrategyWiki] | ||
Revision as of 08:02, July 18, 2020
| ||||||||
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.
- Visual styles
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.overrideprimary
allows the lightness of the primary color to be overridden with a custom percentage value. Should only be used if chosen color lightness is not suitable.overridesecondary
allows the lightness of the secondary color to be overridden with a custom percentage value. Should only be used if chosen color lightness is not suitable.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. Appending2
defines the color of the second calendar (see below).
- Content
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 toGallery
will automatically set this to a styled gallery page link.
- Multi-column labels
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
- Calendars
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. Appending 2
to these parameters will allow creation of a second calendar below the first one, which is primarily intended for distinguishing months between northern and southern hemispheres.
calendar
- Wide labels
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
- Labels
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".labelspan
can be set towide
to extend the width of the labels at the expense of the data column.label
data
subdata
allows an extra cell to be displayed to the right of the first level of data. At the present time, this is solely intended to display star signs in Template:Infobox Villager.
- Appearances
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
languages
setting toyes
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. Appending2
to these parameters will allow creation of a second languages box below the first one.
ja-name
for Japaneseko-name
for Koreanzh-name
for Simplified Chinesezht-name
for Traditional Chinesefr-name
for Frenchfrq-name
for Québec Frenches-name
for Spanishesl-name
for Latin American Spanishit-name
for Italiande-name
for Germannl-name
for Dutchru-name
for Russian
- Miscellaneous
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 =