Template:Pm-box/doc

< Template:Pm-box
Revision as of 21:05, 8 March 2022 by 自由之民 (talk | contribs) (文本替换 - 替换“{{template doc page viewed directly}}</noinclude>”为“{{template doc page viewed directly}}</noinclude>[[en:{{FULLPAGENAME}}]]”)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
这是 Template:Pm-box模板文档
当直接浏览时,使用变量可能会失效,请不要使用硬编码来代替页面名或地址。

This template creates an infobox around the information about planet modifiers.

Parameters[edit source]

Parameter Description Status Default
1 name of the planet modifier and identifier of the icon required empty
2 ingame description of the planet modifier optional empty
modifiers effects of the planet modifier required empty
file alternative file name optional {{{1}}}
image alternative image or {{planet modifier}} optional [[File:{{{1}}}.png|{{{1}}} icon]]
indent indent by a number of standard indents (1.6em) optional empty

Example[edit source]

The following code:

{{pm-box
|Luxuries Distributed
|The provision of amenities to the populace is being bolstered by way of a special distribution program, delivering luxury and consumer goods.
|image={{planet modifier|pm_luxuries|1}}
|modifiers=
* {{icon|amenities mult}} {{green|+25%}} amenities
* {{icon|immigration pull mult}} {{green|+25%}} immigration pull
}}

will display:

Luxuries Distributed

Outliner top.png
Pm luxuries.pngPm frame 1.png
  • 舒适度 Amenities +25% amenities
  • 迁入吸引力 Immigration Pull +25% immigration pull
The provision of amenities to the populace is being bolstered by way of a special distribution program, delivering luxury and consumer goods.