Template talk:Creature table: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
(→‎Resouce column: new section)
No edit summary
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
== Black arrows vs. Dark blue background ==
It's really painful to operate. Is there a way to change the color of sorting arrows? Just don't want to change the color set of creature table - think it's absolutely ok for now.--[[User:ShushMaster|ShushMaster]] ([[User talk:ShushMaster|talk]]) 08:05, 20 May 2018 (CEST)
: This will require some CSS to be added to [[MediaWiki:Common.css]]:
<pre>table.whiteSortArrows.jquery-tablesorter th.headerSortUp{
    background-image: url(http://heroes.thelazy.net/wiki/images/8/82/Sort_up_white.gif) !important;
}
table.whiteSortArrows.jquery-tablesorter th.headerSortDown{
    background-image: url(http://heroes.thelazy.net/wiki/images/5/56/Sort_down_white.gif) !important;
}
table.whiteSortArrows.jquery-tablesorter th.headerSort{
    background-image: url(http://heroes.thelazy.net/wiki/images/3/36/Sort_both_white.gif);
}</pre>
: The only one with rights to edit that page is [[User:Terra|Terrasque]]. I sent a PM on <span class="plainlinks">[https://discord.gg/r5MR4Hc discord]</span>. After the CSS gets added you'll just have to add the ''whiteSortArrows'' class to the table. ―[[user:imahero|imahero]] 09:25, 20 May 2018 (CEST)
:: ''"If User:Terra updates this wiki, then the'll be possibility to set sort value"'' :( --[[User:ShushMaster|ShushMaster]] ([[User talk:ShushMaster|talk]]) 22:02, 20 May 2018 (CEST)
:: ''"23 March '''2014''''' (CET)" :(( --[[User:ShushMaster|ShushMaster]] ([[User talk:ShushMaster|talk]]) 22:02, 20 May 2018 (CEST)
::: White sort arrows are here. Here's an example of how to add them:
::: <span class=plainlinks>[http://heroes.thelazy.net/wiki/index.php?title=Template:Hero_table&diff=35500&oldid=35195 Template:Hero_table&diff=35500&oldid=35195]</span> ―[[user:imahero|imahero]] 15:44, 24 May 2018 (CEST)
== Damage ==
== Damage ==
Um, why to separate min and max dmg? Maybe it's for better sorting I guess x] --[[User:HaxLi|HaxLi]] 14:49, 20 March 2014 (CET)
Um, why to separate min and max dmg? Maybe it's for better sorting I guess x] --[[User:HaxLi|HaxLi]] 14:49, 20 March 2014 (CET)
Line 5: Line 28:


::Hmm, perhaps there would be way to make min & max damages look like an interval, but still preserve the sortability? –[[User:Kapteeni Ruoska|Kapteeni Ruoska]] 09:43, 23 March 2014 (CET)
::Hmm, perhaps there would be way to make min & max damages look like an interval, but still preserve the sortability? –[[User:Kapteeni Ruoska|Kapteeni Ruoska]] 09:43, 23 March 2014 (CET)
:::There is, but not in this Wiki yet ;]
[https://www.mediawiki.org/wiki/Help:Sorting#Specifying_a_sort_key Specifying_a_sort_key]
If [[:User:Terra]] updates this wiki, then the'll be possibility to set sort value ;] --[[User:HaxLi|HaxLi]] 10:19, 23 March 2014 (CET)


== Width ==
== Width ==
Line 12: Line 41:
== Resouce column ==
== Resouce column ==


Remember the discussion in [[File_talk:Gold_symbol_for_text.png]]. I posted a [:https://imageshack.com/i/5nil5dp |Screenshot] of how it looks in game ;]
[[Image:Creature_Dragon_Cost_Screen.png|thumb|Yes, resource should be at the right of gold]]
 
<s>Remember the discussion in [[File_talk:Gold_symbol_for_text.png]]. I posted a [https://imageshack.com/i/5nil5dp Screenshot] of how it looks in game ;] Btw, now it is necessary to switch gold and resource variables in row template or hard working on data reediting >_<</s>
 
Right, gota resort creature data with Notepad++. It's easy there with column select tool, Just need to reedit every teplates and pages there ;]
 
=== Compare ===
{| cellpadding=0 cellspacing=0 border=0 style="width:956px; background-color:#DDDDFF; border: 1px solid #000000;" class="sortable"
|- bgcolor=0000FF  align=center style="color:#FFFFFF;"
| width=140 align=left | {{-}}'''Name'''
| width=80  align=left | '''Town'''
| width=30 | <span title="Level">'''Lvl'''
| width=30 | <span title="Attack">'''Att'''
| width=30 | <span title="Defence">'''Def'''
| width=30 | <span title="Minimum Damage">'''D(-)'''</span>
| width=30 | <span title="Maximum Damage">'''D(+)'''</span>
| width=30 | <span title="Health">'''Hlth'''
| width=30 | <span title="Speed">'''Spd'''
| width=55 | '''Cost'''
| width=30 class="unsortable" | <!--- column for resource cost !--->
| align=left class="unsortable" | {{-}}'''Special'''
|- align=center
| align=left|{{Cn|Imp}}|| align=left|{{-}}Meh||3{{-}}||4{{-}}||5{{-}}||6{{-}}||7{{-}}||8{{-}}||9{{-}}|| align=right|1100 {{gold}}{{-}}|| align=right| || align=left |{{-}}12 Meh Meh
|- align=center
| align=left|{{Cn|Imp}}|| align=left|{{-}}Meh||3{{-}}||4{{-}}||5{{-}}||6{{-}}||7{{-}}||8{{-}}||9{{-}}|| align=right|1100 {{gold}}{{-}}|| align=right| || align=left |{{-}}12 Meh Meh
|- align=center
| align=left|{{Cn|Imp}}|| align=left|{{-}}Meh||3{{-}}||4{{-}}||5{{-}}||6{{-}}||7{{-}}||8{{-}}||9{{-}}|| align=right|1100 {{gold}}{{-}}|| align=right|10 {{Mercury}}|| align=left |{{-}}12 Meh Meh
|- align=center
| align=left|{{Cn|Imp}}|| align=left|{{-}}Meh||3{{-}}||4{{-}}||5{{-}}||6{{-}}||7{{-}}||8{{-}}||9{{-}}|| align=right|1100 {{gold}}{{-}}|| align=right|10 {{sulfur}}|| align=left |{{-}}12 Meh Meh
|}
 
'''V.S.'''
 
{| cellpadding=0 cellspacing=0 border=0 style="width:956px; background-color:#DDDDFF; border: 1px solid #000000;" class="sortable"
|- bgcolor=0000FF  align=center style="color:#FFFFFF;"
| width=140 | '''Name'''
| width=80 align=left | '''Town'''
| width=30 | <span title="Level">'''Lvl'''
| width=30 | <span title="Attack">'''Att'''
| width=30 | <span title="Defence">'''Def'''
| width=30 | <span title="Min Damage">'''D(-)'''</span>
| width=30 | <span title="Max Damage">'''D(+)'''</span>
| width=30 | <span title="Health">'''Hlth'''
| width=30 | <span title="Speed">'''Spd'''
| width=30 class="unsortable" | <!--- column for resource !--->
| width=55 | '''Cost'''
| align=left class="unsortable" | {{-}}'''Special'''
|- align=center
| align=left|{{Cn|Imp}}|| align=left|{{-}}Meh||3{{-}}||4{{-}}||5{{-}}||6{{-}}||7{{-}}||8{{-}}||9{{-}}|| align=right| || align=right|1100 {{gold}}{{-}}|| align=left |{{-}}12 Meh Meh
|- align=center
| align=left|{{Cn|Imp}}|| align=left|{{-}}Meh||3{{-}}||4{{-}}||5{{-}}||6{{-}}||7{{-}}||8{{-}}||9{{-}}|| align=right| || align=right|1100 {{gold}}{{-}}|| align=left |{{-}}12 Meh Meh
|- align=center
| align=left|{{Cn|Imp}}|| align=left|{{-}}Meh||3{{-}}||4{{-}}||5{{-}}||6{{-}}||7{{-}}||8{{-}}||9{{-}}|| align=right|10 {{Mercury}} || align=right|1100 {{gold}}{{-}}|| align=left |{{-}}12 Meh Meh
|- align=center
| align=left|{{Cn|Imp}}|| align=left|{{-}}Meh||3{{-}}||4{{-}}||5{{-}}||6{{-}}||7{{-}}||8{{-}}||9{{-}}|| align=right|10 {{sulfur}}|| align=right|1100 {{gold}}{{-}}|| align=left |{{-}}12 Meh Meh
|}


Btw, now it is necessary to switch gold and resource variables in row template or hard working on data reediting >_< --[[User:HaxLi|HaxLi]] 10:18, 23 March 2014 (CET)
--[[User:HaxLi|HaxLi]] 10:18, 23 March 2014 (CET)

Latest revision as of 13:44, 24 May 2018

Black arrows vs. Dark blue background[edit | hide | hide all]

It's really painful to operate. Is there a way to change the color of sorting arrows? Just don't want to change the color set of creature table - think it's absolutely ok for now.--ShushMaster (talk) 08:05, 20 May 2018 (CEST)

This will require some CSS to be added to MediaWiki:Common.css:
table.whiteSortArrows.jquery-tablesorter th.headerSortUp{
    background-image: url(http://heroes.thelazy.net/wiki/images/8/82/Sort_up_white.gif) !important;
}

table.whiteSortArrows.jquery-tablesorter th.headerSortDown{
    background-image: url(http://heroes.thelazy.net/wiki/images/5/56/Sort_down_white.gif) !important;
}

table.whiteSortArrows.jquery-tablesorter th.headerSort{
    background-image: url(http://heroes.thelazy.net/wiki/images/3/36/Sort_both_white.gif);
}
The only one with rights to edit that page is Terrasque. I sent a PM on discord. After the CSS gets added you'll just have to add the whiteSortArrows class to the table. ―imahero 09:25, 20 May 2018 (CEST)
"If User:Terra updates this wiki, then the'll be possibility to set sort value" :( --ShushMaster (talk) 22:02, 20 May 2018 (CEST)
"23 March 2014 (CET)" :(( --ShushMaster (talk) 22:02, 20 May 2018 (CEST)
White sort arrows are here. Here's an example of how to add them:
Template:Hero_table&diff=35500&oldid=35195imahero 15:44, 24 May 2018 (CEST)

Damage[edit | hide]

Um, why to separate min and max dmg? Maybe it's for better sorting I guess x] --HaxLi 14:49, 20 March 2014 (CET)

That is the main reason. Though I agree, that it is a little pointless property. –Kapteeni Ruoska 14:55, 20 March 2014 (CET)
Hmm, perhaps there would be way to make min & max damages look like an interval, but still preserve the sortability? –Kapteeni Ruoska 09:43, 23 March 2014 (CET)
There is, but not in this Wiki yet ;]

Specifying_a_sort_key

If User:Terra updates this wiki, then the'll be possibility to set sort value ;] --HaxLi 10:19, 23 March 2014 (CET)

Width[edit | hide]

Is the "width 100%" really necessary? To my eye it looks a bit funny, when half or at list a third is basically empty. Of course it would be empty anyway, but now the colors and the frames fill the blank space. –Kapteeni Ruoska 09:43, 23 March 2014 (CET)

Well, I had no solution how to make 'Special' column fit without row distortion. Not sure about others, but I think 1280px is the most used resolution yet and on that resolution this looks kinda fine. Ofcourse on 1920px width it's kinda funny looking.. so maybe need to specify fixed width=956px ;] --HaxLi 10:05, 23 March 2014 (CET)

Resouce column[edit | hide]

Yes, resource should be at the right of gold

Remember the discussion in File_talk:Gold_symbol_for_text.png. I posted a Screenshot of how it looks in game ;] Btw, now it is necessary to switch gold and resource variables in row template or hard working on data reediting >_<

Right, gota resort creature data with Notepad++. It's easy there with column select tool, Just need to reedit every teplates and pages there ;]

Compare[edit | hide]

 Name Town Lvl Att Def D(-) D(+) Hlth Spd Cost  Special
Imp Imp  Meh 1100 Gold   12 Meh Meh
Imp Imp  Meh 1100 Gold   12 Meh Meh
Imp Imp  Meh 1100 Gold  10 Mercury  12 Meh Meh
Imp Imp  Meh 1100 Gold  10 Sulfur  12 Meh Meh

V.S.

Name Town Lvl Att Def D(-) D(+) Hlth Spd Cost  Special
Imp Imp  Meh 1100 Gold   12 Meh Meh
Imp Imp  Meh 1100 Gold   12 Meh Meh
Imp Imp  Meh 10 Mercury 1100 Gold   12 Meh Meh
Imp Imp  Meh 10 Sulfur 1100 Gold   12 Meh Meh

--HaxLi 10:18, 23 March 2014 (CET)