Template:Tag/doc
Template:About Template:Documentation subpage Template:High-use
A markup tag is an open < and a close > angle brackets and the content within them, in a markup language, as XML or HTML:
- For example, the <title> tag provides a title for the Web page.
This template provides a quick way to mention a markup-style tag in a preformatted way. Mainly used in discussion/help pages.
Parameters
Script error: No such module "Labelled list hatnote".
This template is for 'displaying' HTML/XML tags for elements with code markup. It can contain contents between the start and end tags, as well as attributes for the tag. (Note: To add markup tags, use the #tag magic word.)
Parameter | Description | Type | Status | |
---|---|---|---|---|
Tag name | 1 | XML/HTML tag's name. Use !-- for an HTML comment.
| String | required |
Type | 2 | To indicate which of the tag's types is/are presented. For example, using "open" → <span>; "close" → </span>; "empty" → <br />. To suppress the ellipsis ("...") between the tags, add an empty "content" parameter → <span></span>
| String | suggested |
Disable nowrap | wrap | Disable nowrap for long samples, so allowing wraps (line breaks or newlines).
| Boolean | optional |
CSS style | style | Replace the default CSS style: border:none; background:transparent.
| String | optional |
Link? | link | Link to the element's entry in the [[HTML element]] article, For example: {{Tag | del | link=y}} produces: "<[[HTML element#del | del]]>...</del>". This is only for HTML elements; the page for the link is hard-coded.
| Unknown | optional |
params | params | no description | Unknown | optional |
Attributes and values | attribs params | [[Attributes and values]] to be included as part of an open/start tag
| String | suggested |
Content | content | Text to place between open/start and close/end tags. | String | suggested |
Global use and documentation
For a global use of this template in other sister or Wikimedia projects, after copying it to paste in the destination project, remember to change in the code:
|p|pair = <{{#if:{{{link|}}}|[[HTML element#
by this one:
|p|pair = <{{#if:{{{link|}}}|[[Wikipedia:en:HTML element#
Remark that the code Wikipedia:en:
has been added.
For template documentation in the sister project, you can use Template:Wikipedia doc.
See also
- REDIRECT Template:Template link
![]() Template:Redirect templateTemplate:R from move/except When appropriate, protection levels are automatically sensed, described and categorized. |
- REDIRECT Template:Template link
![]() Template:Redirect templateTemplate:R from move/except When appropriate, protection levels are automatically sensed, described and categorized. |
- REDIRECT Template:Template link
![]() Template:Redirect templateTemplate:R from move/except When appropriate, protection levels are automatically sensed, described and categorized. |
adds a MediaWiki parser or extension tag that links to the extension page.
- #tag:, the parser function that generates working tags.
Other formatting templates
{{#lsth:Template:Template-linking_templates|Other formatting templates}} Template:Semantic markup templates