Difference between revisions of "Template:Start date and age"

From ERPC Wiki Archive
Jump to: navigation, search
m (Changed protection level for "Template:Start date and age": Highly visible template ([Edit=Require template editor access] (indefinite) [Move=Require administrator access] (indefinite)))
m (1 revision imported)
 
(2 intermediate revisions by 2 users not shown)
Line 20: Line 20:
 
       -->|{{#if: {{{3|}}}<!--
 
       -->|{{#if: {{{3|}}}<!--
 
           -->|{{time ago|{{{1}}}-{{{2}}}-{{{3}}}|min_magnitude=days}}<!--
 
           -->|{{time ago|{{{1}}}-{{{2}}}-{{{3}}}|min_magnitude=days}}<!--
           -->|{{years or months ago|{{{1}}}|{{#time:n|1-{{{2}}}-1}}}}<!--
+
           -->|{{years or months ago|{{{1}}}|{{#time:n|1-{{trim|{{{2}}}}}-1}}}}<!--
 
           -->}}<!--
 
           -->}}<!--
 
       -->|{{#iferror:{{#expr:{{{1}}}}}<!--
 
       -->|{{#iferror:{{#expr:{{{1}}}}}<!--
Line 28: Line 28:
 
       -->}}<!--
 
       -->}}<!--
 
     -->{{#ifeq:{{yesno|{{{paren|{{{p|no}}}}}}}}|yes|)}}</span><!--
 
     -->{{#ifeq:{{yesno|{{{paren|{{{p|no}}}}}}}}|yes|)}}</span><!--
   -->|'''{{color|red|Error: first parameter is missing.}}'''<!--
+
   -->|{{Error|Error: first parameter is missing.|tag=span}}<!--
 
-->}}<!--
 
-->}}<!--
  
Line 37: Line 37:
 
   -->|{{{1}}}<!--
 
   -->|{{{1}}}<!--
 
   -->{{#if: {{{2|}}}<!--
 
   -->{{#if: {{{2|}}}<!--
     -->| -{{#time:m|1-{{{2}}}-1}}<!--
+
     -->| -{{#time:m|1-{{trim|{{{2}}}}}-1}}<!--
 
       -->{{#if: {{{3|}}}<!--
 
       -->{{#if: {{{3|}}}<!--
 
         -->| -{{padleft:{{{3}}}|2|0}}<!--
 
         -->| -{{padleft:{{{3}}}|2|0}}<!--

Latest revision as of 17:31, 18 October 2017

Lua error in Module:Fallback at line 134: attempt to index a nil value.