Template talk:MoveInfobox: Difference between revisions

m
m (→‎Example: Removing from category (again))
Line 248: Line 248:


:<nowiki>{{#if: {{{tm1|{{{tm2|{{{tm3|{{{tm4|{{{hm1|{{{hm2|{{{hm3|{{{hm4|{{{mtdp|{{{mte|{{{mtc|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}||*Not a [[TM]], [[HM]], or [[move tutor]] move.}}</nowiki><br/> and this should check the na parameter--[[User:Hanmac|Hanmac]]
:<nowiki>{{#if: {{{tm1|{{{tm2|{{{tm3|{{{tm4|{{{hm1|{{{hm2|{{{hm3|{{{hm4|{{{mtdp|{{{mte|{{{mtc|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}||*Not a [[TM]], [[HM]], or [[move tutor]] move.}}</nowiki><br/> and this should check the na parameter--[[User:Hanmac|Hanmac]]


PS:
PS:


<nowiki>{{#switch: {{{protect|}}}</nowiki><br/>
<pre><nowiki>{{#switch: {{{protect|}}}
<nowiki>| yes=* '''Affected by {{m|Protect}}''' </nowiki><br/>
| yes=* '''Affected by {{m|Protect}}'''  
<nowiki>| no=* Not affected by Protect </nowiki><br/>
| no=* Not affected by Protect  
<nowiki>}}</nowiki><br/>
}}</nowiki></pre>
is this better for the extra values?
is this better for the extra values?
<pre><nowiki>
|- style="background: #{{{{{damagecategory}}} color}}; {{#ifexpr: {{{spm|0}}} = 1 | display: none; }}"
! <span style="color:#{{{{{damagecategory}}} textcolor}}">[[Damage category|Category]]</span>
| [[{{{damagecategory|Uncategorized}}} move|<span style="color:#{{{{{damagecategory}}} textcolor}}">{{{damagecategory|Uncategorized}}}</span>]]
</nowiki></pre>
: there must be a template for !, | and |- because of [[Template:??? textcolor]]<br/>i think so:
<pre><nowiki>{{#ifexpr: {{{spm|0}}} != 1 |
{{!~}} style="background: #{{{{{damagecategory}}} color}}"
{{~}} <span style="color:#{{{{{damagecategory}}} textcolor}}">[[Damage category|Category]]</span>
{{!}} [[{{{damagecategory|Uncategorized}}} move|<span style="color:#{{{{{damagecategory}}} textcolor}}">{{{damagecategory|Uncategorized}}}</span>]] }}</nowiki></pre>
and
<pre><nowiki>{{#if:{{{gen|}}}|[[Category:Generation {{{gen}}} moves]]}}
{{#if:{{{damagecategory|}}}|[[Category:Generation {{{damagecategory}}} moves]]}}</nowiki></pre>
: so Vacuum-Cut (move) an other work corect
616

edits