Editing Template:Command Panel UI Button/doc

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
'''{{BASEPAGENAME}}''' 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.
 
'''{{BASEPAGENAME}}''' 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:
 
 
<code style="display:block;white-space:pre;width:95%"><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|unitpic=cloakcon
 
|Glaive
 
|18
 
|25
 
}}</nowiki></code>
 
 
This results in a nice button that shows a Glaive which is 25% completed.
 
 
{{{{BASEPAGENAME}}|unitpic=cloakcon
 
|Glaive
 
|18
 
|25
 
}}
 
 
The <code>unitpic</code> 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 <code>name</code> is the name of the unit.
 
*The second unnamed one or <code>queued</code> is how many units are waiting in the queue to be built.
 
*The third unnamed one or <code>percentage</code> is how much of the unit has already completed building, in percent. It shows the transparent yellow progress bar on the button.
 
*<code>frame</code> is the rectangle around the unit. It defaults to <code>Mobile</code>, but other values include <code>Fac</code> for builders and <code>Misc</code> for radars and jammers. When in doubt, look at the frame in the actual game.
 
*<code>hotkey</code> is the shortcut key assigned to the button.
 
*<code>price</code> is the price of the unit in Metal and Energy.
 
A full or partial panel can be simulated using wiki tables:
 
  
 
{|
 
{|
 
|{{{{BASEPAGENAME}}|unitpic=cloakcon
 
|{{{{BASEPAGENAME}}|unitpic=cloakcon
|Conjurer
 
 
|frame=Fac
 
|frame=Fac
 
|hotkey=Q
 
|hotkey=Q
 
|price=120}}
 
|price=120}}
 
|{{{{BASEPAGENAME}}|unitpic=cloakraid
 
|{{{{BASEPAGENAME}}|unitpic=cloakraid
|Glaive
+
|frame=Mobile
 
|hotkey=W
 
|hotkey=W
 
|price=65}}
 
|price=65}}
 
|{{{{BASEPAGENAME}}|unitpic=cloakskirm
 
|{{{{BASEPAGENAME}}|unitpic=cloakskirm
|Ronin
+
|frame=Mobile
 
|hotkey=E
 
|hotkey=E
 
|price=90}}
 
|price=90}}
 
|-
 
|-
 
|{{{{BASEPAGENAME}}|unitpic=cloakjammer
 
|{{{{BASEPAGENAME}}|unitpic=cloakjammer
|Iris
 
 
|hotkey=H
 
|hotkey=H
|frame=Misc
 
 
|price=600}}
 
|price=600}}
 
|-
 
|-
 
|{{{{BASEPAGENAME}}|unitpic=cloakraid
 
|{{{{BASEPAGENAME}}|unitpic=cloakraid
|Glaive
+
|frame=Mobile
 
|queued=1
 
|queued=1
 
|progress=50}}
 
|progress=50}}
 
|{{{{BASEPAGENAME}}|unitpic=cloakskirm
 
|{{{{BASEPAGENAME}}|unitpic=cloakskirm
|Ronin
+
|frame=Mobile
 
|queued=3
 
|queued=3
 
}}
 
}}
 
|{{{{BASEPAGENAME}}|unitpic=cloakcon
 
|{{{{BASEPAGENAME}}|unitpic=cloakcon
|Conjurer
 
 
|frame=Fac
 
|frame=Fac
 
|queued=5
 
|queued=5
 
}}
 
}}
 
|{{{{BASEPAGENAME}}|unitpic=cloakjammer
 
|{{{{BASEPAGENAME}}|unitpic=cloakjammer
|Iris
 
|frame=Misc
 
 
|queued=1
 
|queued=1
 
}}
 
}}
 
|}
 
|}

Please note that all contributions to Zero-K are considered to be released under the Creative Commons Attribution-ShareAlike (see Zero-K:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Template used on this page: