Template:Età wikipediana: differenze tra le versioni

Da Wikipedia, l'enciclopedia libera.
Vai alla navigazione Vai alla ricerca
Contenuto cancellato Contenuto aggiunto
m fix "da" in Testo
{{{sesso|{{GENDER:{{PAGENAME}}|M|F}}}}} come da discussione
Riga 2: Riga 2:
{{SchedaBabelfish
{{SchedaBabelfish
|Sigla= [[File:Noia 64 apps karm.png|43px]]
|Sigla= [[File:Noia 64 apps karm.png|43px]]
|Testo= {{#ifeq:{{{sesso|}}}|F|Questa utente è una wikipediana|Questo utente è un wikipediano}} da '''{{Età wikipediana/for|{{ #ifexpr: (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time: YmdHis}} / 1000000) round 0)) /10000 round 0)*100 > {{{month|}}}
|Testo= {{#ifeq:{{{sesso|{{GENDER:{{PAGENAME}}|M|F}}}}}|F|Questa utente è una wikipediana|Questo utente è un wikipediano}} da '''{{Età wikipediana/for|{{ #ifexpr: (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time: YmdHis}} / 1000000) round 0)) /10000 round 0)*100 > {{{month|}}}
| {{ #expr: {{ #expr: ((({{#time: YmdHis}} / 1000000) round 0)) /10000 round 0}} - {{{year|}}} }}
| {{ #expr: {{ #expr: ((({{#time: YmdHis}} / 1000000) round 0)) /10000 round 0}} - {{{year|}}} }}
| {{ #ifexpr: (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time: YmdHis}} / 1000000) round 0)) /10000 round 0)*100 < {{{month|}}}
| {{ #ifexpr: (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time: YmdHis}} / 1000000) round 0)) /10000 round 0)*100 < {{{month|}}}
Riga 21: Riga 21:
}}
}}
}}|{{#ifexpr: (((({{#time: YmdHis}} / 1000000) round 0))) - (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0)*100 >= {{{day|}}} | {{ #expr: {{ #expr: (((({{#time: YmdHis}} / 1000000) round 0))) - (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0)*100 }} - {{{day|}}} }} | {{#ifexpr: (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time: YmdHis}} / 1000000) round 0)) /10000 round 0)*100 = 5 or (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time: YmdHis}} / 1000000) round 0)) /10000 round 0)*100 = 7 or (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time: YmdHis}} / 1000000) round 0)) /10000 round 0)*100 = 10 or (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time: YmdHis}} / 1000000) round 0)) /10000 round 0)*100 = 12 | {{ #expr: {{ #expr: (((({{#time: YmdHis}} / 1000000) round 0))) - (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0)*100 }} - {{{day|}}} + 30 }} | {{#ifexpr: (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time: YmdHis}} / 1000000) round 0)) /10000 round 0)*100 = 1 or (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time: YmdHis}} / 1000000) round 0)) /10000 round 0)*100 = 2 or (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time: YmdHis}} / 1000000) round 0)) /10000 round 0)*100 = 4 or (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time: YmdHis}} / 1000000) round 0)) /10000 round 0)*100 = 6 or (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time: YmdHis}} / 1000000) round 0)) /10000 round 0)*100 = 8 or (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time: YmdHis}} / 1000000) round 0)) /10000 round 0)*100 = 9 or (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time: YmdHis}} / 1000000) round 0)) /10000 round 0)*100 = 11 | {{ #expr: {{ #expr: (((({{#time: YmdHis}} / 1000000) round 0))) - (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0)*100 }} - {{{day|}}} + 31 }} | {{#ifexpr: ((({{#time: YmdHis}} / 1000000) round 0)) /10000 round 0 mod 4 = 0 | {{ #expr: {{ #expr: (((({{#time: YmdHis}} / 1000000) round 0))) - (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0)*100 }} - {{{day|}}} + 29 }} | {{ #expr: {{ #expr: (((({{#time: YmdHis}} / 1000000) round 0))) - (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0)*100 }} - {{{day|}}} + 28 }} }} }} }} }}}}'''.
}}|{{#ifexpr: (((({{#time: YmdHis}} / 1000000) round 0))) - (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0)*100 >= {{{day|}}} | {{ #expr: {{ #expr: (((({{#time: YmdHis}} / 1000000) round 0))) - (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0)*100 }} - {{{day|}}} }} | {{#ifexpr: (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time: YmdHis}} / 1000000) round 0)) /10000 round 0)*100 = 5 or (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time: YmdHis}} / 1000000) round 0)) /10000 round 0)*100 = 7 or (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time: YmdHis}} / 1000000) round 0)) /10000 round 0)*100 = 10 or (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time: YmdHis}} / 1000000) round 0)) /10000 round 0)*100 = 12 | {{ #expr: {{ #expr: (((({{#time: YmdHis}} / 1000000) round 0))) - (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0)*100 }} - {{{day|}}} + 30 }} | {{#ifexpr: (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time: YmdHis}} / 1000000) round 0)) /10000 round 0)*100 = 1 or (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time: YmdHis}} / 1000000) round 0)) /10000 round 0)*100 = 2 or (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time: YmdHis}} / 1000000) round 0)) /10000 round 0)*100 = 4 or (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time: YmdHis}} / 1000000) round 0)) /10000 round 0)*100 = 6 or (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time: YmdHis}} / 1000000) round 0)) /10000 round 0)*100 = 8 or (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time: YmdHis}} / 1000000) round 0)) /10000 round 0)*100 = 9 or (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time: YmdHis}} / 1000000) round 0)) /10000 round 0)*100 = 11 | {{ #expr: {{ #expr: (((({{#time: YmdHis}} / 1000000) round 0))) - (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0)*100 }} - {{{day|}}} + 31 }} | {{#ifexpr: ((({{#time: YmdHis}} / 1000000) round 0)) /10000 round 0 mod 4 = 0 | {{ #expr: {{ #expr: (((({{#time: YmdHis}} / 1000000) round 0))) - (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0)*100 }} - {{{day|}}} + 29 }} | {{ #expr: {{ #expr: (((({{#time: YmdHis}} / 1000000) round 0))) - (((({{#time: YmdHis}} / 1000000) round 0)) /100 round 0)*100 }} - {{{day|}}} + 28 }} }} }} }} }}}}'''.
|ColoreSfondo= {{#ifeq:{{{sesso|}}}|F|#fff0ff|#a7d7f9}}
|ColoreSfondo= {{#ifeq:{{{sesso|{{GENDER:{{PAGENAME}}|M|F}}}}}|F|#fff0ff|#a7d7f9}}
|ColoreBordo= {{#ifeq:{{{sesso|}}}|F|#e070f0|#4682b4}}
|ColoreBordo= {{#ifeq:{{{sesso|{{GENDER:{{PAGENAME}}|M|F}}}}}|F|#e070f0|#4682b4}}
}}</includeonly>
}}</includeonly>
<noinclude>{{man}}
<noinclude>{{man}}

Versione delle 15:45, 5 mag 2014

Info Istruzioni per l'uso
Le istruzioni che seguono sono contenute nella sottopagina Template:Età wikipediana/man (modifica · cronologia)
Sandbox: Template:Età wikipediana/Sandbox (modifica · cronologia) · TemplateStyles: Template:Età wikipediana/styles.css (modifica · cronologia) · Tutte le sottopagine: lista

Questo template permette di inserire nel proprio spazio utente un box che indica da quanto tempo si è registrati a it.wiki.

Uso

Per usare questo template copia e incolla il codice sottostante nel tuo babel. Poi compila con anno (year), mese (month) e giorno (day) di registrazione a it.wiki.[1]

Per avere la frase al femminile si può impostare la preferenza "Come riferirsi a te?" oppure si aggiunge sesso=F.
I colori sono configurabili tramite i parametri "sfondo" e "bordo".

{{Età wikipediana|year= |month= |day= }}


Esempi

Il codice {{Età wikipediana|year=2005|month=5|day=31}} dà come risultato:

Questo utente è un wikipediano da 19 anni e 22 giorni.


Al femminile, il codice {{Età wikipediana|year=2005|month=5|day=31|sesso=F}} dà come risultato:

Questa utente è una wikipediana da 19 anni e 22 giorni.


Esempio con colori personalizzati:

{{Età wikipediana|year=2005|month=5|day=31|sesso=F|sfondo=#fff0ff|bordo=#e070f0}}

Questa utente è una wikipediana da 19 anni e 22 giorni.


Note

  1. ^ Per conoscere la tua data di registrazione vedi Speciale:Preferenze