Difference between revisions of "Template:Status effect"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
Line 2: Line 2:
{{#switch:{{{1|}}}
{{#switch:{{{1|}}}
| CT | CT | クリティカル = Critical
| CT | CT | クリティカル = Critical
| CT+ | CT+ | CT+ | クリティカル+ | クリティカル+ = Critical+
| CT++ | CT++ | CT++ | クリティカル++ | クリティカル++ = Critical++
| CT++ | CT++ | CT++ | クリティカル++ | クリティカル++ = Critical++
| クリティカル+ = Critical+
| 攻撃強化 = Attack Up
| 攻撃強化 = Attack Up
| 剛力 = Herculean Strength
| 剛力 = Herculean Strength
Line 79: Line 79:
|#default = [[Template:Status effect|{{{1}}}]]
|#default = [[Template:Status effect|{{{1}}}]]
}}
}}
}}{{#if: {{NAMESPACE}} | <!-- don't create association --> | {{#vardefine:status subobj|
}}{{#if: {{NAMESPACE}} | <!-- don't create association --> | {{#vardefine:effect jp-name|
{{#switch:{{{1|}}}
| CT | CT | クリティカル = CT
| CT+ | CT+ | CT+ | クリティカル+ | クリティカル+ = CT+
| CT++ | CT++ | CT++ | クリティカル++ | クリティカル++ = CT++
| #default = {{{1|}}}
}}{{#vardefine:status subobj|
  {{#ask:
  {{#ask:
   [[Has game context::Status]]
   [[Has game context::Status]]
   [[Has Japanese name::{{{1|}}}]]
   [[Has Japanese name::{{#var:effect jp-name|}}]]
   |link=none
   |link=none
   |limit=1
   |limit=1

Revision as of 22:19, 13 November 2018

Description

This templates translates Japanese status effects into English and optionally adds the status description as on-hover text.

Usage

{{Status effect
|<effect>
| format = 
}}

Parameters

effect
The status effect in Japanese.
format
Formatting for the description. alt displays it as on-hover text, parentheses displays it after the effect name in parentheses, only display only the description, none doesn't display the description. Defaults to alt.

Examples

{{Status effect|マヒ}}

{{#if: Template | | Paralysis

{{Status effect|束縛|format=none}}

{{#if: Template | | Bind

{{Status effect|凍結|format=parentheses}}

{{#if: Template | | Frozen (received damage x1.1~2.2 and take 202~400 damage every turn for 4 turns)

{{Status effect|防御強化|format=only}}

{{#if: Template | | Received damage x0.9~0.45 for 4 turns.

Maintenance

Adding A New Effect

  • Add a new status effect by inserting name as well as description it into the template before each #default.