Template talk:Hgame
From Hgames Wiki
WTF
I peeked at the template and noticed multiple duplications of this code: {{#ifeq: {{{game|{{#titleparts: {{FULLPAGENAME}}|1}}}}}|{{#titleparts: {{FULLPAGENAME}}|1}}|{{#titleparts: {{FULLPAGENAME}}|1}}|{{{game}}}}}
The same with better readability {{#ifeq: {{{game|{{#titleparts: {{FULLPAGENAME}}|1}}}}} | {{#titleparts: {{FULLPAGENAME}}|1}} | {{#titleparts: {{FULLPAGENAME}}|1}} | {{{game}}} }}
So, it checks if the value of game is equal to the first part of fullpagename.
- if yes, it prints the first part of fullpagename
- if no, it prints the value of game
It prints a string equal to game in any case. I'm going to poke around the template a bit to get a better idea what's going on. - Loliturma (talk) 09:11, 24 March 2014 (UTC)