Difference between revisions of "Template:CropGrowthStages"
Jump to navigation
Jump to search
(Fix expressions) |
m (Prevent line wrapping) |
||
(One intermediate revision by the same user not shown) | |||
Line 21: | Line 21: | ||
} | } | ||
</templatedata> | </templatedata> | ||
+ | == Example == | ||
+ | {{CropGrowthStages|name=Barley|maxgrowth=7}} | ||
+ | |||
</noinclude> | </noinclude> | ||
− | <onlyinclude><includeonly>{{#ifexpr: {{{maxgrowth}}} >= 0|[[File:{{{name}}} 0.png|x50px]]}}{{#ifexpr: {{{maxgrowth}}} >= 1|[[File:{{{name}}} 1.png|x50px]]}}{{#ifexpr: {{{maxgrowth}}} >= 2|[[File:{{{name}}} 2.png|x50px]]}}{{#ifexpr: {{{maxgrowth}}} >= 3|[[File:{{{name}}} 3.png|x50px]]}}{{#ifexpr: {{{maxgrowth}}} >= 4|[[File:{{{name}}} 4.png|x50px]]}}{{#ifexpr: {{{maxgrowth}}} >= 5|[[File:{{{name}}} 5.png|x50px]]}}{{#ifexpr: {{{maxgrowth}}} >= 6|[[File:{{{name}}} 6.png|x50px]]}}{{#ifexpr: {{{maxgrowth}}} >= 7|[[File:{{{name}}} 7.png|x50px]]}}{{#ifexpr: {{{maxgrowth}}} >= 8|[[File:{{{name}}} 8.png|x50px]]}}{{#ifexpr: {{{maxgrowth}}} >= 9|[[File:{{{name}}} 9.png|x50px]]}}</includeonly></onlyinclude> | + | <onlyinclude><includeonly><span style="white-space: nowrap;">{{#ifexpr: {{{maxgrowth}}} >= 0|[[File:{{{name}}} 0.png|x50px]]}}{{#ifexpr: {{{maxgrowth}}} >= 1|[[File:{{{name}}} 1.png|x50px]]}}{{#ifexpr: {{{maxgrowth}}} >= 2|[[File:{{{name}}} 2.png|x50px]]}}{{#ifexpr: {{{maxgrowth}}} >= 3|[[File:{{{name}}} 3.png|x50px]]}}{{#ifexpr: {{{maxgrowth}}} >= 4|[[File:{{{name}}} 4.png|x50px]]}}{{#ifexpr: {{{maxgrowth}}} >= 5|[[File:{{{name}}} 5.png|x50px]]}}{{#ifexpr: {{{maxgrowth}}} >= 6|[[File:{{{name}}} 6.png|x50px]]}}{{#ifexpr: {{{maxgrowth}}} >= 7|[[File:{{{name}}} 7.png|x50px]]}}{{#ifexpr: {{{maxgrowth}}} >= 8|[[File:{{{name}}} 8.png|x50px]]}}{{#ifexpr: {{{maxgrowth}}} >= 9|[[File:{{{name}}} 9.png|x50px]]}}</span></includeonly></onlyinclude> |