Una plantilla para generar una tabla de medallas para un evento deportivo donde los totales y las clasificaciones se calculan automáticamente.
{{ Tabla de medallas | caption = | host = <!-- Texto para mostrar después del cuadro de color del anfitrión --> | show_limit = <!-- Se limitará a mostrar solo las primeras N filas si se proporciona este parámetro --> | remainder_text = <!-- Texto para mostrar para las N filas restantes (el valor predeterminado es 'Restantes') --> | flag_template = <!-- Opcional, se usará de manera predeterminada Template:Flagteam --> | event = <!-- requerido SI flag_template requiere un parámetro secundario --> | team = <!-- Opcional, se usará de manera predeterminada Nation --> | source = <!-- Enlace externo o referencia --> ... <!-- Para obtener una lista de valores IOC válidos, consulte [[Lista de códigos de países IOC]] --> | gold_IOC = | silver_IOC = | bronze_IOC = | host_IOC = <!-- dejar en blanco A MENOS QUE sea la nación anfitriona --> | name_IOC = <!-- Anulación opcional del valor predeterminado que es {{flag_template|IOC}} --> | note_IOC = <!-- Nota opcional que se agrega después del nombre de la nación --> }}
Error de Lua: argumento incorrecto n.° 1 para 'formatNum' (se esperaba un número, se obtuvo una cadena).
Algunos de los parámetros opcionales
Para obtener una lista de valores IOC válidos, consulte Lista de códigos de países IOC
En caso de múltiples hosts, utilice |host1=
y|host2=
La plantilla que se muestra a continuación contiene una versión condensada de la plantilla con TODOS los códigos de países del COI incluidos. Obviamente, no se necesitan todos. Usted es libre de elegir los que necesite para la implementación de la plantilla.
Si se asignan valores {{{event}}}
a y {{{flag_template}}}
, entonces el valor de la nación se representará como {{<flag_template>|<IOC>|<event>}}
.
Así por ejemplo, con los siguientes parámetros:
{{ Tabla de medallas | evento = Invierno 2018 | plantilla_de_bandera = Bandera del equipo del COI | nación1 = EE. UU. | nación2 = CAN }}
Las naciones se representarán como Estados Unidos (EE. UU.) y Canadá (CAN)
{{ Tabla de medallas | título = | anfitrión = | límite de exhibición = | texto restante = | plantilla de bandera = | evento = | fuente = < ref >[ http://wuni15.sportresult.com/HIDE/es/MedalTally?sport=00&medalKind=DefaultSports Medal Tally ]</ ref > | oro_FRA = 7 | plata_FRA = 4 | bronce_FRA = 4 | oro_GBR = 5 | plata_GBR = 5 | bronce_GBR = 5 | oro_EE. UU. = 5 | plata_EE . UU. = 3 | bronce_EE. UU. = 2 | oro_AUS = 3 | plata_AUS = 5 | bronce_AUS = 7 | oro_RSA = 3 | plata_RSA = 4 | bronce_RSA = 3 | oro_GER = 1 | plata_GER = 3 | bronce_GER = 3 }}
{{ Tabla de medallas | caption = Tabla de medallas de la Universiada de Invierno 2015 | host = SVK | source = < ref >[ http://wuni15.sportresult.com/HIDE/es/MedalTally?sport=00&medalKind=DefaultSports Medal Tally ]</ ref > | flag_template = flag IOC 2 | event = Universiada de Invierno 2015 | team = | gold_RUS = 9 | silver_RUS = 9 | bronze_RUS = 9 | gold_KOR = 5 | silver_KOR = 5 | bronze_KOR = 5 | gold_ITA = 4 | silver_ITA = 4 | bronze_ITA = 4 | gold_1 = 1 | silver_1 = 1 | bronze_1 = 0 | name_1 = Atletas Independientes | skip_1 = si | note_1 = < ref > esto es una nota </ ref > | gold_SVK = 0 | plata_SVK = 0 | bronce_SVK = 1 | host_SVK = sí }}