Template:Potd filename helper/doc

Category:Template documentation#Potd%20filename%20helper/doc

This is the helper template for Template:Potd filename. It contains most of the code used on the individual filename pages, to keep it from being loaded dozens of times in the places where it's in heavy use.

Usage


{{Potd filename helper |1= |2= |3= |4= }}

Template parameters

ParameterDescriptionDefaultStatus
1FileName of the file that is the picture of the day.emptyrequired
2YearThe year when it was the picture of the day.emptyrequired
3MonthThe month when it was the picture of the day (01 to 12).emptyrequired
4DayThe day when it was the picture of the day (01 to 31).emptyrequired
<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

Category:TemplateData documentation

This is the helper template for "Potd filename" template. It contains most of the code used on the individual filename pages, to keep it from being loaded dozens of times in the places where it's in heavy use.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
File1

Name of the file that is the picture of the day.

Page namerequired
Year2

The year when it was the picture of the day.

Numberrequired
Month3

The month when it was the picture of the day (01 to 12).

Numberrequired
Day4

The day when it was the picture of the day (01 to 31).

Numberrequired

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

Localization

This template is localized by utilizing custom MediaWiki namespace messages.