テンプレート:Infobox row

提供: ARK: Survival Evolved Wiki
2020年9月25日 (金) 03:09時点におけるMr Pie 5 (トーク | 投稿記録)による版 (1版 をインポートしました: Imported from en wiki)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先: 案内検索
Template-info.png Documentation

Displays a row in an Category:Infobox templates.

Usage

{{infobox row|Keyword|Value|Test-value|Else-value}}

Note these are all unnamed parameters when using the template

  • Keyword is displayed as keyword to the row, describing the value (e.g. "HP", "Size", etc.)
  • Value is displayed as the value and can be formatted (e.g. 1000, "huge", {{ItemLink|Wall}}, etc.)
  • If Test-value is given, the row is only displayed if it is not empty
  • If Else-value is given and Test-value is empty, the row is however displayed and shows Else-value as its value

Example

{{Infobox row|HP|{{{hp}}}|{{{hp|}}}}}

Displays a row titled HP, followed by the value of hp, but if it is not given, hides the whole row.


{{Infobox row|Location|{{{location}}}|{{{location|}}}|''Unknown''}}

Displays a row titled Location, followed by the value of location, but if it is not given, displays Unknown as the value instead.