Template:InstructionalQuoteRow: Difference between revisions

Someone has pointed out that some moves need 5 descriptions, so I'm attempting to extend the template here. Full disclosure, I am only 50% sure of what I'm doing here, but I'll rollback it if it fails.
mNo edit summary
(Someone has pointed out that some moves need 5 descriptions, so I'm attempting to extend the template here. Full disclosure, I am only 50% sure of what I'm doing here, but I'll rollback it if it fails.)
 
(3 intermediate revisions by 2 users not shown)
Line 4: Line 4:
{{#ifexpr:{{{charcount|1}}}>1|{{!}}{{Head|{{{char2}}}|g={{{game}}}|s=20px}}{{!!}}{{{desc2}}}
{{#ifexpr:{{{charcount|1}}}>1|{{!}}{{Head|{{{char2}}}|g={{{game}}}|s=20px}}{{!!}}{{{desc2}}}
{{!}}-}}
{{!}}-}}
{{#ifexpr:{{{charcount|1}}}>2|
{{#ifexpr:{{{charcount|1}}}>2|{{!}}{{Head|{{{char3}}}|g={{{game}}}|s=20px}}{{!!}}{{{desc3}}}
{{!}}{{Head|{{{char3}}}|g={{{game}}}|s=20px}}{{!!}}{{{desc3}}}}}
{{!}}-}}
<noinclude>[[Category:Meta-templates]]</noinclude>
{{#ifexpr:{{{charcount|1}}}>3|{{!}}{{Head|{{{char4}}}|g={{{game}}}|s=20px}}{{!!}}{{{desc4}}}
{{!}}-}}
{{#ifexpr:{{{charcount|1}}}>4|{{!}}{{Head|{{{char5}}}|g={{{game}}}|s=20px}}{{!!}}{{{desc5}}}}}<noinclude>[[Category:Meta-templates]]</noinclude>