টেমপ্লেট:Gold1/নথি
এটি টেমপ্লেট:Gold1-এর জন্য একটি নথির উপপাতা। এখানে ব্যবহার সংক্রান্ত তথ্য, বিষয়শ্রেণী এবং অন্যান্য সামগ্রী রয়েছে যা মূল টেমপ্লেট পাতার অংশ নয়। |
This template is for including medal symbols in sporting event result tables, while preserving the ability for sort.
The ((Gold1))
, ((Gold medal))
, ((Silver2))
, ((Silver medal))
, ((Bronze3))
and ((Bronze medal))
templates support sorting in tables with one digit place numbers, while the ((Gold01))
, ((Silver02))
, and ((Bronze03))
templates support sorting in tables with two digit place numbers.
Usage
[সম্পাদনা]Simply insert the template where you would like to see the symbol. No parameters are required.
((Gold medal)) |
((Gold1)) |
((Gold01))
|
((Silver medal)) |
((Silver2)) |
((Silver02))
|
((Bronze medal)) |
((Bronze3)) |
((Bronze-3))
|
For tables where the sorted column contains only numbers and the above templates, sorting will work fine. However, if the column contains any non-numeric text, including the display value in any ((Sort))
templates, the sort function will perform a text sort instead of a numeric sort. To get the desired sort results it may be necessary to use the ((Sort))
template to specify appropriate sort keys to be inserted as hidden text in front of the displayed values. For example "((Sort|9|DQ))
" displays "DQ" but sorts using "9 DQ".
Also, for text sorting to give appropriate results for numeric values, all values must have the same number of integer digits. Again, the ((Sort))
template can also be used for this. For example, "9" will sort higher than "10", but "((Sort|09|9))
" will sort lower than "10". To support tables having where rank exceeds 9 that also have non-numeric content, the "((Gold01))
", "((Silver02))
", and "((Bronze03))
" templates are provided. These templates yield short keys "01", "02", and "03". See the second example below.
Examples
[সম্পাদনা]
The following code... {| class="wikitable sortable" style=text-align:center |- ! Rank !! Place |- | ((Gold1)) || First |- | ((Silver2)) || Second |- | ((Bronze3)) || Third |- | 4 || Fourth |- | 5 || Fifth |- | 6 || Sixth |- | 7 || Seventh |- | 8 || Eighth |- | 9 || Ninth |} |
|
...will display as:
|
For example, the following code using two digit sorting... {| class="wikitable sortable" style=text-align:center |- ! Rank !! Place !! Bad Sort |- | ((Gold01)) || First || ((Gold1)) |- | ((Silver02)) || Second || ((Silver2)) |- | ((Bronze03)) || Third || ((Bronze3)) |- | ((Sort|04|4)) || Fourth || 4 |- | ((Sort|05|5)) || Fifth || 5 |- | 10 || Tenth || 10 |- | 11 || Eleventh || 11 |- | 20 || Twentieth || 20 |- | 50 || Fiftieth || 50 |- | ((Sort|98|NM)) || No mark || NM |- | ((Sort|99|DQ)) || Disqualified || DQ |} |
|
...will displays as:
|
See also
[সম্পাদনা]- Template:Gold1 (backlinks, edit)
- Template:Silver2 (backlinks, edit)
- Template:Bronze3 (backlinks, edit)
- Template:Gold01 (backlinks, edit)
- Template:Silver02 (backlinks, edit)
- Template:Bronze03 (backlinks, edit)
- Template:Gold medal (backlinks, edit)
- Template:Silver medal (backlinks, edit)
- Template:Bronze medal (backlinks, edit)
- Template:Sort (backlinks, edit) — for using names in sortable tables
- m:Help:Sorting
Text is available under the CC BY-SA 4.0 license; additional terms may apply.
Images, videos and audio are available under their respective licenses.