MiiWiki:Sandbox: Difference between revisions
PinkYoshiFan (talk | contribs) |
PinkYoshiFan (talk | contribs) m (→Tab label formatting: organizing the css some, going to try something but saving the updated comments for now) |
||
Line 105: | Line 105: | ||
==Tab label formatting== | ==Tab label formatting== | ||
{{#css: | {{#css: | ||
<!-- only parts of this would be used in actual usage --> | <!-- only parts of this would be used in actual usage | ||
it says that some of these make it impossible to tell which is clicked but if it's on the bottom row then the bottom border technically disappears so observant people can probably tell. There may be a way to make that more noticable, not sure. --> | |||
<!-- tab is solid color but text shows up on click--> | |||
label.tabs-label:nth-of-type(1){background-color:pink !important;color:pink} | label.tabs-label:nth-of-type(1){background-color:pink !important;color:pink} | ||
label.tabs-label:nth-of-type(2){background-color:yellow !important;color:yellow} | label.tabs-label:nth-of-type(2){background-color:yellow !important;color:yellow} | ||
label.tabs-label:nth-of-type(3){background-color:#3333ff !important;color:#3333ff} | label.tabs-label:nth-of-type(3){background-color:#3333ff !important;color:#3333ff} | ||
input:checked+label{color:black !important} | |||
<!-- text is always visible, background goes uncolored on click (!important fixes but then telling which is clicked is impossible) --> | |||
label.tabs-label:nth-of-type(5){background-color:pink;color:black} | label.tabs-label:nth-of-type(5){background-color:pink;color:black} | ||
label.tabs-label:nth-of-type(6){background-color:yellow;color:black} | label.tabs-label:nth-of-type(6){background-color:yellow;color:black} | ||
label.tabs-label:nth-of-type(7){background-color:#3333ff;color:black} | label.tabs-label:nth-of-type(7){background-color:#3333ff;color:black} | ||
<!-- tab is always a solid block of color, text is unreadable outside browser highlighting/screen readers --> | |||
label.tabs-label:nth-of-type(9){background-color:pink;color:pink} | label.tabs-label:nth-of-type(9){background-color:pink;color:pink} | ||
label.tabs-label:nth-of-type(10){background-color:yellow;color:yellow} | label.tabs-label:nth-of-type(10){background-color:yellow;color:yellow} | ||
label.tabs-label:nth-of-type(11){background-color:#3333ff;color:#3333ff} | label.tabs-label:nth-of-type(11){background-color:#3333ff;color:#3333ff} | ||
input:checked+label:nth-of-type(9){background-color:pink !important;color:pink !important} | input:checked+label:nth-of-type(9){background-color:pink !important;color:pink !important} | ||
input:checked+label:nth-of-type(10){background-color:yellow !important;color:yellow !important} | input:checked+label:nth-of-type(10){background-color:yellow !important;color:yellow !important} | ||
input:checked+label:nth-of-type(11){background-color:#3333ff !important;color:#3333ff !important} | input:checked+label:nth-of-type(11){background-color:#3333ff !important;color:#3333ff !important} | ||
}} | }} | ||
<tabs> | <tabs class="tabs-test"> | ||
<tab name="pink"> | <tab name="pink"> | ||
pink clothes | pink clothes |
Revision as of 00:08, 5 January 2023
Colored table sort buttons are invisible
lorem | ipsum |
---|---|
top left | top right |
bottom left | bottom right |
lorem | ipsum |
---|---|
top left | top right |
bottom left | bottom right |
Template:Monster as an actual template
Details | |
---|---|
Monster order | |
First monster | Last monster |
{{{description}}}
Stats
Sandbox Statistics | ||||||||
---|---|---|---|---|---|---|---|---|
Image | HP | Attack | Defense | Magic | Speed | Gold | EXP | Locations |
{{{hp}}} | {{{attack}}} | {{{defense}}} | {{{magic}}} | {{{speed}}} | {{{gold}}} | {{{exp}}} | {{{locations}}} |
Actions
Sandbox Actions | |||
---|---|---|---|
Name | Description | Usage chance | Hit rate
|
Usage
This template generates the data parts of Monster pages. It is meant to be used with substitution.
Syntax
Monstername, similar, the three drops values, and attacks besides 1 are optional
{{subst:Monster |description=The opening to the article. Should cover that they're monsters from Miitopia, their location, physical description, what Mii parts they have, and any other notes that don't belong in trivia. |monstername=Monster's name, defaults to the page's name |commondrops=commonly dropped Grub |uncommondrops=uncommonly dropped Grub (★) |raredrops=rarely dropped Grub (★★) |similar=variants of this monster |previousmonster=The previous monster. Use [[Previous monster name|#previous monster journal number]]. |nextmonster=The next monster. Use [[Next monster name|#Next monster journal number]]. |hp=, |attack=, |defense=, |magic=, |speed= Values for respective stats |gold=how much gold is dropped by them when defeated |exp=experience yield from them |locations=locations where they are found |statsnotice=notice template for the stats section (if applicable) |actionsnotice=notice template for the actions section (if applicable) |attackxname=Name of attack x (replace x with a number between 1 and 4) |attackxdescription=Description of attack x (replace x with a number between 1 and 4) |attackxuse=Chance that the monster uses attack x (replace x with a number between 1 and 4) |attackxaccuracy=Chance of attack x hitting a Mii (replace x with a number between 1 and 4) }}
Other sections of the page (such as names in other languages, trivia, and navboxes) will need to be added after the template.
Raw code
{{subst:Monster |description= |monstername= |commondrops= |uncommondrops= |raredrops= |similar= |previousmonster= |nextmonster= |hp= |attack= |defense= |magic= |speed= |gold= |exp= |locations= |statsnotice= |actionsnotice= |attack1name= |attack1description= |attack1use= |attack1accuracy= |attack2name= |attack2description= |attack2use= |attack2accuracy= |attack3name= |attack3description= |attack3use= |attack3accuracy= |attack4name= |attack4description= |attack4use= |attack4accuracy= }}
Tab label formatting
pink clothes
This needs to exist if there's a color available for one piece of clothing but not another since nth of type can't be changed. If used in an actual page, it would probably just say "this clothing is not available in that color" or something
blue clothes
spacing for three ways of doing this
pink clothes 2
This needs to exist if there's a color available for one piece of clothing but not another since nth of type can't be changed. If used in an actual page, it would probably just say "this clothing is not available in that color" or something 2
blue clothes 2
spacing for three ways of doing this
pink clothes 3
This needs to exist if there's a color available for one piece of clothing but not another since nth of type can't be changed. If used in an actual page, it would probably just say "this clothing is not available in that color" or something 3
blue clothes 3