Template:GameDesc/Documentation: Difference between revisions

Jump to navigation Jump to search
m (RustyVanBurace moved page Template:Game Descr/Documentation to Template:Game Desc/Documentation without leaving a redirect)
No edit summary
Line 1: Line 1:
==Purpose==
==Purpose==
Used to create tables for listing in-game descriptions by game, such as item and skill descriptions, using both a header template and multiple row templates. [[Template:Game Descr/Header]] is placed at the top of the table, and the table must be closed by appending <code>|}</code> on the following line.
Used to create tables for listing in-game descriptions by game, such as item and skill descriptions, using both a header template and multiple row templates. [[Template:Game Desc/Header]] is placed at the top of the table, and the table must be closed by appending <code>|}</code> on the following line.


This template should use the English localized descriptions where available. For games that were never localized, the original Japanese description should instead be used. Use [[Template:DescrTransl]] for displaying both the Japanese description and a translation.
This template should use the English localized descriptions where available. For games that were never localized, the original Japanese description should instead be used. Use [[Template:DescTransl]] for displaying both the Japanese description and a translation.


==Usage==
==Usage==
Line 17: Line 17:
===Code===
===Code===
<pre>
<pre>
{{Game Descr/Header}}
{{Game Desc/Header}}
{{Game Descr|1|2}}
{{Game Desc|1|2}}
|}
|}
</pre>
</pre>
Line 25: Line 25:
'''Life Stone descriptions'''
'''Life Stone descriptions'''
<pre>
<pre>
{{Game Descr/Header}}
{{Game Desc/Header}}
{{Game Descr|{{Gamelink|SMT1}}|Restores 25% of one ally's HP.}}
{{Game Desc|{{Gamelink|SMT1}}|Restores 25% of one ally's HP.}}
|}
|}
</pre>
</pre>
{{Game Descr/Header}}
{{Game Desc/Header}}
{{Game Descr|{{Gamelink|SMT1}}|Restores 25% of one ally's HP.}}
{{Game Desc|{{Gamelink|SMT1}}|Restores 25% of one ally's HP.}}
|}
|}


{{Documentation Footer}}
{{Documentation Footer}}

Revision as of 16:12, 18 August 2023

Purpose

Used to create tables for listing in-game descriptions by game, such as item and skill descriptions, using both a header template and multiple row templates. Template:Game Desc/Header is placed at the top of the table, and the table must be closed by appending |} on the following line.

This template should use the English localized descriptions where available. For games that were never localized, the original Japanese description should instead be used. Use Template:DescTransl for displaying both the Japanese description and a translation.

Usage

Parameter Description
1 The linked game that the description is from.
2 The in-game description.

Code

{{Game Desc/Header}}
{{Game Desc|1|2}}
|}

Examples

Life Stone descriptions

{{Game Desc/Header}}
{{Game Desc|{{Gamelink|SMT1}}|Restores 25% of one ally's HP.}}
|}

Template:Game Desc/Header Template:Game Desc |}


This is the template documentation page for Template:GameDesc. It should be transcluded onto the template page.