Widget:Fecha y hora

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

Descripción

This widget formats a time supplied to it in a way similar to {{UTC hora}} while functioning in a way similar to #time in that it accepts a format and a time value.

Parameters

format
A format string specifing the desiered output. These format strings function similar to those of #time. All supported codes can be found listed in the example below. Meaning can be escaped by either puting what is to be taken literaly inside double quotes (") or by prefixing it with a backslash (\). To use a double quote inside of a double quoted section it can be prefixed with a backslash.
time
A timestamp specifing the time that should be used to format with expressed as epoch seconds.
ns
A text to be displayed if no scripting is available.
namespace
An identifier to be included in the ID assigned to target elements to distinguish them even in contexts which would otherwise cause ID colissions.

Notas

  • This widget should be used via {{fecha y hora}} so that its usage can be tracked.
  • Incompatibilities of formats in terms of exchangable use with #time:
    • #time does not support the use of backslashes to escape double quotes within double quoted sections.

Ejemplo

{{Fecha y hora|1=
"Y = Año de 4 dígitos": ................... Y
"y = Año de 2 dígitos": ................... y
"m = Mes (prefijado)": ............... m
"n = Mes": .......................... n
"F = Mes (texto)": ................... F
"M = Mes (texto corto)": ............. M
"d = Día (prefijado)": ................. d
"j = Día": ............................ j
"N = Día de la semana (1-7 (Lun-Dom))": .... N
"w = Día de la semana (0-6 (Dom-Sáb))": .... w
"l = Día de la semana (texto)": ............. l
"D = Día de la semana (texto corto)": ....... D
"a = am/pm": .......................... a
"A = AM/PM": .......................... A
"h = Hora (12h, prefijado)": ........... h
"g = Hora (12h)": ..................... g
"H = Hora (24h, prefijado)": ........... H
"G = Hora (24h)": ..................... G
"i = Minutos (prefijado)": ............. i
"s = Segundos (prefijado)": ............. s
"U = Época segunda": ................... U
"P = Compensación de zona horaria": ............... P
"O = Compensación de zona horaria (sin colon)": O
"Z = Compensación de zona horaria (segundos)": ..... Z
"c = Formato ISO": ................... c
}}

2024-11-04T18:20:48+00:00