Difference between revisions of "Template:Autoinfobox zkunit"
Jump to navigation
Jump to search
Debug data:
(First draft) |
Tag: Undo |
||
(14 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | <includeonly>{{ Infobox zkunit | |
− | <includeonly> | ||
− | {{ Infobox zkunit | ||
<!-- Required fields --> | <!-- Required fields --> | ||
− | defname = {{{defname}}} | + | |defname = {{{defname}}} |
− | name = {{{name|{{#invoke:UnitData|getData|{{{defname}}}|name}}}}} | + | |name = {{{name|{{#invoke:UnitData|getData|{{{defname}}}|name}}}}} |
<!-- Optional fields --> | <!-- Optional fields --> | ||
− | unitname = | + | |unitname = |
− | description = {{{description|{{#invoke:UnitData|getData|{{{defname}}}|description}}}}} | + | |description = {{{description|{{#invoke:UnitData|getData|{{{defname}}}|description}}}}} |
− | image = {{{image|}}} | + | |image = {{{image|{{{defname}}}}}} |
− | icontype = {{{icontype|{{#invoke:UnitData|getData|{{{defname}}}|icontype}}}}} | + | |icontype = {{{icontype|{{#invoke:UnitData|getData|{{{defname}}}|icontype}}}}} |
− | cost = {{{cost|{{#invoke:UnitData|getData|{{{defname}}}|cost}}}}} | + | |cost = {{{cost|{{#invoke:UnitData|getData|{{{defname}}}|cost}}}}} |
− | hitpoints = {{{hitpoints|{{#invoke:UnitData|getData|{{{defname}}}|hitpoints}}}}} | + | |hitpoints = {{{hitpoints|{{#invoke:UnitData|getData|{{{defname}}}|hitpoints}}}}} |
− | mass = {{{mass|{{#invoke:UnitData|getData|{{{defname}}}|mass}}}}} | + | |mass = {{{mass|{{#invoke:UnitData|getData|{{{defname}}}|mass}}}}} |
− | movespeed = {{{ | + | |movespeed = {{{movespeed|{{#invoke:UnitData|getData|{{{defname}}}|movespeed}}}}} |
− | turnrate = {{{turnrate|{{#invoke:UnitData|getData|{{{defname}}}|turnrate}}}}} | + | |turnrate = {{{turnrate|{{#invoke:UnitData|getData|{{{defname}}}|turnrate}}}}} |
− | energy = {{{energy|{{#invoke:UnitData|getData|{{{defname}}}|energy}}}}} | + | |energy = {{{energy|{{#invoke:UnitData|getData|{{{defname}}}|energy}}}}} |
− | sight = {{{sight|{{#invoke:UnitData|getData|{{{defname}}}|sight}}}}} | + | |sight = {{{sight|{{#invoke:UnitData|getData|{{{defname}}}|sight}}}}} |
− | sonar = {{{sonar|{{#invoke:UnitData|getData|{{{defname}}}|sonar}}}}} | + | |sonar = {{{sonar|{{#invoke:UnitData|getData|{{{defname}}}|sonar}}}}} |
− | transportable = {{{transportable|{{#invoke:UnitData|getData|{{{defname}}}|transportable}}}}} | + | |transportable = {{{transportable|{{#invoke:UnitData|getData|{{{defname}}}|transportable}}}}} |
− | altitude = {{{altitude|{{#invoke:UnitData|getData|{{{defname}}}|altitude}}}}} | + | |altitude = {{{altitude|{{#invoke:UnitData|getData|{{{defname}}}|altitude}}}}} |
− | gridlink = {{{gridlink|{{#invoke:UnitData|getData|{{{defname}}}|gridlink}}}}} | + | |gridlink = {{{gridlink|{{#invoke:UnitData|getData|{{{defname}}}|gridlink}}}}} |
− | abilities = | + | |abilities = {{{abilities|{{#invoke:UnitData|printAbilityInfoboxes|{{{defname}}}|true}} }}} |
− | + | |weapons = {{{weapons|{{#invoke:UnitData|printWeaponInfoboxes|{{{defname}}}|true}} }}} | |
− | weapons = | + | }}</includeonly> |
− | |||
− | }} | ||
− | </includeonly> | ||
<noinclude> | <noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
<!-- Please add categories and interwiki links to /doc subpage, not here! --> | <!-- Please add categories and interwiki links to /doc subpage, not here! --> | ||
</noinclude> | </noinclude> |
Latest revision as of 22:21, 2 September 2024
This template uses Module:UnitData to autogenerate unit infoboxes, transcluding and filling in Template:Infobox zkunit data from Module:UnitData/data. Specific tags can be overridden by manually specifying them, if necessary.
Example usage:
{{Autoinfobox zkunit |defname=striderdetriment |name=Name override }}
The module can also be invoked directly without this template to generate an infobox (note that output may not be identical in some cases; observed with automatic detection of buildpic on Reef):
{{#invoke:UnitData|printInfobox|defname=striderdetriment|name=Name override}}
When invoking from module, defname
may be passed as an anonymous parameter instead.
For more information, see the module page.
The above documentation is transcluded from Template:Autoinfobox zkunit/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) 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: 18.117.238.162
Start request GET /mediawiki/index.php?diff=cur&oldid=9250&title=Template%3AAutoinfobox_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
COOKIE: wikidb229_mw__session=ebtavr9d3b3bpbq23qqjtga5e5penv9r
ACCEPT-ENCODING: gzip, br, zstd, deflate
ACCEPT: */*
CONNECTION: close[localisation] LocalisationCache: using store LCStoreDB
[session] SessionManager using store SqlBagOStuff
[session] Session "ebtavr9d3b3bpbq23qqjtga5e5penv9r" requested without UserID cookie
[DBReplication] Cannot use ChronologyProtector with EmptyBagOStuff
[DBReplication] Wikimedia\Rdbms\LBFactory::getChronologyProtector: request info {
"IPAddress": "18.117.238.162",
"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 #126 (handle id #120) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #126 (handle id #120) will be used for SqlBagOStuff
[DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: connected to database 0 at 'localhost'.
Title::getRestrictionTypes: applicable restrictions to [[Template:Autoinfobox zkunit]] are {edit,move}
[ContentHandler] Created handler for wikitext: WikitextContentHandler
Article::view: showing diff page
DifferenceEngine old '9250' new 'cur' rcid ''
[MessageCache] MessageCache using store SqlBagOStuff
[SQLBagOStuff] Connection mysql object #126 (handle id #120) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #126 (handle id #120) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #126 (handle id #120) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #126 (handle id #120) will be used for SqlBagOStuff
[SQLBagOStuff] SqlBagOStuff::lock failed due to timeout for wikidb229-mw_:messages:en.
[SQLBagOStuff] Connection mysql object #126 (handle id #120) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #126 (handle id #120) 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 #126 (handle id #120) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #126 (handle id #120) will be used for SqlBagOStuff
Parser cache options found.
[SQLBagOStuff] Connection mysql object #126 (handle id #120) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #126 (handle id #120) 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:Autoinfobox zkunit]] are {edit,move}