FANDOM


(+interwiki)
 
(未显示1个用户的4个中间版本)
第1行: 第1行:
<noinclude>{{not|Template:Champion Data}}</noinclude>
+
<includeonly>:To edit the values depicted on this page, visit: [[Module:ChampionData/data]].
[[File:{{#if:{{{image|}}}|{{{image}}}|ChampionSquare.png}}|128px|border|left|{{{1}}}|link={{#if:{{{article|}}}|{{{article}}}|{{#if:{{{native_name|}}}|{{{native_name}}}|{{{1|}}}}}}}]]
+
[[File:{{{1|Champion}}} OriginalSquare.png|128px|border|left|{{{1|}}}|link={{{1|}}}}}]]
<div style="float:right;clear:right;">{{championtip|{{{1}}}}}</div>
 
   
  +
This page documents the various independently retrievable data items about '''[[{{{1}}}]]'''. This article is a relic of the previous system we employed that utilized data templates to perform the same function, but it remains as a hub for Ability data templates that exist as subpages of this page. All champion data pages can be found: [[:Category:Champion data templates]].
  +
  +
{{clr}}
  +
== Champion pages ==
  +
<div style="float:right;clear:right;">{{championtip|{{{1}}}}}</div>
 
{{Tocright}}
 
{{Tocright}}
該模板將了關於 '''{{#if:{{{disp_name|}}}|[[{{{article|{{{disp_name}}}}}}]]|<code><nowiki>[[{{{article|{{{disp_name}}}}}}]]</nowiki></code>}}''' 的各可獲取數據參數按照標準化的模板形式進行獲取。其他內含“Data”字段的模板可見[[:Category:資料模板]]。
+
* Pages:
  +
** [[{{{1}}}]]
  +
** [[{{{1}}}/Abilities]]
  +
** [[{{{1}}}/TFT]] (if applicable)
  +
** [[{{{1}}}/LOR]] (if applicable)
  +
** [[{{{1}}}/Background]]
  +
** [[{{{1}}}/Quotes]]
  +
** [[{{{1}}}/Development]]
  +
** [[{{{1}}}/History]]
  +
** [[{{{1}}}/Skins]]
  +
** [[{{{1}}}/Trivia]]
  +
* Categories:
  +
** [[:Category:{{{1}}}|Champion category]]
  +
** [[:Category:{{{1}}} skins|Skins]]
  +
** [[:Category:{{{1}}} loading screens|Loading screens]]
  +
** [[:Category:{{{1}}} voice-overs|Voice-overs]]
  +
** [[:Category:{{{1}}} ability icons|Ability icons]]
  +
** [[:Category:{{{1}}} ability videos|Ability videos]]
  +
* Data subpages:
  +
** [[Template:Data {{{1}}}/{{#explode:{{ccd|{{{1}}}|skill_i|csv}}|,|0}}]]
  +
** [[Template:Data {{{1}}}/{{#explode:{{ccd|{{{1}}}|skill_q|csv}}|,|0}}]]
  +
** [[Template:Data {{{1}}}/{{#explode:{{ccd|{{{1}}}|skill_w|csv}}|,|0}}]]
  +
** [[Template:Data {{{1}}}/{{#explode:{{ccd|{{{1}}}|skill_e|csv}}|,|0}}]]
  +
** [[Template:Data {{{1}}}/{{#explode:{{ccd|{{{1}}}|skill_r|csv}}|,|0}}]]
   
== 英雄頁面 ==
 
* 頁面:
 
** [[{{{disp_name}}}]]
 
** [[{{{disp_name|{{{1}}}}}}/背景故事|背景故事]]
 
** [[{{{disp_name|{{{1}}}}}}/游戏技巧|游戏技巧]]
 
** [[{{{disp_name|{{{1}}}}}}/皮肤与轶事|皮肤与轶事]]
 
* 分類:
 
** [[:Category:{{{disp_name|{{{1}}}}}}|英雄分類]]
 
** [[:Category:{{{disp_name|{{{1}}}}}}皮膚|皮膚]]
 
** [[:Category:{{{disp_name|{{{1}}}}}}載入畫面|載入畫面]]
 
** [[:Category:{{{disp_name|{{{1}}}}}}配音|配音]]
 
** [[:Category:{{{disp_name|{{{1}}}}}}技能圖示|技能圖示]]
 
** [[:Category:{{{disp_name|{{{1}}}}}}技能影片|技能影片]]
 
 
{{Clr}}
 
{{Clr}}
   
== 參數 ==
+
== Parameters ==
{| class="wikitable"
+
{| class="article-table"
  +
| 1 || {{{1}}} || Necessary: Used for identification
 
|-
 
|-
!參數名稱!!值!!備註
+
| id || {{ccd|{{{1}}}|id}} || Riot's unique champion id in their API
 
|-
 
|-
|<code>1</code>||<code>{{{1}}}</code> || 模板後半部名稱<ref>It may seem odd, but a template cannot retrieve its own name (PAGENAME only provides this on the template page itself), and even if it could, a string operation would be needed to remove "Data ". Putting the name of the entity in the data template removes the need to supply it as a parameter when the data template is called (in the cases that it would need this name).</ref>
+
| apiname || {{ccd|{{{1}}}|apiname}} || Riot's unique champion name in their API
 
|-
 
|-
|<code>article</code>||{{#if:{{{article|}}}|<code>{{{article}}}</code>}}||條目名稱;needs to be specified only if it differs from <code>{{{1}}}</code>; in applications, use <code><nowiki>[[{{{article|{{{1}}}}}}]]</nowiki></code> to link to the article (as has been done at the top of this page)
+
| title || {{ccd|{{{1}}}|title}} || Champion title
 
|-
 
|-
|<code>native_name</code>||{{#if:{{{native_name|}}}|<code>{{{native_name}}}</code>}}||英雄原始名稱,建議使用英文原文
+
| resource || {{ccd|{{{1}}}|resource}} || '''The contents of the champion's secondary bar'''. This is usually the champion's resource, but not all resources use the secondary bar. For example, Sett's would be ``resource=Grit`` despite having no casting resource.
 
|-
 
|-
|<code>disp_name</code>||{{#if:{{{disp_name|}}}|<code>{{{disp_name}}}</code>}}||英雄名稱建議使用中文
+
| fullname || {{ccd|{{{1}}}|fullname}} || Lore character's full given name. This is used in the champion roster's search feature
 
|-
 
|-
|<code>fullname</code>||{{#if:{{{fullname|}}}|<code>{{{fullname}}}</code>}}||全名
+
| nickname || {{ccd|{{{1}}}|nickname}} || Other given names. This is used in the champion roster's search feature
 
|-
 
|-
|<code>name</code>||{{#if:{{{name|}}}|<code>{{{name}}}</code>}}||英雄名稱建議使用英文
+
| date || {{ccd|{{{1}}}|date}} || Release date
 
|-
 
|-
|<code>ms</code>||{{#if:{{{ms|}}}|<code>{{{ms}}}</code>}}||英雄移動速度
+
| patch || {{ccd|{{{1}}}|patch}} || Release patch
 
|-
 
|-
|<code>range</code>||{{#if:{{{range|}}}|<code>{{{range}}}</code>}}||英雄攻擊距離
+
| changes || {{ccd|{{{1}}}|changes}} || Last patch the champion was changed
 
|-
 
|-
|<code>attack_delay</code>||{{#if:{{{attack_delay|}}}|<code>{{{attack_delay}}}</code>}}||used in Riot's old code.
+
| role || {{ccd|{{{1}}}|role|csv}} || Champion roles as a comma list
 
|-
 
|-
|<code>as_base</code>||{{#if:{{{as_base|}}}|<code>{{{as_base}}}</code>}}||攻擊速度基礎值
+
| damage || {{ccd|{{{1}}}|damage}} || Damage rating
 
|-
 
|-
|<code>as_lvl</code>||{{#if:{{{as_lvl|}}}|<code>{{{as_lvl}}}</code>}}||每級攻擊速度成長值
+
| toughness || {{ccd|{{{1}}}|toughness}} || Toughness rating
|-2.1
 
|<code>dam_base</code>||{{#if:{{{dam_base|}}}|<code>{{{dam_base}}}</code>}}||基礎攻擊力
 
 
|-
 
|-
|<code>dam_lvl</code>||{{#if:{{{dam_lvl|}}}|<code>{{{dam_lvl}}}</code>}}||每級成長攻擊力
+
| control || {{ccd|{{{1}}}|control}} || Control rating
 
|-
 
|-
|<code>arm_base</code>||{{#if:{{{arm_base|}}}|<code>{{{arm_base}}}</code>}}||基礎護甲值
+
| mobility || {{ccd|{{{1}}}|mobility}} || Mobility rating
 
|-
 
|-
|<code>arm_lvl</code>||{{#if:{{{arm_lvl|}}}|<code>{{{arm_lvl}}}</code>}}||每級成長護甲值
+
| utility || {{ccd|{{{1}}}|utility}} || Utility rating
 
|-
 
|-
|<code>mr_base</code>||{{#if:{{{mr_base|}}}|<code>{{{mr_base}}}</code>}}||基礎法術抗性
+
| difficulty || {{ccd|{{{1}}}|difficulty}} || Difficulty rating
 
|-
 
|-
|<code>mr_lvl</code>||{{#if:{{{mr_lvl|}}}|<code>{{{mr_lvl}}}</code>}}||每級成長法術抗性
+
| style || {{ccd|{{{1}}}|style}} || Style rating
 
|-
 
|-
|<code>hp_base</code>||{{#if:{{{hp_base|}}}|<code>{{{hp_base}}}</code>}}||基礎生命值
+
| adaptivetype || {{ccd|{{{1}}}|adaptivetype}} || Adaptive Force type (default: Physical)
 
|-
 
|-
|<code>hp_lvl</code>||{{#if:{{{hp_lvl|}}}|<code>{{{hp_lvl}}}</code>}}||每級成長生命值
+
| rangetype || {{ccd|{{{1}}}|rangetype}} || Basic attack classification
 
|-
 
|-
|<code>mp_base</code>||{{#if:{{{mp_base|}}}|<code>{{{mp_base}}}</code>}}||基礎法力值、能量值、熱量、怒氣等
+
| be || {{ccd|{{{1}}}|be}} || {{BE}} cost
 
|-
 
|-
|<code>mp_lvl</code>||{{#if:{{{mp_lvl|}}}|<code>{{{mp_lvl}}}</code>}}||每級成長法力值、能量值、熱量、怒氣等
+
| rp || {{ccd|{{{1}}}|rp}} || {{RP}} cost
 
|-
 
|-
|<code>hp5_base</code>||{{#if:{{{hp5_base|}}}|<code>{{{hp5_base}}}</code>}}||基礎生命回复(每5秒)
+
! colspan="3" | Abilities
 
|-
 
|-
|<code>hp5_lvl</code>||{{#if:{{{hp5_lvl|}}}|<code>{{{hp5_lvl}}}</code>}}||成長基礎回复(每5秒)
+
| skill_i || {{ccd|{{{1}}}|skill_i|csv}} || Innate ability
 
|-
 
|-
|<code>mp5_base</code>||{{#if:{{{mp5_base|}}}|<code>{{{mp5_base}}}</code>}}||基礎法力值、能量值回复(每5秒)
+
| skill_q || {{ccd|{{{1}}}|skill_q|csv}} || Q ability
 
|-
 
|-
|<code>mp5_lvl</code>||{{#if:{{{mp5_lvl|}}}|<code>{{{mp5_lvl}}}</code>}}||成長法力值、能量值回复(每5秒)
+
| skill_w || {{ccd|{{{1}}}|skill_w|csv}} || W ability
 
|-
 
|-
|<code>resource</code>||{{#if:{{{resource|}}}|<code>{{{resource}}}</code>}}||英雄副血條的類型(法力、能量、怒氣等)
+
| skill_e || {{ccd|{{{1}}}|skill_e|csv}} || E ability
 
|-
 
|-
|<code>image</code>||{{#if:{{{image|}}}|<code>{{{image}}}</code>}}||英雄圖像;<code>ChampionSquare.png</code>
+
| skill_r || {{ccd|{{{1}}}|skill_r|csv}} || R ability
 
|-
 
|-
|<code>title</code>||{{#if:{{{title|}}}|<code>{{{title}}}</code>}}||champion title
+
! colspan="3" | Stats
 
|-
 
|-
|<code>herotype</code>||{{#if:{{{herotype|}}}|<code>{{{herotype}}}</code>}}||官方給出的英雄主要類型
+
| hp_base || {{ccd|{{{1}}}|hp_base}} || Base health
 
|-
 
|-
|<code>alttype</code>||{{#if:{{{alttype|}}}|<code>{{{alttype}}}</code>}}||官方給出的英雄次要類型
+
| hp_lvl || {{ccd|{{{1}}}|hp_lvl}} || Growth coefficient for health
 
|-
 
|-
|<code>rangetype</code>||{{#if:{{{rangetype|}}}|<code>{{{rangetype}}}</code>}}||攻擊距離類型(近戰或遠程)
+
| hp5_base || {{ccd|{{{1}}}|hp5_base}} || Base health regeneration
 
|-
 
|-
|<code>date</code>||{{#if:{{{date|}}}|<code>{{{date}}}</code>}}||發行日期(yyyy年m月d日)
+
| hp5_lvl || {{ccd|{{{1}}}|hp5_lvl}} || Growth coefficient for health regeneration
 
|-
 
|-
|<code>patch</code>||{{#if:{{{patch|}}}|<code>{{{patch}}}</code>}}||發行時的版本
+
| mp_base || {{ccd|{{{1}}}|mp_base}} || Base resource
 
|-
 
|-
|<code>changes</code>||{{#if:{{{changes|}}}|<code>{{{changes}}}</code>}}||上次更改版本
+
| mp_lvl || {{ccd|{{{1}}}|mp_lvl}} || Growth coefficient for resource
 
|-
 
|-
|<code>attack</code>||{{#if:{{{attack|}}}|<code>{{{attack}}}</code>}}||官方之物理攻擊值,最大值為10
+
| mp5_base || {{ccd|{{{1}}}|mp5_base}} || Base resource regeneration
 
|-
 
|-
|<code>health</code>||{{#if:{{{health|}}}|<code>{{{health}}}</code>}}||官方之防禦值,最大值為10
+
| mp5_lvl || {{ccd|{{{1}}}|mp5_lvl}} || Growth coefficient for resource regeneration
 
|-
 
|-
|<code>spells</code>||{{#if:{{{spells|}}}|<code>{{{spells}}}</code>}}||官方之技能強度值,最大值為10
+
| arm_base || {{ccd|{{{1}}}|arm_base}} || Base armor
 
|-
 
|-
|<code>difficulty</code>||{{#if:{{{difficulty|}}}|<code>{{{difficulty}}}</code>}}||官方之難度值,最大值為10
+
| arm_lvl || {{ccd|{{{1}}}|arm_lvl}} || Growth coefficient for armor
 
|-
 
|-
|<code>ip</code>||{{#if:{{{ip|}}}|<code>{{{ip}}}</code>}}||(由於此款遊戲分為台服和國服等兩服,所以此參數並無用途)
+
| mr_base || {{ccd|{{{1}}}|mr_base}} || Magic resistance
 
|-
 
|-
|<code>rp</code>||{{#if:{{{rp|}}}|<code>{{{rp}}}</code>}}||(由於此款遊戲分為台服和國服等兩服,所以此參數並無用途)
+
| mr_lvl || {{ccd|{{{1}}}|mr_lvl}} || Growth coefficient for magic resistance
 
|-
 
|-
|<code>ip_tw</code>||{{#if:{{{ip_tw|}}}|<code>{{{ip_tw}}}</code>}}||在台服所花費的權力點
+
| dam_base || {{ccd|{{{1}}}|dam_base}} || Base attack damage
 
|-
 
|-
|<code>rp_tw</code>||{{#if:{{{rp_tw|}}}|<code>{{{rp_tw}}}</code>}}||在台服所花費的聯盟幣
+
| dam_lvl || {{ccd|{{{1}}}|dam_lvl}} || Growth coefficient for attack damage
 
|-
 
|-
|<code>ip_cn</code>||{{#if:{{{ip_cn|}}}|<code>{{{ip_cn}}}</code>}}||在國服所花費的金幣
+
| as_base || {{ccd|{{{1}}}|as_base}} || Base attack speed
 
|-
 
|-
|<code>rp_cn</code>||{{#if:{{{rp_cn|}}}|<code>{{{rp_cn}}}</code>}}||在國服所花費的點券
+
| as_ratio || {{ccd|{{{1}}}|as_ratio}} || Modifier for bonus attack speed
 
|-
 
|-
|<code>skill_i</code>||{{#if:{{#explode:{{{skill_i}}}|;|0}}|[[File:{{#replace: {{#explode:{{{skill_i|}}}|;|0}}|:|-}}.png{{!}}22px{{!}}link={{{disp_name|{{{1}}}}}}#{{#explode:{{{skill_i|}}}|;|0}}]]}}<!-- One
+
| as_lvl || {{ccd|{{{1}}}|as_lvl}} || Growth coefficient for bonus attack speed
-->{{#if:{{#explode:{{{skill_i}}}|;|1}}|&nbsp;/ [[File:{{#replace: {{#explode:{{{skill_i|}}}|;|1}}|:|-}}.png{{!}}22px{{!}}link={{{disp_name|{{{1}}}}}}#{{#explode:{{{skill_i|}}}|;|1}}]]}}<!-- Two
 
-->{{#if:{{#explode:{{{skill_i}}}|;|2}}|&nbsp;/ [[File:{{#replace: {{#explode:{{{skill_i|}}}|;|2}}|:|-}}.png{{!}}22px{{!}}link={{{disp_name|{{{1}}}}}}#{{#explode:{{{skill_i|}}}|;|2}}]]}}<!-- Three
 
-->{{#if:{{#explode:{{{skill_i}}}|;|3}}&nbsp; / [[File:{{#replace: {{#explode:{{{skill_i|}}}|;|3}}|:|-}}.png{{!}}22px{{!}}link={{{disp_name|{{{1}}}}}}#{{#explode:{{{skill_i|}}}|;|3}}]]}}<!-- Four
 
-->||I鍵技能
 
 
|-
 
|-
|<code>skill_q</code>||{{#if:{{#explode:{{{skill_q}}}|;|0}}|[[File:{{#replace: {{#explode:{{{skill_q|}}}|;|0}}|:|-}}.png{{!}}22px{{!}}link={{{disp_name|{{{1}}}}}}#{{#explode:{{{skill_q|}}}|;|0}}]]}}<!-- One
+
| range || {{ccd|{{{1}}}|range}} || Base attack range
-->{{#if:{{#explode:{{{skill_q}}}|;|1}}|&nbsp;/ [[File:{{#replace: {{#explode:{{{skill_q|}}}|;|1}}|:|-}}.png{{!}}22px{{!}}link={{{disp_name|{{{1}}}}}}#{{#explode:{{{skill_q|}}}|;|1}}]]}}<!-- Two
 
-->{{#if:{{#explode:{{{skill_q}}}|;|2}}|&nbsp;/ [[File:{{#replace: {{#explode:{{{skill_q|}}}|;|2}}|:|-}}.png{{!}}22px{{!}}link={{{disp_name|{{{1}}}}}}#{{#explode:{{{skill_q|}}}|;|2}}]]}}<!-- Three
 
-->{{#if:{{#explode:{{{skill_q}}}|;|3}}|&nbsp;/ [[File:{{#replace: {{#explode:{{{skill_q|}}}|;|3}}|:|-}}.png{{!}}22px{{!}}link={{{disp_name|{{{1}}}}}}#{{#explode:{{{skill_q|}}}|;|3}}]]}}<!-- Four
 
-->||Q鍵技能
 
 
|-
 
|-
|<code>skill_w</code>||{{#if:{{#explode:{{{skill_w}}}|;|0}}|[[File:{{#replace: {{#explode:{{{skill_w|}}}|;|0}}|:|-}}.png{{!}}22px{{!}}link={{{disp_name|{{{1}}}}}}#{{#explode:{{{skill_w|}}}|;|0}}]]}}<!-- One
+
| range_lvl || {{ccd|{{{1}}}|range_lvl}} || Attack range per level
-->{{#if:{{#explode:{{{skill_w}}}|;|1}}|&nbsp;/ [[File:{{#replace: {{#explode:{{{skill_w|}}}|;|1}}|:|-}}.png{{!}}22px{{!}}link={{{disp_name|{{{1}}}}}}#{{#explode:{{{skill_w|}}}|;|1}}]]}}<!-- Two
 
-->{{#if:{{#explode:{{{skill_w}}}|;|2}}|&nbsp;/ [[File:{{#replace: {{#explode:{{{skill_w|}}}|;|2}}|:|-}}.png{{!}}22px{{!}}link={{{disp_name|{{{1}}}}}}#{{#explode:{{{skill_w|}}}|;|2}}]]}}<!-- Three
 
-->{{#if:{{#explode:{{{skill_w}}}|;|3}}|&nbsp;/ [[File:{{#replace: {{#explode:{{{skill_w|}}}|;|3}}|:|-}}.png{{!}}22px{{!}}link={{{disp_name|{{{1}}}}}}#{{#explode:{{{skill_w|}}}|;|3}}]]}}<!-- Four
 
-->||W鍵技能
 
 
|-
 
|-
|<code>skill_e</code>||{{#if:{{#explode:{{{skill_e}}}|;|0}}|[[File:{{#replace: {{#explode:{{{skill_e|}}}|;|0}}|:|-}}.png{{!}}22px{{!}}link={{{disp_name|{{{1}}}}}}#{{#explode:{{{skill_e|}}}|;|0}}]]}}<!-- One
+
| ms || {{ccd|{{{1}}}|ms}} || Base movement speed
-->{{#if:{{#explode:{{{skill_e}}}|;|1}}|&nbsp;/ [[File:{{#replace: {{#explode:{{{skill_e|}}}|;|1}}|:|-}}.png{{!}}22px{{!}}link={{{disp_name|{{{1}}}}}}#{{#explode:{{{skill_e|}}}|;|1}}]]}}<!-- Two
 
-->{{#if:{{#explode:{{{skill_e}}}|;|2}}|&nbsp;/ [[File:{{#replace: {{#explode:{{{skill_e|}}}|;|2}}|:|-}}.png{{!}}22px{{!}}link={{{disp_name|{{{1}}}}}}#{{#explode:{{{skill_e|}}}|;|2}}]]}}<!-- Three
 
-->{{#if:{{#explode:{{{skill_e}}}|;|3}}|&nbsp;/ [[File:{{#replace: {{#explode:{{{skill_e|}}}|;|3}}|:|-}}.png{{!}}22px{{!}}link={{{disp_name|{{{1}}}}}}#{{#explode:{{{skill_e|}}}|;|3}}]]}}<!-- Four
 
-->||E鍵技能
 
 
|-
 
|-
|<code>skill_r</code>||{{#if:{{#explode:{{{skill_r}}}|;|0}}|[[File:{{#replace: {{#explode:{{{skill_r|}}}|;|0}}|:|-}}.png{{!}}22px{{!}}link={{{disp_name|{{{1}}}}}}#{{#explode:{{{skill_r|}}}|;|0}}]]}}<!-- One
+
| ms_lvl || {{ccd|{{{1}}}|ms_lvl}} || Movement speed per level
-->{{#if:{{#explode:{{{skill_r}}}|;|1}}|&nbsp;/ [[File:{{#replace: {{#explode:{{{skill_r|}}}|;|1}}|:|-}}.png{{!}}22px{{!}}link={{{disp_name|{{{1}}}}}}#{{#explode:{{{skill_r|}}}|;|1}}]]}}<!-- Two
+
|-
-->{{#if:{{#explode:{{{skill_r}}}|;|2}}|&nbsp;/ [[File:{{#replace: {{#explode:{{{skill_r|}}}|;|2}}|:|-}}.png{{!}}22px{{!}}link={{{disp_name|{{{1}}}}}}#{{#explode:{{{skill_r|}}}|;|2}}]]}}<!-- Three
+
| crit_base || {{ccd|{{{1}}}|crit_base}} || Base critical strike damage (defaults to 200)
-->{{#if:{{#explode:{{{skill_r}}}|;|3}}|&nbsp;/ [[File:{{#replace: {{#explode:{{{skill_r|}}}|;|3}}|:|-}}.png{{!}}22px{{!}}link={{{disp_name|{{{1}}}}}}#{{#explode:{{{skill_r|}}}|;|3}}]]}}<!-- Four
+
|-
-->||R鍵技能
+
| crit_mod || {{ccd|{{{1}}}|crit_mod}} || Critical strike damage modifier
|}
+
|-
+
| missile_speed || {{ccd|{{{1}}}|missile_speed}} || Missile speed for projectile-based basic attacks
Throughout the family of templates, fixed names are used for the parameters. (The parameter names are kept short to reduce counts for the [[Wikipedia:Template_limits#Post-expand_include_size|post expand include size]] and the [[Wikipedia:Template_limits#Template_argument_size|template argument size]] in cases where these are applicable.) However, not necessarily all parameters have been given a value: some parameters may not be applicable, while for some other parameters the value may just have not been specified yet. The table shows all parameters, and for each the value, if specified.
+
|-
+
| attack_cast_time || {{ccd|{{{1}}}|attack_cast_time}} || Parameter used to calculated basic attack windup percentage
=== Deprecated ===
+
|-
The following parameters are now deprecated on the wiki.
+
| attack_total_time || {{ccd|{{{1}}}|attack_total_time}} || Parameter used to calculated basic attack windup percentage
{| class="wikitable"
+
|-
  +
| attack_delay_offset || {{ccd|{{{1}}}|attack_delay_offset}} || Parameter used to calculated basic attack windup percentage
  +
|-
  +
| windup || {{ccd|{{{1}}}|windup}} || This stat isn't in the data but is calculated using attack_cast_time, attack_total_time and attack_delay_offset.
  +
|-
  +
| windup_modifier || {{ccd|{{{1}}}|windup_modifier}} || Modifier to windup growth
  +
|-
  +
| acquisition_radius || {{ccd|{{{1}}}|acquisition_radius}} || Auto-aggro radius for basic attacks
  +
|-
  +
| selection_radius || {{ccd|{{{1}}}|selection_radius}} || Click-box radius
  +
|-
  +
| gameplay_radius || {{ccd|{{{1}}}|gameplay_radius}} || Champion's hitbox size
  +
|-
  +
| pathing_radius || {{ccd|{{{1}}}|pathing_radius}} || Champion's hitbox size for pathfinding
  +
|-
  +
! colspan="3" | Special Stats
  +
|-
  +
| aram_dmg_dealt || {{ccd|{{{1}}}|aram_dmg_dealt}} || Damage dealt modifier on ARAM
  +
|-
  +
| aram_dmg_taken || {{ccd|{{{1}}}|aram_dmg_taken}} || Damage received modifier on ARAM
  +
|-
  +
| aram_healing || {{ccd|{{{1}}}|aram_healing}} || Incoming/outgoing healing modifier on ARAM
  +
|-
  +
| aram_shielding || {{ccd|{{{1}}}|aram_shielding}} || Incoming/outgoing shield modifier on ARAM
  +
|-
  +
| urf_dmg_dealt || {{ccd|{{{1}}}|urf_dmg_dealt}} || Damage dealt modifier on URF
  +
|-
  +
| urf_dmg_taken || {{ccd|{{{1}}}|urf_dmg_taken}} || Damage received modifier on URF
  +
|-
  +
| urf_healing || {{ccd|{{{1}}}|urf_healing}} || Incoming/outgoing healing modifier on URF
  +
|-
  +
| urf_shielding || {{ccd|{{{1}}}|urf_shielding}} || Incoming/outgoing shield modifier on URF
  +
|-
  +
! colspan="3" | Depracated
  +
|-
  +
| attack || {{ccd|{{{1}}}|attack}} || Attack rating from previous client
  +
|-
  +
| defense || {{ccd|{{{1}}}|defense}} || Defense rating from the previous client
  +
|-
  +
| magic || {{ccd|{{{1}}}|magic}} || Ability-damage rating from the previous client
 
|-
 
|-
!參數名稱!!值!!備註
+
| herotype || {{ccd|{{{1}}}|herotype}} || Primary class (replaced by role)
 
|-
 
|-
|<code>hp1_base</code>||{{#if:{{{hp1_base|}}}|<code>{{{hp1_base}}}</code>}}|| Base health regeneration per 1 second.
+
| alttype || {{ccd|{{{1}}}|alttype}} || Secondary class (replaced by role)
 
|-
 
|-
|<code>mp1_base</code>||{{#if:{{{mp1_base|}}}|<code>{{{mp1_base}}}</code>}}|| Base resource bar regeneration per 1 second.
+
| as_lvl1 || {{ccd|{{{1}}}|as_lvl1}} ||
 
|-
 
|-
|<code>hp1_lvl</code>||{{#if:{{{hp1_lvl|}}}|<code>{{{hp1_lvl}}}</code>}}|| Health regeneration per 1 second increase per level.
+
| attack_delay || {{ccd|{{{1}}}|attack_delay}} ||
 
|-
 
|-
|<code>mp1_lvl</code>||{{#if:{{{mp1_lvl|}}}|<code>{{{mp1_lvl}}}</code>}}|| Resource bar regeneration per 1 second increase per level
+
| as_lvl1_bonus || {{ccd|{{{1}}}|as_lvl1_bonus}} ||
 
|}
 
|}
Riot provides regeneration values as per 5 seconds.
 
   
== Derived data ==
 
{{#if:{{{attack_delay|}}}|True <code>as_base</code> is {{fd|{{#expr:0.625 / (1 + {{{attack_delay}}})}}}}, rounded to 3 decimal places as {{fd|{{#expr:0.625 / (1 + {{{attack_delay}}})round3}}}}<ref>[[Attack speed]]</ref>
 
   
{{#if:{{{as_lvl|}}}|攻擊速度在18級時達到{{fd|{{#expr:0.625/(1+{{{attack_delay}}})*(1+{{{as_lvl}}}/100*(18-1))}}}}
+
Throughout the family of templates, fixed names are used for the parameters. (The parameter names are kept short to reduce counts for the [[Wikipedia:Template_limits#Post-expand_include_size|post expand include size]] and the [[Wikipedia:Template_limits#Template_argument_size|template argument size]] in cases where these are applicable.) However, not necessarily all parameters have been given a value: some parameters may not be applicable, while for some other parameters the value may just have not been specified yet. The table shows all parameters, and for each the value, if specified.
 
{{{!}}class="wikitable"
 
! Name !! 1 !! 2 !! 3 !! 4 !! 5 !! 6 !! 7 !! 8 !! 9 !! 10 !! 11 !! 12 !! 13 !! 14 !! 15 !! 16 !! 17 !! 18
 
{{!}}-
 
{{:User:BryghtShadow/Template:Table row Attack speed|{{{1}}}|attack_delay={{{attack_delay}}}|as_lvl={{{as_lvl}}}}}
 
{{!}}}
 
 
}}}}
 
   
 
==Retrieval of data items==
 
==Retrieval of data items==
<code><nowiki>{{data</nowiki> {{{1}}}<nowiki>|pst2|as_base}}</nowiki></code>, using parameter selection template [[Template:Pst2]], gives the parameter ''as_base'', etc.
 
 
For retrieval of more data items it is more efficient to prepare a template for that, to be used as follows:
 
 
<code><nowiki>{{data</nowiki> {{{1}}}<nowiki>|</nowiki></code>''template name''<code><nowiki>|..|..|..|..}}</nowiki></code>
 
 
so that this data template needs to be called only once.<ref>See the first two rows of the first table in [[m:Help:Array#Summary of counts for template limits]].</ref> The default template is [[Template:Show data]], producing this page.
 
   
The four parameters are optional, they are passed on to the prepared template as parameters 2-5.
+
To retrieve items from this template, use the following command:
  +
:{{t|ccd|champion-name|desired-variable}}
   
A parameter being undefined or empty typically means the same, see below. <code><nowiki>{{data ..|pst2|..}}</nowiki></code> gives the empty string and the text "<code><nowiki>{{{..}}}</nowiki></code>", respectively. Therefore an application checking the parameter has to check both. Checking whether a result is equal to e.g. the text "<code>{{{popinc}}}</code>" cannot be done directly with #ifeq in a template which itself has also a parameter with that name, because if that is defined, there would be a comparison with the value instead of the text itself. Instead, it can be checked whether the first character of the result is "<code>{</code>", e.g.: <code><nowiki>{{#ifeq:{{padleft:|1|{{data {{{continent}}}|pst2|popinc}}}}|{|..|..}}</nowiki></code>.
+
For example, {{cis|Bard}} base AD is {{ccd|Bard|dam_base}}.
   
==Creating new data templates==
+
For variables whose output is a <code>table</code> (e.g. 'role), use the following command:
[[Template:Data/preload]] can be used to create new data templates. The wikitext can be copied to the new data template. For parameters which are not applicable, the parameter definition can be deleted. For parameters to be filled in later the parameter definition (specifying the empty string as value) can be left in the wikitext to be filled in later. Do not forget parameter 1.
+
:{{t|ccd|champion-name|table-variable|format-output}}
   
==Efficiency==
+
Currently accepted format-outputs are <code>csv</code> for a comma-list or <code>tip</code> for a tip-list.
In this template system each template contains various properties of a single entity, as opposed to the other common system, where a template contains one property (e.g. population or area) of many entities. Although that other system can be convenient if updates of a property for all these entities become available together, in the case of large-scale use of data on one page that other system can be problematic due to its inefficiency. This is because of the following:
 
*There are often more entities than properties, and [[Wikipedia:wp:template limits|page counts]] (or in the case of <code>#switch</code>, average page counts) are proportional to the number of data items in the data template (if they are stored in a linear way, not in a tree, and not stored as unnamed parameters).
 
*In the case of large-scale use of data on one page there are usually one or more tables, where an entity forms a row and a property a column, because there are often more entities than properties, and because this way the sorting feature allows sorting entities based on a property. In this template system this allows producing a row with only one call of the data template, making the count not grow faster than proportional to the average number of data items stored per data template, times the number of entities in the table.
 
   
The include part of the data template of an entity does not contain a long list of its sub-entities or their properties, because that would make this method inefficient too.
+
For example, {{cis|Senna}} roles are {{ccd|Senna|role|csv}}.
   
 
{{reflist}}
 
{{reflist}}
<includeonly>[[Category:英雄資料模板|{{{1}}}]][[Category:{{{disp_name}}}|!]][[de:Vorlage:Data {{{1}}}]][[en:Template:Data {{{1}}}]][[es:Plantilla:Data {{{1}}}]][[pl:Szablon:Dane/{{{1}}}]][[pt-br:Predefinição:Data {{{1}}}]]</includeonly><noinclude>[[Category:資料模板]][[de:Vorlage:Show data]][[en:Template:Champion data]][[es:Plantilla:Show data]][[pl:Szablon:Dane]][[pt-br:Predefinição:Champion data]][[ru:Шаблон:Show data]]</noinclude>
 
   
 
Until here the documentation is automatically generated by [[Template:Champion data]].
 
Until here the documentation is automatically generated by [[Template:Champion data]].
   
<noinclude>{{Wikipedia|Template:Show data}}</noinclude>
+
[[Category:Champion data templates|{{{1}}}]][[Category:{{{1}}}|!]][[de:Vorlage:Data {{{1}}}]][[es:Plantilla:Data {{{1}}}]][[pl:Szablon:Dane/{{{1}}}]][[pt-br:Predefinição:Data {{{1}}}]][[zh:Template:Data {{{1}}}]]</includeonly><noinclude>[[Category:Data retrieval templates]][[de:Vorlage:Champion data]][[es:Plantilla:Show data]][[pl:Szablon:Dane]][[pt-br:Predefinição:Champion data]][[ru:Шаблон:Show data]][[zh:Template:Champion data]]</noinclude>

2020年6月5日 (五) 16:24的最后版本

zh:Template:Champion data

除了特别提示,社区内容遵循CC-BY-SA 授权许可。