Difference between revisions of "Template:Tooltip"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
(Fuck you)
Line 9: Line 9:
   visibility: hidden;
   visibility: hidden;
   width: max-content;
   width: max-content;
   max-width: 50vh;
   max-width: 300px;
   background-color: black;
   background-color: black;
   color: #fff;
   color: #fff;
Line 19: Line 19:
   bottom: 135%;
   bottom: 135%;
   left: 0vh;
   left: 0vh;
   right: 100vh;
}
 
@media only screen and (max-width: 600px) {
   .tooltip .tooltiptext {
    max-width: 150px;
  }
}
}



Revision as of 10:46, 11 October 2020


This template does the same thing as <abbr> tooltips, except that the tips can be viewed on mobile this time.

Usage

{{Tooltip|text1|text2}}

text1text2

{{Tooltip|base=text1|tip=text2}}

text1text2

{{Tooltip|Nether element|[[File:Element dark.png|50px]]}}

Nether elementElement dark.png

{{Tooltip|[[File:Element dark.png|50px]]|Nether element}}

Element dark.pngNether element

{{Tooltip|text1|text2|width=120px}}

text1text2