Ajuda:Taula: diferència entre les revisions

Contingut suprimit Contingut afegit
Línia 590:
|-
!!!Promig:||1.82
|}
 
=== Amb un ordre alternatiu ===
S'utilitza el ''<nowiki>data-sort-value="valor"</nowiki>'', on ''valor'' és el criteri d'ordenació a utilitzar.
 
<pre>
{|class="wikitable sortable"
!Nom i cognom!!Talla
|-
|data-sort-value="Smith, John"|John Smith||1.85
|-
|data-sort-value="Ray, Ian"|Ian Ray||1.89
|-
|data-sort-value="Bianchi, Zachary"|Zachary Bianchi||1.72
|-
!Promig:||1.82
|}
</pre>
 
'''Apareix així''':
{|class="wikitable sortable"
!Nom i cognom!!Talla
|-
|data-sort-value="Smith, John"|John Smith||1.85
|-
|data-sort-value="Ray, Ian"|Ian Ray||1.89
|-
|data-sort-value="Bianchi, Zachary"|Zachary Bianchi||1.72
|-
!Promig:||1.82
|}
 
====Utilitzant una plantilla====
El un exemple semblant a l'anterior i utilitzant la plantilla {{tl|ordre}}:
 
<pre>{|class="wikitable sortable"
!Nom i cognom!!Temps
|-
|{{ordre|Smith, John|John Smith}}||{{ordre|45|45 segons}}
|-
|{{ordre|Ray, Ian|Ian Ray}}||{{ordre|90|1 minut i mig}}
|-
|{{ordre|Bianchi, Zachary|Zachary Bianchi}}||{{ordre|64|1:04 minuts}}
|}
</pre>
 
'''Apareix així''':
{|class="wikitable sortable"
!Nom i cognom!!Temps
|-
|{{ordre|Smith, John|John Smith}}||{{ordre|45|45 segons}}
|-
|{{ordre|Ray, Ian|Ian Ray}}||{{ordre|90|1 minut i mig}}
|-
|{{ordre|Bianchi, Zachary|Zachary Bianchi}}||{{ordre|64|1:04 minuts}}
|}