Template:Motd description helper

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Template documentationview · edit · history · purge ]

This is a helper template for Template:Motd description. The main template is used hundreds of times on the main PotD/Motd setup pages - theoretically as many as 1800 times or so, though it depends on how many translations we actually get, so probably more like 400. As I (Adam Cuerden) understand it, a template has to be loaded in full every time it's called, but since the #ifeq tells the main template NOT to call this helper template on those pages, only the link to here gets loaded all those hundreds of times - and the link is, of course much smaller than all the actual content of this template.

Usage

{{Motd description helper |1= |2= |3= |4= |5= }}

Template parameters

ParameterDescriptionDefaultStatus
1captionemptyrequired
2languageCode of the language the caption is inemptyrequired
3yearYear of the MOTD dateemptyrequired
4monthMonth of the MOTD date, zero-paddedemptyrequired
5dayDay of the MOTD date, zero-paddedemptyrequired

Additional information

The template is intended to be used in the following namespaces: the Template namespace

The template is intended to be used by the following user groups: no user group specified

Example

{{Motd description helper|Example caption|en|2024|05|13}}

renders as:

Example caption

This is the English translation of the Media of the day description page from 13 May 2024.

Descriptions in other languages:

Localization

العربية  čeština  dansk  Deutsch  English  Esperanto  español  français  magyar  italiano  日本語  한국어  македонски  Plattdüütsch  Nederlands  polski  português do Brasil  русский  slovenščina  svenska  中文

This template makes use of {{Autotranslate}} and the translate extension.