Template:Days ago: Difference between revisions

From the Portal Wiki
Jump to navigation Jump to search
RJackson (talk | contribs)
Created page with "<includeonly>{{Days ago/core | year = {{{1}}} | month = {{{2}}} | day = {{{3}}} | today = {{#if:{{{br|}}}|(}}{{lang | {{#if:{{{force|}}}|force|null}} = {{{force|}}} | ar = ..."
 
m Reverted edits by Bismillah (talk) to last revision by Matthew250
Tag: Rollback
 
(3 intermediate revisions by 4 users not shown)
Line 7: Line 7:
   | ar = اليوم
   | ar = اليوم
   | cs = Dnes
   | cs = Dnes
  | da = I dag
   | de = Heute
   | de = Heute
   | en = Today
   | en = Today
Line 31: Line 32:
   | ar = أمس
   | ar = أمس
   | cs = Včera
   | cs = Včera
  | da = I går
   | de = Gestern
   | de = Gestern
   | en = Yesterday
   | en = Yesterday
Line 55: Line 57:
   | ar = {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} {{PLURAL:{{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}|يوم|أيام}} الماضية
   | ar = {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} {{PLURAL:{{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}|يوم|أيام}} الماضية
   | cs = před {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} dny
   | cs = před {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} dny
  | da = {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} {{PLURAL:{{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}|dag|dage}} siden
   | de = vor {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} Tagen
   | de = vor {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} Tagen
   | en = {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} {{PLURAL:{{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}|day|days}} ago
   | en = {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} {{PLURAL:{{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}|day|days}} ago

Latest revision as of 05:04, 6 April 2025

The template above may be partially or fully invisible or glitched due to the respected strings aren't entered.
This is normal.

Documentation for Days ago

This template makes use of ParserFunctions in the MediaWiki software to calculate the amount of days past since a specified date. Its main usage is on the {{Latest updates}} template that appears on the Main Page. As the code of this template can be quite complex, {{Days ago/core}} is used to hold the mathematical expressions and {{Days ago}} handles language translations.

Usage

  • {{Days ago|2010|12|8}} (yyyy-m-d) generates 5621 days ago
  • {{Days ago|2010|12|8|br=yes}} (yyyy-m-d) generates (5621 days ago)