Πρότυπο:Rank

Από τη Βικιπαίδεια, την ελεύθερη εγκυκλοπαίδεια
Documentation icon Τεκμηρίωση προτύπου[προβολή] [επεξεργασία] [ιστορικό] [εκκαθάριση]

Use[επεξεργασία κώδικα]

This template creates a sortable table cell displaying a ranking index, either numeric or nonnumeric. Numbers are sorted first in numeric order followed by nonnumeric indexes in alphanumeric order.

The syntax of this template is:

{{rank|var1}}

where:

  • var1 is an integer or real number in the range 0 ≤ var1 < 1,000,000, or a text string

Example[επεξεργασία κώδικα]

The use of this template is illustrated in the sortable table below:

Wikitext Rank without template
{{rank|1}} !000001 1
{{rank|2}} !000002 2
{{rank|3}} !000003 3
{{rank|6}} !000006 6
{{rank|56}} !000056 56
{{rank|456}} !000456 456
{{rank|3456}} !003456 3456
{{rank|23456}} !023456 23456
{{rank|123456}} !123456 123456
{{rank|Aardvark}} Aardvark Aardvark
{{rank|Bison}} Bison Bison
{{rank|Camel}} Camel Camel
{{rank|0}} !000000 0
{{rank|0.1}} !0000001 0.1
{{rank|1.2}} !000012 1.2
{{rank|12.34}} !001234 12.34
{{rank|123.456}} !123456 123.456
{{rank|1234.5678}} !12345678 1234.5678
{{rank|12345.67890}} !1234567890 12345.67890
{{rank|123456.789012}} !123456789012 123456.789012
{{rank|NA}} NA NA

Technical details[επεξεργασία κώδικα]