Template:Code-validation-notification

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search


Code issues in [[{{{title}}}]]

Hi [[User:{{subst:#titleparts:{{subst:PAGENAME}}|1|1}}|{{subst:#titleparts:{{subst:PAGENAME}}|1|1}}]], I am a bored bot (this is kind of a computer program) that is watching the recent changes and tapping buttons like I did now.

Curious about the reason? Possibly not but I will tell you anyway:

  1. You [[Special:Diff/{{{diff}}}|edited]] [[{{{title}}}]]. Thank you for caring about Wikimedia Commons's {{{contentmodel}}} pages.
  2. Though, that change appears to introduce {{{newissuescount}}} new {{{type}}} issues — the page's status is now <not set>.
  3. To help you understanding where the issues are, I have aggregated a report here and now. If you have questions, don't hesitate to ask users experienced in {{{contentmodel}}} writing for help. But do not ask the bot's operators (chronically overwrought) unless you suspect an error of mine.

{{{report}}}

Your ~~~ at ~~~~~.

Template documentationview · edit · history · purge ]

Notification about code issues.

Usage

{{code-validation-notification |title= |diff= |contentmodel= |newissuescount= |status= |report= |type= }}

Template parameters

ParameterDescriptionDefaultStatus
titletitlePage title having the issuesemptyrequired
diffdiffDiff ID of the edit performed that introduced the issueemptyrequired
foruserfor userIf set indicates that the notification is about a script in the user namespace - it will be more verboseemptyoptional
contentmodelcontent modelThe content model of the edited page - that's hinting the programming language it is written inemptyrequired
newissuescountcount of new issuesNumber of new issues introduced with the cited diffemptyrequired
statusstatusStatus indicator: Warnings, errors, unknown, or okayemptyrequired
reportreportReport listing the issuesemptyrequired
typeissue typeIssue type (validator)emptyrequired
Template data
<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.

Discussion
There is an ongoing discussion about that matter. Feel invited to comment if you are experienced in either way, your time permits and if you like to share your opinion or to make a suggestion.


Wikipedia's help about TemplateDataCommons-specific information

Notification about code issues.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
content modelcontentmodel

The content model of the edited page - that's hinting the programming language it is written in

Stringrequired
diffdiff

Diff ID of the edit performed that introduced the issue

Numberrequired
for userforuser

If set indicates that the notification is about a script in the user namespace - it will be more verbose

Numberoptional
count of new issuesnewissuescount

Number of new issues introduced with the cited diff

Numberrequired
reportreport

Report listing the issues

Contentrequired
statusstatus

Status indicator: Warnings, errors, unknown, or okay

Numberrequired
titletitle

Page title having the issues

Page namerequired
issue typetype

Issue type (validator)

Stringrequired

Additional information

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

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

Placement: At the bottom of the page

Localization

العربية  dansk  Deutsch  English  français  magyar  日本語  македонски  Nederlands  polski  português  русский  українська

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