Topic on User talk:Ritsu
From Elwiki
This is a permanent link to a single version of this post.
This version is from 29 May 2022.
You can see the differences from the previous version, or view other versions on the post history page.
I noticed most of the class names only require "s" inserted at the end, and some require a change of the adjective. So what you can do is to export the parameter to a variable and apply a switch statement on it before it reaches the current one. There are actually multiple ways of doing this. For example:
{{#vardefine: name_r | {{{name|}}} }} {{#switch: {{#var: name__r}} |Kleines Phantom=Kleinen Phantom|before=after|before=after...}}
You could also do a replace, if you're sure that it won't break any other class:
{{#vardefine: name_r | {{#replace: {{{name|}}}|Kleines|Kleinen }} }}
And then proceed with this one:
{{#switch: {{{3|}}}|Blank= |Sword Knight|Magic Knight|Sheath Knight|Sword Taker|Over Taker|Weapon Taker|Fury Guardian|Shooting Guardian|Shelling Guardian|Saber Knight|Pyro Knight|Psychic Tracer|Arc Tracer|Time Tracer|Royal Guard=Der Weg des {{#var: name_r}}s, Teil 1 |High Magician|Dark Magician|Battle Magician|Sniping Ranger|Combat Ranger|Trapping Ranger|Code: Exotic|Code: Architecture|Code: Electra|Bloodia|Valkyrie=Der Weg der {{#var: name_r}}, Teil 1 }}