Difference between revisions of "Template:Age in years, months, weeks and days"

From NSWiki
Jump to: navigation, search
(Replaced content with "{{WIP}}")
 
Line 1: Line 1:
{{#switch:{{{years|}}}
+
{{WIP}}
||0=
+
|{{plural|{{{years}}}|year|nb=yes}}{{#switch: {{#expr:
+
  ({{{months|0}}} and {{{months|1}}}) +
+
  ({{{weeks|0}}} and {{{weeks|1}}}) +
+
  ({{{days|0}}} and {{{days|1}}})
+
  }}
+
  |0=
+
  |1= and 
+
  |, 
+
}}
+
}}{{#switch:{{{months|}}}
+
||0=
+
|{{plural|{{{months}}}|month|nb=yes}}{{#switch: {{#expr:
+
  ({{{weeks|0}}} and {{{weeks|1}}}) +
+
  ({{{days|0}}} and {{{days|1}}})
+
  }}
+
  |0=
+
  |1= and 
+
  |, 
+
}}
+
}}{{#switch:{{{weeks|}}}
+
||0=
+
|{{plural|{{{weeks}}}|week|nb=yes}}{{#switch: {{{days|0}}}
+
  |0=
+
  | and 
+
  }}
+
}}{{#switch:{{{days|}}}
+
||0=
+
|{{plural|{{{days|0}}}|day|nb=yes}}
+
}}
+

Latest revision as of 01:11, 26 January 2018

This page is a work in progress by its author(s) and should not be considered final.