Difference between revisions of "Template:Command Panel UI Button"
Jump to navigation
Jump to search
<img src="//manual.zero-k.info/unitpics/cloakraid.png" style="width:53px;height:47px;margin:0;border:none;position:absolute;top:0;left:0" alt="Lua error: Internal error: The interpreter exited with status 1." title="Lua error: Internal error: The interpreter exited with status 1.">
(A little automation for figuring out the name and cost of the unit.) |
(Always add title and alt text.) |
||
| Line 1: | Line 1: | ||
| − | <div style="width:53px;height:49px | + | <div style="width:53px;height:49px;border:#356 solid 2px;border-radius:4px;background-color:#233;padding:0;margin:0;position:relative"><img src="//raw.githubusercontent.com/ZeroK-RTS/Zero-K/master/LuaUI/Images/nested_buildmenu/frame_{{{frame|Mobile}}}.png" style="width:53px;height:{{#if:{{{price|}}}|40|47}}px;margin:0;border:none;position:absolute;top:0;left:0" alt="({{{frame|Mobile}}}) "><img src="//manual.zero-k.info/unitpics/{{{unitpic|cloakraid}}}.png" style="width:53px;height:{{#if:{{{price|}}}|40|47}}px;margin:0;border:none;position:absolute;top:0;left:0" alt="{{{name|{{{1|{{UnitData getData|{{{unitpic|cloakraid}}}|name}}}}}}}}" title="{{{name|{{{1|{{UnitData getData|{{{unitpic|cloakraid}}}|name}}}}}}}}"> |
{{#if:{{{price|}}}|<div style="line-height:19px;color:#0f0;text-shadow:1px 1px 2px #000;position:absolute;top:0;left:5px;font-family:FreeSans,Arial,sans-serif;font-weight:bold;font-size:11px">{{{hotkey|W}}}</div> | {{#if:{{{price|}}}|<div style="line-height:19px;color:#0f0;text-shadow:1px 1px 2px #000;position:absolute;top:0;left:5px;font-family:FreeSans,Arial,sans-serif;font-weight:bold;font-size:11px">{{{hotkey|W}}}</div> | ||
<div style="line-height:22px;color:#eee;text-shadow:1px 1px 2px #000;position:absolute;top:33px;left:5px;font-family:FreeSans,Arial,sans-serif;font-weight:bold;font-size:12px">{{{price|{{UnitData getData|{{{unitpic|cloakraid}}}|cost}}}}}</div> | <div style="line-height:22px;color:#eee;text-shadow:1px 1px 2px #000;position:absolute;top:33px;left:5px;font-family:FreeSans,Arial,sans-serif;font-weight:bold;font-size:12px">{{{price|{{UnitData getData|{{{unitpic|cloakraid}}}|cost}}}}}</div> | ||
Revision as of 17:14, 23 June 2024
<img src="//manual.zero-k.info/unitpics/cloakraid.png" style="width:53px;height:47px;margin:0;border:none;position:absolute;top:0;left:0" alt="Lua error: Internal error: The interpreter exited with status 1." title="Lua error: Internal error: The interpreter exited with status 1.">
Lua error: Internal error: The interpreter exited with status 1.