Esta plantilla es para incluir símbolos de medallas en las tablas de resultados de eventos deportivos, conservando al mismo tiempo la capacidad de clasificación.
El primer grupo de plantillas muestra imágenes de medallas mientras ofrece una clasificación de tabla de 01, 02 o 03, respectivamente.
El segundo grupo de plantillas muestra imágenes de medallas con texto en pantalla de Oro, Plata o Bronce. También ofrecen una clasificación de tabla de 01, 02 o 03, respectivamente.
{{Gold medal}}
= Oro{{Silver medal}}
= Plata{{Bronze medal}}
= BronceSimplemente inserte la plantilla donde desea ver el símbolo. No se requieren parámetros.
El parámetro de enlace se puede utilizar para pasar un enlace a un artículo a estas plantillas.
Ejemplo:
{{gold1|link=article name}}
El valor predeterminado es nulo.
Estas plantillas utilizan 01, 02 y 03 como valor de ordenación de oro, plata y bronce, respectivamente. La ordenación se realizará de forma numérica a menos que la columna también contenga texto no numérico, en cuyo caso puede ocurrir a veces una ordenación de texto (por ejemplo, "10" está antes de "3").
Para obtener los resultados de ordenación deseados para otros valores, puede ser necesario utilizar los atributos data-sort-type="..."
y . Si se coloca un atributo en la celda de encabezado, se forzará una ordenación numérica. Si se agrega un atributo a una celda de datos, se anulará el valor.data-sort-value="..."
data-sort-type="number"
data-sort-value="..."
Una técnica que se utiliza con frecuencia, pero que ya no se utiliza, consiste en utilizar las plantillas o para especificar las claves de ordenación adecuadas que se insertarán como texto oculto delante de los valores mostrados. Por ejemplo, y muestran "DQ" pero ordenan utilizando "99 DQ". Aún se realiza una ordenación de texto, pero se pueden lograr los resultados deseados utilizando valores ocultos seleccionados cuidadosamente. A veces, pueden ser necesarios ceros a la izquierda u otros trucos.{{hidden sort key}}
{{sort}}
{{hs|99}}DQ
{{sort|99|DQ}}
Consulte Ayuda:Tablas ordenables#Configuración de la ordenación para obtener detalles adicionales.
Cuando todos los rangos son números de un solo dígito, las plantillas se pueden usar directamente en lugar de los rangos.
El siguiente marcado:
{| clase="wikitable ordenable" estilo="text-align:center"! Rango !! Lugar|-| {{Gold1}} || Primero|-| {{Silver2}} || Segundo|-| {{Bronce3}} || Tercero|-| 4 || Cuarto|-| 5 || Quinto|-| 6 || Sexto|-| 7 || Séptimo|-| 8 || Octavo|}
...se mostrará como:
Cuando las clasificaciones contienen clasificaciones de dos dígitos, valores en blanco o especiales, puede ser necesario un marcado adicional para activar la ordenación numérica o para establecer explícitamente valores de ordenación equivalentes. El método preferido es utilizar los atributos data-sort-type="..."
y data-sort-value="..."
. Colocar un data-sort-type="number"
atributo en la celda de encabezado forzará un orden de ordenación numérico. Agregar un data-sort-value="..."
atributo a una celda de datos anulará el valor.
El siguiente marcado:
{| clase="wikitable ordenable" estilo="text-align:center"! data-sort-type="number" | ¡Rango! ¡Posición! ¡Mal ordenamiento! Estilo de ordenamiento anterior|-| {{Gold1}} || Primero || 1 || {{Gold1}}|-| {{Silver2}} || Segundo || 2 || {{Silver2}}|-| {{Bronce3}} || Tercero || 3 || {{Bronce3}}|-| 4* || Cuarto || 4* || {{Ordenar|04|4*}}|-| 5 || Quinto || 5 || {{Ordenar|05|5}}|-| 10 || Décimo || 10 || 10|-| 11 || Undécimo || 11 || 11|-| 20 || Vigésimo || 20 || 20|-| 50 || Quincuagésimo || 50 || 50|-| data-sort-value="96"|NM || Sin marca || NM || {{Ordenar|96|NM}}|-| data-sort-value="97"|DQ || Descalificado || DQ || {{Ordenar|97|DQ}}|-| data-sort-value="98"|– || Guión || – || {{clave de ordenación oculta|98}}–|-| data-sort-value="99"| || Vacío || || {{clave de ordenación oculta|99}}|}
...se mostrará como:
Como se muestra en la columna más a la derecha, las plantillas y también se pueden usar para resolver problemas de clasificación, pero esta metodología está obsoleta.{{sort}}
{{hidden sort key}}
Las siguientes plantillas han fusionado su funcionalidad con las plantillas principales, ya que una clasificación incorrecta nunca es una característica útil.