Difference between revisions of "Template:Infobox zkunit"
Jump to navigation
Jump to search
Debug data:
(created unit infobox) |
m |
||
(50 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
+ | <noinclude>[[Category:ZK Infoboxes]]</noinclude> | ||
{{ infobox | {{ infobox | ||
Line 5: | Line 6: | ||
|subheaderstyle = | |subheaderstyle = | ||
|title = | |title = | ||
− | |above = {{{name}}} | + | |above = {{{name}}}{{#if:{{{defname|}}}|<br>({{{defname}}})}} |
− | |subheader = {{{description}}} | + | |subheader = {{#invoke:String|replace|{{{description|}}}| - |<hr> }} |
|imagestyle = | |imagestyle = | ||
|captionstyle = | |captionstyle = | ||
− | | | + | |image = {{unit image|{{{image|}}}|alt={{{name}}}}}{{#if:{{{icontype|}}}| {{#ifexist:File:Uniticon {{{icontype}}}.png|[[File:Uniticon {{{icontype}}}.png|x48px|alt={{{icontype|}}}|link=]]|<img src="//manual.zero-k.info/icons/{{{icontype}}}.png" height="48" alt="{{{icontype|}}}">}}|}} |
+ | <!--(was disabled as thumbnails were not supported) [[File:Uniticon {{{icontype}}}.png|64px]] --> | ||
|caption = | |caption = | ||
Line 18: | Line 20: | ||
− | | header1 = | + | | header1 = Stats |
− | | label2 = | + | | label2 = Cost |
− | | data2 = {{{ | + | | data2 = {{{cost|}}} |
− | | label3 = | + | | label3 = Hit Points |
− | | data3 = {{{ | + | | data3 = {{{hitpoints|}}} |
− | | label4 | + | | label4 = Mass |
− | | data4 | + | | data4 = {{{mass|}}} |
| label5 = Movement Speed (elmo/s) | | label5 = Movement Speed (elmo/s) | ||
| data5 = {{{movespeed|}}} | | data5 = {{{movespeed|}}} | ||
+ | |||
+ | | label6 = Turn Rate (deg/s) | ||
+ | | data6 = {{{turnrate|}}} | ||
+ | | label7 = Energy (E/s) | ||
+ | | data7 = {{{energy||}}} | ||
− | | | + | | label8 = Vision Radius (elmo) |
+ | | data8 = {{{sight|}}} | ||
+ | |||
+ | | label9 = Sonar (elmo) | ||
+ | | data9 = {{{sonar|}}} | ||
+ | |||
+ | | label10 = Transportable | ||
+ | | data10 = {{{transportable|}}} | ||
+ | |||
+ | | label11 = Altitude (elmo) | ||
+ | | data11 = {{{altitude|}}} | ||
+ | |||
+ | | label12 = Grid link range (elmo) | ||
+ | | data12 = {{{gridlink|}}} | ||
+ | |||
+ | | header40 = {{#if: {{{abilities|}}} |Abilities|}} | ||
+ | |||
+ | | data41 = {{{abilities|}}} | ||
+ | |||
+ | | header50 = Weapons | ||
− | | | + | | data51 = {{{weapons|None}}} |
− | |||
− | |||
− | | | + | | label95 = Unitname |
+ | | data95 = {{{unitname|}}} | ||
}} | }} | ||
+ | <noinclude> | ||
+ | {{Documentation}} | ||
+ | <!-- Please add categories and interwiki links to /doc subpage, not here! --> | ||
+ | </noinclude> |
Latest revision as of 21:06, 1 September 2024
{{{name}}} | |
---|---|
Stats | |
Weapons | |
None |
Full blank syntax
{{ Infobox zkunit <!-- Required fields --> name = <!-- Optional fields --> unitname = defname = description = image = icontype = cost = hitpoints = mass = movespeed = turnrate = energy = sight = sonar = transportable = altitude = gridlink = abilities = <!-- Get Template:Infobox zkability ### --> weapons = <!-- Get Template:Infobox zkweapon --> }}
Discrepancies between this representation and the context menu ingame: (The following list may not be exhaustive.)
- Ingame shields are represented as weapons.
- Ingame EMP/slow/disarm weapon damage is in the same entry as ordinary damage.
The above documentation is transcluded from Template:Infobox zkunit/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |
Debug data:
[SQLBagOStuff] MainObjectStash using store ReplicatedBagOStuff
[objectcache] MainWANObjectCache using store EmptyBagOStuff
IP: 3.136.236.82
Start request GET /mediawiki/index.php?diff=cur&oldid=755&title=Template%3AInfobox_zkunit
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.136.236.82",
"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 "fuolmbqkqusk67k42hvag8o2dkc24356" is unsaved, marking dirty in constructor
[session] SessionBackend "fuolmbqkqusk67k42hvag8o2dkc24356" save: dataDirty=1 metaDirty=1 forcePersist=0
[cookie] already deleted setcookie: "wikidb229_mw__session", "", "1710338953", "/", "", "", "1"
[cookie] already deleted setcookie: "wikidb229_mw_UserID", "", "1710338953", "/", "", "", "1"
[cookie] already deleted setcookie: "wikidb229_mw_Token", "", "1710338953", "/", "", "", "1"
[cookie] already deleted setcookie: "forceHTTPS", "", "1710338953", "/", "", "", "1"
[DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: connected to database 0 at 'localhost'.
Title::getRestrictionTypes: applicable restrictions to [[Template:Infobox zkunit]] are {edit,move}
[ContentHandler] Created handler for wikitext: WikitextContentHandler
Article::view: showing diff page
DifferenceEngine old '755' new 'cur' 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'
[GlobalTitleFail] MessageCache::parse called by DifferenceEngine->getMultiNotice/DifferenceEngine::intermediateEditsMsg/Message->parse/Message->toString/Message->parseText/MessageCache->parse with no title set.
WikiPage::getParserOutput: using parser cache: yes
[caches] parser: 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
Parser cache options found.
[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
ParserOutput cache found.
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:Infobox zkunit]] are {edit,move}