Level_length.mw 938 B

1234567891011121314151617181920212223
  1. <includeonly>[[Template:#switch: {{{1]]}
  2. | short
  3. | normal
  4. | long=[[Template:{1]]}
  5. | #default=[[Template:#ifexpr: {{{1]]} < 250
  6. | short ([[Template:{1]]} tiles)
  7. | [[Template:#ifexpr: {{{1]]} <= 400
  8. | normal ([[Template:{1]]} tiles)
  9. | [[Template:#ifexpr: {{{1]]} > 400
  10. | long ([[Template:{1]]} tiles)
  11. | [[Category:Invalid length]] [[Template:{1]]}
  12. }}
  13. }}
  14. }}
  15. }}</includeonly><noinclude>The '''Level length''' template pretty-prints the length of a level. The length can either be given as "short", "normal" or "long", or it can be given as the width in tiles. When a width is given, "short", "normal" or "long" is printed depending on the number.
  16. == Usage ==
  17. <nowiki>[[Template:Level length|short]]</nowiki>
  18. <nowiki>[[Template:Level length|350]]</nowiki>
  19. [[Category:Templates]]</noinclude>