Template:Tag/doc

This template provides a quick way to mention an XML/HTML-style tag in a preformatted way.

Usage

 * First unnamed parameter
 * The XML/HTML tag's name (e.g.,  ). Default is "tag".


 * Second unnamed parameter
 * To indicate which of the tag's types is/are presented:
 * /  (default) : A matching pair of open/start and close/end tags (e.g. ). To suppress the ellipsis ("...") between the tags, add an empty   parameter.
 * /  : An open/start tag (e.g. ).
 * /  : A close/end tag (e.g. ).
 * /   or    /    or    /   : An empty element, formed with a single self-terminating tag (e.g. ); in HTML5 these are now known as "void" elements, though "empty" is the more common term.


 * content
 * Text to place between open/start and close/end tags. Default is the ellipsis (...).


 * attribs / params
 * Attributes and values to be included as part of an open/start tag.


 * wrap = y / yes
 * Disable nowrap for long samples.


 * link = y / yes
 * Link to the element's entry at Wikipedia's respective HTML element article, e.g.:
 * produces:
 * 
 * This link is only for HTML elements; the page is hard-coded, so it cannot be used for, e.g., XML elements from a particular schema. If desired, a feature for specifying the link page can be added.
 * This link is only for HTML elements; the page is hard-coded, so it cannot be used for, e.g., XML elements from a particular schema. If desired, a feature for specifying the link page can be added.


 * style
 * = css style
 * = plain : no border, transparent background
 * default style is:
 * color: #000;
 * background-color: #f8f9fa;
 * border: 1px solid #eaecf0;
 * border-radius: 2px;
 * padding: 1px 4px;

Examples
The documentation above is based on Wikipedia's Template:Tag/doc.

This documentation page was copy-pasted from Gamepedia.