Template:Achievement infobox:修订间差异

(merge from offical wiki)
 
无编辑摘要
 
第6行: 第6行:
|content=<div style="padding: 8px; text-align:center; ">[[File:{{{name|{{PAGENAME}}}}}.{{{extension|png}}}]]</div>
|content=<div style="padding: 8px; text-align:center; ">[[File:{{{name|{{PAGENAME}}}}}.{{{extension|png}}}]]</div>
<div class="heading" style="font-weight: bold; text-align:center;" >Possible if</div>
<div class="heading" style="font-weight: bold; text-align:center;" >Possible if</div>
{{plainlist|{{#ifeq:{{{date|}}}|no restriction||*[[File:Time.png|24px|link=Beginner's_guide#Choosing_a_scenario]] [[Scenarios|Start date]] is {{{date|January 1, 1936}}}.}}
{{plainlist|{{#ifeq:{{{date|}}}| 无限制||*[[File:Time.png|24px|link= 入门指南#Choosing_a_scenario]] [[Scenarios| 开始时间]] {{{date|1936 年1月1日}}} }}
*Playing in [[File:Ironman.png|x24px|link=Ironman]][[Ironman|ironman mode]].
* 游戏是 [[File:Ironman.png|x24px|link=Ironman]][[Ironman| 铁人模式]]
*All [[game rules]] allow achievements.
* 所有[[ 游戏规则]] 允许获得成就。
*Regular ''or'' higher [[difficulty]].
* 常规 '' '' 更高[[ 难度]]
*''Not'' using [[custom difficulty]].
*'' '' 使用[[ 自定义难度]]
}}{{#if: {{{possible|}}} | {{{possible}}}}}
}}{{#if: {{{possible|}}} | {{{possible}}}}}
<div class="heading" style="font-weight: bold; text-align:center;" >Achieved if</div>
<div class="heading" style="font-weight: bold; text-align:center;" >Achieved if</div>

2020年12月21日 (一) 16:05的最新版本


This template can be used to display the achievement conditions on a strategy page. Articles with this template are auto-categorized in Category:Achievements.

Parameters

Parameter Description Default Status
name name of the achievement {{PAGENAME}} optional
extension extension of the acievement icon png optional
date given start date of the achievement
no restriction - disables this line
January 1, 1936 optional
possible start conditions of the achievement empty optional
happened conditions for getting the achievement empty required

Usage

This table may be added by copy-pasting the template as shown below into an article.

{{Achievement infobox
|name =
|possible =
|happened =
}}

Examples

{{Achievement infobox
| name = Canada First
| extension = jpg
| possible = The player’s country is {{flag|Canada}}.
| happened = The player’s country:
*is in a [[faction]] lead by [[Germany]].
}}

Will display this:

Canada First
Canada First.jpg
Possible if
The player’s country is 加拿大的国旗 加拿大.
Achieved if

The player’s country: