Difference between revisions of "Template:Mobile.dpl13"

m
m
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifexpr: {{InString|{{{trainableMagicalAbility|nothing}}}|{{PAGENAME}}}} > -1|: [[{{{%PAGE%}}}|{{{%TITLE%}}}]]}}{{#ifexpr: {{InString|{{{trainableSpecialAbility|nothing}}}|{{PAGENAME}}}} > -1|: [[{{{%PAGE%}}}|{{{%TITLE%}}}]]}}{{#ifexpr: {{InString|{{{trainableSpecialMove|nothing}}}|{{PAGENAME}}}} > -1|: [[{{{%PAGE%}}}|{{{%TITLE%}}}]]}}{{#ifexpr: {{InString|{{{trainableAreaEffect|nothing}}}|{{PAGENAME}}}} > -1|: [[{{{%PAGE%}}}|{{{%TITLE%}}}]]}}
+
{{#vardefine:page|{{#replace:{{PAGENAME}}| (ability)|}}}}<!--
 +
-->{{#vardefine:link|: [[{{{%PAGE%}}}|{{{%TITLE%}}}]]}}<!--
 +
-->{{#ifexpr: {{#len: {{{trainableMagicalAbility}}} }} > 0 |<!--
 +
    -->{{#ifexpr: {{InString|{{{trainableMagicalAbility}}}|{{#var:page}}}} > -1|{{#var:link}} }}<!--
 +
-->}}<!--
 +
-->{{#ifexpr: {{#len: {{{trainableSpecialAbility}}} }} > 0 |<!--
 +
    -->{{#ifexpr: {{InString|{{{trainableSpecialAbility}}}|{{#var:page}}}} > -1|{{#var:link}} }}<!--
 +
-->}}<!--
 +
-->{{#ifexpr: {{#len: {{{trainableSpecialMove}}} }} > 0 |<!--
 +
    -->{{#ifexpr: {{InString|{{{trainableSpecialMove}}}|{{#var:page}}}} > -1|{{#var:link}} }}<!--
 +
-->}}<!--
 +
-->{{#ifexpr: {{#len: {{{trainableAreaEffect}}} }} > 0 |<!--
 +
    -->{{#ifexpr: {{InString|{{{trainableAreaEffect}}}|{{#var:page}}}} > -1|{{#var:link}} }}<!--
 +
-->}}

Latest revision as of 11:26, 10 July 2017