Warning.png

Поддержка Wiki прекращена, она доступна в режиме архива. Информация в ней устарела и может быть неактуальной.

Test — различия между версиями

Материал из Hilarious Wiki
Перейти к: навигация, поиск
[непроверенная версия][непроверенная версия]
(Содержимое страницы заменено на «{{Слот|мод=MK|Дыня}}»)
Строка 1: Строка 1:
Here's some examples: (hover over them)<br>
+
{{Слот|мод=MK|Дыня}}
<span class="minetip" title="Test"><nowiki><span class="minetip" title="Test"></nowiki></span>
 
 
 
<span class="minetip" title="Test" data-minetip-text="This is some lengthy description/Which spans multiple lines/&dAnd supports &oformatting!"><nowiki><span class="minetip" title="Test" data-minetip-text="This is some lengthy description/Which spans multiple lines/&dAnd supports &oformatting!"></nowiki></span>
 
 
 
<span class="minetip" title="Not so formatted :(" data-minetip-title="I have a &bformatted&f title!" data-minetip-text="This is some lengthy description/Which spans multiple lines/&dAnd supports &oformatting!"><nowiki><span class="minetip" title="Not so formatted :(" data-minetip-title="I have a &bformatted&f title!" data-minetip-text="This is some lengthy description/Which spans multiple lines/&dAnd supports &oformatting!"></nowiki></span>
 
 
 
If you don't like the minecraft tooltips, or perhaps you're on a browser such as Opera which places the link URL into the tooltip, with no way to remove it without removing the link, you can add <code>window.mcw.useNativeMinetip = true</code> to your userjs (or run <code>window.mcw.minetip.native()</code> in your console to test it on this page), which will revert back to using the native browser tooltips, however it retains the multi-line description, so you're not missing out on information (just formatting). (FYI, I plan to create a "script options" script at some point, so things like this can be done through a menu. It'll save client-side though.)
 
 
 
 
 
Please test this script in your browsers, so I can enable it for the grid template. When it is, you'll still have to wait until the lua version for proper support of this script (requires additional syntax). In the meantime, you ''can'' use the title parameter of the grid template, but formatting will still look bad with JavaScript disabled.
 
 
 
Here's a screenshot for reference to how they ''should'' look: http://matt-russell.com/images/sharex/2013/SS_09-14_11-49-28AM.png<br>
 
<span class=nowrap>–[[User:Ultradude25|ultradude25]] ᐸ <small style=display:inline-block;line-height:9px;vertical-align:-3px>[[User talk:Ultradude25|Talk]]<br>[[Special:Contribs/Ultradude25|Contribs]]</small> – 15:51, 12 September 2013 (UTC)</span>
 
 
 
:Examples work perfectly on my Mac, using Opera 12, Firefox 19, Safari 6, and Chrome 19. -- [[User:Orthotope|Orthotope]] <sup>[[User talk:Orthotope|talk]]</sup> 05:30, 13 September 2013 (UTC)
 
::The examples here work great using the latest Chrome on Windows XP. <span class=nowrap> -- [[User talk:Numbermaniac|<sup style="font-weight:normal; color:#00E">t</sup>]] [[User:Numbermaniac|<span style="color:#07E">numbermaniac</span>]] [[Special:Contribs/Numbermaniac|<sup style="color:#00E">c</sup>]]</span> 22:35, 13 September 2013 (UTC)
 
::: The examples work on Firefox/Linux, but they're awful big. --[[User:Mental Mouse|Mental Mouse]] 23:23, 13 September 2013 (UTC)
 
 
 
::::They're the same size as the default GUI scale in Minecraft. I could change the styling to scale around the font-size, so setting it to 8px would be the same as using the "small" GUI scale. <span class=nowrap>–[[User:Ultradude25|ultradude25]] ᐸ <small style=display:inline-block;line-height:9px;vertical-align:-3px>[[User talk:Ultradude25|Talk]]<br>[[Special:Contribs/Ultradude25|Contribs]]</small> – 01:22, 14 September 2013 (UTC)</span>
 
 
 
:::::Which I've now done, and updated the example image. You would change the font size by styling #minetip-tooltip with a font-size. The size '''must''' be a multiple of 8px, or everything breaks.
 
:::::Also: Here's a test grid: {{grid|imgclass=minetip|Golden Apple|title=&bGolden Apple}} <span class=nowrap>–[[User:Ultradude25|ultradude25]] ᐸ <small style=display:inline-block;line-height:9px;vertical-align:-3px>[[User talk:Ultradude25|Talk]]<br>[[Special:Contribs/Ultradude25|Contribs]]</small> – 02:14, 14 September 2013 (UTC)</span>
 

Версия 09:19, 8 августа 2016