Mudanças entre as edições de "Predefinição:Nascimento"

De Grêmiopédia, a enciclopédia do Grêmio
Ir para navegação Ir para pesquisar

(Criou página com '<includeonly>{{dni|{{{1|}}}|{{{2|}}}|{{{3|}}}|sem idade|lang={{{lang|}}}}}</includeonly>')
 
 
(4 revisões intermediárias por 2 usuários não estão sendo mostradas)
Linha 1: Linha 1:
<includeonly>{{dni|{{{1|}}}|{{{2|}}}|{{{3|}}}|sem idade|lang={{{lang|}}}}}</includeonly>
<includeonly>{{
#if:{{{1|}}}{{{2|}}}{{{3|}}}
|{{#if:{{{1|}}}
    |[[{{{1}}} de {{MONTHNAME|{{{2}}}|lang={{{lang|}}}}}#Nascimentos|{{{1}}} de {{MONTHNAME|{{{2}}}|lang={{{lang|}}}}}]]{{#if:{{{3|}}}|&nbsp;de&nbsp;{{#ifexist: {{{3}}}|[[{{{3}}}]]|{{{3}}}}}|}}
    |{{#if:{{{2|}}}
      |[[{{MONTHNAME|{{{2}}}|lang={{{lang|}}}}}#Nascimentos|{{MONTHNAME|{{{2}}}|lang={{{lang|}}}}}]] de {{#ifexist: {{{3}}}|[[{{{3}}}]]|{{{3}}}}}
      |{{#if:{{{3|}}}
          |{{#ifeq: {{{3|}}} | 0
            |[[Ano zero|0]]
            |[[{{{3}}}]]
          }}
        }}
    }}
  }}<!--
  FIM DO IF 1
-->{{
  #switch: {{lc:{{{4}}}}}
  |sem idade|si= <!-- nada a exibir -->
  |#default= &nbsp;({{#expr:
      {{CURRENTYEAR}}
      - {{#if: {{{3|}}} | {{{3}}} | 0 }}
      - ( {{CURRENTMONTH}} < {{#if: {{{2|}}} | {{{2}}} | 0 }}
          or {{CURRENTMONTH}} = {{#if: {{{2|}}} | {{{2}}} | 0 }}
          and {{CURRENTDAY}} < {{#if: {{{1|}}} | {{{1}}} | 0 }}
      )
    }}&nbsp;{{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 atual tal como às 15h45min de 18 de maio de 2022