Template:Planet modifier:修订间差异

(文本替换 - 替换“Category:Templates”为“Category:模板”)
(image)
第1行: 第1行:
<includeonly><span style="z-index: 1;">[[File:{{{1}}}.png|{{{w|60px}}}]]</span><span style="z-index: 2; position: relative; margin-left: -{{{w|60px}}};">[[File:Pm_frame_{{{2|1}}}.png|{{{w|60px}}}|link={{{link|{{#if:{{{3|}}}|{{{3}}}}}}}}]]{{#if:{{{3|}}}|&nbsp;{{{3}}}}}</span></includeonly><noinclude>
<includeonly><span style="z-index: 1;">[[File:{{#if:{{{image|}}}|{{{image}}}|{{{1}}}.png}}|{{{w|60px}}}]]</span><span style="z-index: 2; position: relative; margin-left: -{{{w|60px}}};">[[File:Pm_frame_{{{2|1}}}.png|{{{w|60px}}}|link={{{link|{{#if:{{{3|}}}|{{{3}}}}}}}}]]{{#if:{{{3|}}}|&nbsp;{{{3}}}}}</span></includeonly><noinclude>
{{Template doc}}
{{Template doc}}
[[Category:模板]]
[[Category:模板]]
</noinclude>
</noinclude>

2022年4月12日 (二) 21:40的版本

[查看] [编辑]Template-info.png 模板文档

This template displays a planet modifier icon with a green, yellow or red frame.

Parameter

Parameter Description Default Status
1 To specify the planet modifier file empty required
2 To specify the planet modifier frame:

1 = green; 2 = yellow; 3 = red; as in the script files

1 required
3 planet modifier name empty optional
w To specify the size of the planet modifier file 60px optional

Examples

  1. {{Planet modifier|pm_archaeology|3}} will display: Pm archaeology.pngPm frame 3.png
  2. {{Planet modifier|Pm_crime|3|Criminal Underworld}} will display: Pm crime.pngPm frame 3.png Criminal Underworld
  3. {{Planet modifier|Pm_machine_sapience|2|w=24px}} Zen World will display: Pm machine sapience.pngPm frame 2.png Zen World