Version_to_status_cell.mw 1.2 KB

12345678910111213141516171819202122232425
  1. <includeonly>[[Template:#switch: {{{1|]]}
  2. | = ''unknown''
  3. | 0.1 = style="background: #e0ffe0; color: #006000;" [[Template:!]] [[Template:#if: {{{2|]]} | [[Template:{2]]} | stable}}
  4. | 0.3 = style="background: #ffffd0; color: #303000;" [[Template:!]] [[Template:#if: {{{2|]]} | [[Template:{2]]} | unstable}}
  5. | 0.4 = style="background: #ffe0e0; color: #600000;" [[Template:!]] [[Template:#if: {{{2|]]} | [[Template:{2]]} | development}}
  6. | Milestone 2 = style="background: #ffffd0; color: #303000;" [[Template:!]] [[Template:#if: {{{2|]]} | [[Template:{2]]} | in development}}
  7. | Milestone 3 = style="background: #ffe0e0; color: #600000;" [[Template:!]] [[Template:#if: {{{2|]]} | [[Template:{2]]} | future}}
  8. | [[Template:#if: {{{2|]]} | [[Template:{2]]} | unknown}} [[Category:Version unknown]]
  9. }}</includeonly><noinclude>The '''Version to status cell''' template adds a tinted table cell to a table, based on the version specified as the only argument.
  10. == Example usage ==
  11. This template must be used inside tables as follows:
  12. <nowiki>{|</nowiki>
  13. ! Key
  14. ! Value
  15. |-
  16. | Status
  17. <nowiki>| [[Template:Version to status cell|0.3]]</nowiki>
  18. <nowiki>|}</nowiki>
  19. [[Category:Templates]]
  20. </noinclude>