Template:Attr

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search

{{{1}}}={{{2}}}

Template documentation

Usage[edit]

Examples[edit]

  • {{tag|ref|open|params={{attr|group|"note"}}}}<ref group="note">

TemplateData[edit]

This is the TemplateData documentation for this template used by VisualEditor and other tools.

Attr

This template provides a quick way to mention an XML-style attribute in a preformatted way. Mainly used by the {{Tag}} template.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Name1

The name of the X/HTML attribute.

Example
foo
Linerequired
Value2

The value of the X/HTML attribute.

Example
"bar"
Linesuggested

See also[edit]