Topic on User talk:Ritsu

From Elwiki
Line 1: Line 1:
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:
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:
<pre><nowiki>{{#vardefine: name_r | {{{name|}}} }}
<pre><nowiki>{{#vardefine: name_r | {{{name|}}} }}
{{#switch: {{#var: name__r}} |Kleines Phantom=Kleinen Phantom|before=after|before=after...}}</nowiki></pre>
{{#vardefine: name_r | {{#switch: {{#var: name__r}} |Kleines Phantom=Kleinen Phantom|before=after|before=after...}} }}</nowiki></pre>
You could also do a replace, if you're sure that it won't break any other class:
You could also do a replace, if you're sure that it won't break any other class:
<pre><nowiki>
<pre><nowiki>