Plantilla:Cuenta regresiva

De Guild Wars 2 Wiki
Ir a la navegaciónIr a la búsqueda

Descripción[editar]

Esta plantilla utiliza Widget:Cuenta regresiva para mostrar una cuenta regresiva hasta un tiempo específico y, opcionalmente, hasta tiempos transcurridos por un intervalo posterior a ese.

Uso[editar]

{{Cuenta regresiva|<objetivo>}}
{{Cuenta regresiva|<objetivo>|<intervalo>}}
{{Cuenta regresiva|<objetivo>|<intervalo>|ns=<no script text>}}

Parámetros[editar]

Traducción necesaria para: texto
1 (unnamed parameter)
The time to count down to as a time value as understood by #time.
2 (unnamed parameter)
Opcional. The duration of the intervals to count down to after reaching the time specified as unnamed parameter 1 in seconds or as one of diario (equivalente a 1*24*60*60 segundos) o semanal (equivalente a 7*24*60*60 segundos).
If not specified the countdown will stop when reaching the time specified as unnamed parameter 1.
ns
Opcional. The text that should be displayed if scripting is unavailable.
If not specified defaults to the value of unnamed parameter 1 formated via #time using c preceeded by <Cuenta regresiva hasta and succeeded by .>.
sitenotice
Optional. Set to y when using the template in the sitenotice to cause the template to pass a different namespace to the widget to prevent countdowns from intermingling with each other due to duplicate IDs caused by distinct ID counts being maintained by the Widget extension for the sitenotice and article content.

Ejemplos[editar]

* Fin del día UTC (Medianoche UTC/tiempo de reinicio diario): <span style="font-family: Courier New, monospace;">{{Cuenta regresiva| {{#time: c| 00:00 + 1 day }} | {{#expr: 1*24*60*60}} }}</span>.
{{#vardefine: tyriandayend | {{#time: c | @{{#expr: {{#time: U}} + ( (2*60*60) - ( {{#time: U}} mod (2*60*60) ) ) }} }} }}<!--
-->* Fin del día Tyriano (Medianoche [[Día y noche|Hora de Tyria]]): <span style="font-family: Courier New, monospace; color: blue;">{{Cuenta regresiva| {{#var: tyriandayend}} | {{#expr: 2*60*60}} }}</span>.
  • Fin del día UTC (Medianoche UTC/tiempo de reinicio diario): <Cuenta regresiva hasta 2024-05-04T00:00:00+00:00.>.
  • Fin del día Tyriano (Medianoche Hora de Tyria): <Cuenta regresiva hasta 2024-05-03T02:00:00+00:00.>.