Difference between revisions of "Template:Command Panel UI Button/doc"
Jump to navigation
Jump to search
m (Fixed raider/con confusion.) |
|||
Line 3: | Line 3: | ||
It is called like this: | It is called like this: | ||
− | <code style="display:block;white-space:pre;width:95%"><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|unitpic= | + | <code style="display:block;white-space:pre;width:95%"><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|unitpic=cloakraid |
|Glaive | |Glaive | ||
|18 | |18 | ||
Line 11: | Line 11: | ||
This results in a nice button that shows a Glaive which is 25% completed. | This results in a nice button that shows a Glaive which is 25% completed. | ||
− | {{{{BASEPAGENAME}}|unitpic= | + | {{{{BASEPAGENAME}}|unitpic=cloakraid |
|Glaive | |Glaive | ||
|18 | |18 |
Latest revision as of 17:19, 23 June 2024
Command Panel UI Button is a template to insert a picture of a UI panel button without having to resort to taking a screen shot. A simple wiki table effectively groups multiple buttons.
It is called like this:
{{Command Panel UI Button|unitpic=cloakraid
|Glaive
|18
|25
}}
This results in a nice button that shows a Glaive which is 25% completed.
18
The unitpic
parameter is required. It provides the name of the image file to be used for the unit's picture. All images are assumed to be in .png format.
Everything else is optional. The following parameters are allowed:
- The first unnamed one or
name
is the name of the unit. - The second unnamed one or
queued
is how many units are waiting in the queue to be built. - The third unnamed one or
percentage
is how much of the unit has already completed building, in percent. It shows the transparent yellow progress bar on the button. frame
is the rectangle around the unit. It defaults toMobile
, but other values includeFac
for builders andMisc
for radars and jammers. When in doubt, look at the frame in the actual game.hotkey
is the shortcut key assigned to the button.price
is the price of the unit in Metal and Energy.
A full or partial panel can be simulated using wiki tables:
Q
120
|
W
65
|
E
90
| |
H
600
| |||
1
|
3
|
5
|
1
|