Mudanças entre as edições de "Predefinição:Nascimento"
Ir para navegação
Ir para pesquisar
(Criou página com '<includeonly>{{dni|{{{1|}}}|{{{2|}}}|{{{3|}}}|sem idade|lang={{{lang|}}}}}</includeonly>') |
|||
Linha 1: | Linha 1: | ||
<includeonly>{{ | <includeonly>{{ | ||
#if:{{{1|}}}{{{2|}}}{{{3|}}} | |||
|{{#if:{{{1|}}} | |||
|[[{{{1}}} de {{MONTHNAME|{{{2}}}|lang={{{lang|}}}}}#Nascimentos|{{{1}}} de {{MONTHNAME|{{{2}}}|lang={{{lang|}}}}}]] de [[{{{3}}}]] | |||
|{{#if:{{{2|}}} | |||
|[[{{MONTHNAME|{{{2}}}|lang={{{lang|}}}}}#Nascimentos|{{MONTHNAME|{{{2}}}|lang={{{lang|}}}}}]] de [[{{{3}}}]] | |||
|{{#if:{{{3|}}} | |||
|{{#ifeq: {{{3|}}} | 0 | |||
|[[Ano zero|0]] | |||
|[[{{{3}}}]] | |||
}} | |||
}} | |||
}} | |||
}}<!-- | |||
FIM DO IF 1 | |||
-->{{ | |||
#switch: {{lc:{{{4}}}}} | |||
|sem idade|si= <!-- nada a exibir --> | |||
|#default= ({{#expr: | |||
{{CURRENTYEAR}} | |||
- {{#if: {{{3|}}} | {{{3}}} | 0 }} | |||
- ( {{CURRENTMONTH}} < {{#if: {{{2|}}} | {{{2}}} | 0 }} | |||
or {{CURRENTMONTH}} = {{#if: {{{2|}}} | {{{2}}} | 0 }} | |||
and {{CURRENTDAY}} < {{#if: {{{1|}}} | {{{1}}} | 0 }} | |||
) | |||
}} {{PLURAL:{{#expr: | |||
{{CURRENTYEAR}} | |||
- {{#if: {{{3|}}} | {{{3}}} | 0 }} | |||
- ( {{CURRENTMONTH}} < {{#if: {{{2|}}} | {{{2}}} | 0 }} | |||
or {{CURRENTMONTH}} = {{#if: {{{2|}}} | {{{2}}} | 0 }} | |||
and {{CURRENTDAY}} < {{#if: {{{1|}}} | {{{1}}} | 0 }} | |||
) | |||
}}|ano|anos}}){{#ifeq:{{NAMESPACENUMBER}}|0|[[Categoria:Pessoas vivas]]}} | |||
}}<!-- switch --> | |||
|<!-- Não faz nada se não há nenhum dos 3 parâmetros --> | |||
}}{{#ifeq:{{NAMESPACENUMBER}}|0| {{#if:{{{3|}}}| [[Categoria:Nascidos em {{{3}}}]] }} }}</includeonly> |
Edição das 18h41min de 20 de dezembro de 2019