Template:Sort Roman/doc
| This is a documentation subpage for Template:Sort Roman. It may contain usage information, categories and other content that is not part of the original template page. |
Usage
{{Sort Roman}} can be used in sortable tables to sort Roman numerals up to 38 correctly in numerical order. Without the template, IX, XIX, XXIX sort wrong. The template can be used on all Roman numerals up to 38 but only has to be used for IX, XIX, XXIX (9, 19, 29).
- Change
IXto{{Sort Roman|IX}} - Change
XIXto{{Sort Roman|XIX}} - Change
XXIXto{{Sort Roman|XXIX}}
The template also works with lowercase numerals like ix, xix, xxix.
There is no option to sort Roman numerals above 38 (more complicated and maybe never needed).
Arabic numerals (normal decimal digits) cannot be mixed with Roman numerals in a sortable column.
Demonstration
The source text of this table uses {{Sort Roman}} in the whole third column and three cells of the fourth column.
| Decimal number | No sort template: IX, XIX, XXIX sort wrong |
{{Sort Roman|...}} everywhere: Sorts correctly |
Only {{Sort Roman|IX}} {{Sort Roman|XIX}} {{Sort Roman|XXIX}}: Also sorts correctly |
|---|---|---|---|
| 1 | I | I | I |
| 2 | II | II | II |
| 3 | III | III | III |
| 4 | IV | IV | IV |
| 5 | V | V | V |
| 6 | VI | VI | VI |
| 7 | VII | VII | VII |
| 8 | VIII | VIII | VIII |
| 9 | IX | IX | IX |
| 10 | X | X | X |
| 11 | XI | XI | XI |
| 12 | XII | XII | XII |
| 13 | XIII | XIII | XIII |
| 14 | XIV | XIV | XIV |
| 15 | XV | XV | XV |
| 16 | XVI | XVI | XVI |
| 17 | XVII | XVII | XVII |
| 18 | XVIII | XVIII | XVIII |
| 19 | XIX | XIX | XIX |
| 20 | XX | XX | XX |
| 21 | XXI | XXI | XXI |
| 22 | XXII | XXII | XXII |
| 23 | XXIII | XXIII | XXIII |
| 24 | XXIV | XXIV | XXIV |
| 25 | XXV | XXV | XXV |
| 26 | XXVI | XXVI | XXVI |
| 27 | XXVII | XXVII | XXVII |
| 28 | XXVIII | XXVIII | XXVIII |
| 29 | XXIX | XXIX | XXIX |
| 30 | XXX | XXX | XXX |
| 31 | XXXI | XXXI | XXXI |
| 32 | XXXII | XXXII | XXXII |
| 33 | XXXIII | XXXIII | XXXIII |
| 34 | XXXIV | XXXIV | XXXIV |
| 35 | XXXV | XXXV | XXXV |
| 36 | XXXVI | XXXVI | XXXVI |
| 37 | XXXVII | XXXVII | XXXVII |
| 38 | XXXVIII | XXXVIII | XXXVIII |
Redirects
- Template:Sort roman (redirect page) (links | edit)
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.