Template:Potd description helper/doc

No description yet available.

The template automatically sets the following categories:

Usage

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

Or use the shorthand

{{Pdh|… parameters as described …}}

This is a helper template for Template:Potd description. The main template is used hundreds of times on the main PotD 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.

Template parameters

<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. ‎<nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw ‎<templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.


Wikipedia's help about TemplateDataCommons-specific information

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
description1

The description itself

Contentrequired
language2

Code of the language the description is written in (en for English, de for German etc.)

Linerequired
year3

Year of the date this was the picture of the day

Numberrequired
month4

Month of the date this was the picture of the day

Linerequired
day5

Day of the date this was the picture of the day

Linerequired

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: all users

Example

{{Potd description helper|Description|en|2024|12|17}}

renders as:

Description

 Template:Potd/2024-12-17

This is the English translation of the Picture of the day description page from 17 December 2024.

Description

Descriptions in other languages:

See also

Localization

العربية  বাংলা  čeština  dansk  Deutsch  English  Esperanto  español  français  magyar  Bahasa Indonesia  italiano  日本語  한국어  македонски  മലയാളം  Plattdüütsch  Nederlands  polski  português do Brasil  русский  slovenščina  svenska  Türkçe  українська  中文

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