Topic on User talk:Ritsu
This page shows the changes between two versions of a post by Ritsu in the topic "JobChangeDE" on User talk:Ritsu.
You can see other versions of this post at its history page.
Line 1: | Line 1: | ||
I noticed most of the class names only require "s" inserted at the end. 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 or so. 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> | {{#switch: {{#var: name__r}} |Kleines Phantom=Kleinen Phantom|before=after|before=after...}}</nowiki></pre> |