Difference between revisions of "Template:Command Panel UI Button/doc"
Jump to navigation
Jump to search

Debug data:
(Detailed parameters.) |
|||
Line 46: | Line 46: | ||
|Iris | |Iris | ||
|hotkey=H | |hotkey=H | ||
+ | |frame=Misc | ||
|price=600}} | |price=600}} | ||
|- | |- |
Revision as of 12:31, 16 October 2022
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=cloakcon
|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
|
Debug data:
[SQLBagOStuff] MainObjectStash using store ReplicatedBagOStuff
[objectcache] MainWANObjectCache using store EmptyBagOStuff
IP: 3.137.154.248
Start request GET /mediawiki/index.php?diff=next&oldid=8623&title=Template%3ACommand_Panel_UI_Button%2Fdoc
HTTP HEADERS:
CONTENT-TYPE:
CONTENT-LENGTH: 0
USER-AGENT: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HOST: zero-k.info
ACCEPT-ENCODING: gzip, br, zstd, deflate
ACCEPT: */*
CONNECTION: close[localisation] LocalisationCache: using store LCStoreDB
[session] SessionManager using store SqlBagOStuff
[DBReplication] Cannot use ChronologyProtector with EmptyBagOStuff
[DBReplication] Wikimedia\Rdbms\LBFactory::getChronologyProtector: request info {
"IPAddress": "3.137.154.248",
"UserAgent": "Mozilla\/5.0 AppleWebKit\/537.36 (KHTML, like Gecko; compatible; ClaudeBot\/1.0; +claudebot@anthropic.com)",
"ChronologyProtection": false,
"ChronologyPositionIndex": 0,
"ChronologyClientId": false
}[DBConnection] Wikimedia\Rdbms\LoadBalancer::lazyLoadReplicationPositions: executed chronology callback.
[DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: connected to database 0 at 'localhost'.
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
[session] SessionBackend "3k2v4rrb3d37jpsqc51ipdtman6qj3k6" is unsaved, marking dirty in constructor
[session] SessionBackend "3k2v4rrb3d37jpsqc51ipdtman6qj3k6" save: dataDirty=1 metaDirty=1 forcePersist=0
[cookie] already deleted setcookie: "wikidb229_mw__session", "", "1710339280", "/", "", "", "1"
[cookie] already deleted setcookie: "wikidb229_mw_UserID", "", "1710339280", "/", "", "", "1"
[cookie] already deleted setcookie: "wikidb229_mw_Token", "", "1710339280", "/", "", "", "1"
[cookie] already deleted setcookie: "forceHTTPS", "", "1710339280", "/", "", "", "1"
[DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: connected to database 0 at 'localhost'.
Title::getRestrictionTypes: applicable restrictions to [[Template:Command Panel UI Button/doc]] are {edit,move}
[ContentHandler] Created handler for wikitext: WikitextContentHandler
Article::view: showing diff page
DifferenceEngine old '8623' new 'next' rcid ''
[MessageCache] MessageCache using store SqlBagOStuff
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
[SQLBagOStuff] SqlBagOStuff::lock failed due to timeout for wikidb229-mw_:messages:en.
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
[MessageCache] MessageCache::load: Loading en... local cache is empty, global cache is expired/volatile, loading from database
ParserFactory: using preprocessor: Preprocessor_Hash
Unstubbing $wgLang on call of $wgLang::_unstub from ParserOptions->__construct
DifferenceEngine old '0' new '0' rcid '0'
WikiPage::getParserOutput: using parser cache: no
[caches] parser: SqlBagOStuff
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
[Preprocessor] Cached preprocessor output (key: wikidb229-mw_:preprocess-hash:4370397ad3cdd0731b127b5f752e19f8:0)
[Preprocessor] Cached preprocessor output (key: wikidb229-mw_:preprocess-hash:7a85c5c351c7f0a8e89680927b88a5c2:1)
[Preprocessor] Cached preprocessor output (key: wikidb229-mw_:preprocess-hash:4370397ad3cdd0731b127b5f752e19f8:0)
MediaWiki::preOutputCommit: primary transaction round committed
MediaWiki::preOutputCommit: pre-send deferred updates completed
MediaWiki::preOutputCommit: session changes committed
MediaWiki::preOutputCommit: LBFactory shutdown completed
Title::getRestrictionTypes: applicable restrictions to [[Template:Command Panel UI Button/doc]] are {edit,move}