Template:Tradition/doc:修订间差异

(文本替换 - 替换“Category:Tradition_icons”为“Category:传统图标”)
(21:20, 15 March 2022‎ SirBlackAxe)
 
第10行: 第10行:
! Parameter !! Description !! Required !! Default
! Parameter !! Description !! Required !! Default
|-
|-
| image || Image file || optional || Tradition parameter_1 parameter_2.png
| image || Image file || {{yellow|optional}} || Tradition parameter_1 parameter_2.png
|-
|-
| 1 || Tradition tree || '''required''' || none
| 1 || Tradition tree || '''required''' || none
|-
|-
| 2 || Tradition name || '''required''' || none
| 2 || Tradition name
* Determines the icon image if not overridden by the '''image''' parameter
* If set to '''tree''', the phrase "tradition tree" will be appended to the image hovertext and iconify text (if applicable)
| {{yellow|optional}} || none (Uses the tradition tree image instead)
|-
|-
| 3 
| 3 
| Format
| Format
* icon = 24px, no text
* icon = x24px, no text
* iconify = 24px, text
* iconify = x24px, text
* <num>px = <num>px, no text
* <num>px = <num>px, no text
| optional || no resize, no text
| {{yellow|optional}} || no resize, no text
|}
|}


== Examples ==
== Examples ==
<code><nowiki>{{tradition|expansion}}</nowiki></code><br>
{{tradition|expansion}}
<code><nowiki>{{tradition|expansion|tree}}</nowiki></code><br>
{{tradition|expansion|tree}}
<code><nowiki>{{tradition|Expansion|tree|iconify}}</nowiki></code><br>
{{tradition|Expansion|tree|iconify}}
<code><nowiki>{{tradition|expansion|Galactic Ambition}}</nowiki></code><br>
<code><nowiki>{{tradition|expansion|Galactic Ambition}}</nowiki></code><br>
{{tradition|expansion|Galactic Ambition}}
{{tradition|expansion|Galactic Ambition}}

2022年5月11日 (三) 15:58的最新版本

这是 Template:Tradition模板文档
当直接浏览时,使用变量可能会失效,请不要使用硬编码来代替页面名或地址。

This template can be used to generate icons for traditions.

Tradition images can be found here: Category:传统图标

Parameters[编辑源代码]

Parameter Description Required Default
image Image file optional Tradition parameter_1 parameter_2.png
1 Tradition tree required none
2 Tradition name
  • Determines the icon image if not overridden by the image parameter
  • If set to tree, the phrase "tradition tree" will be appended to the image hovertext and iconify text (if applicable)
optional none (Uses the tradition tree image instead)
3 Format
  • icon = x24px, no text
  • iconify = x24px, text
  • <num>px = <num>px, no text
optional no resize, no text

Examples[编辑源代码]

{{tradition|expansion}}
Expansion

{{tradition|expansion|tree}}
Expansion 传统树

{{tradition|Expansion|tree|iconify}}
Expansion 传统树 Expansion 传统树

{{tradition|expansion|Galactic Ambition}}
Galactic Ambition

{{tradition|expansion|Galactic Ambition|icon}}
Galactic Ambition

{{tradition|expansion|Galactic Ambition|iconify}}
Galactic Ambition Galactic Ambition

{{tradition|expansion|Galactic Ambition|iconify|image=unknown.png}}
Galactic Ambition Galactic Ambition