Jump to content

Template:Tag/doc

From Nordic Larp Wiki

Template:About Template:Documentation subpage Template:High-use

Template:Tc

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.)

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Tag name1

XML/HTML tag's name. Use !-- for an HTML comment.

Example
includeonly
Stringrequired
Type2

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>

Suggested values
pair open close empty void single p o c e v s
Default
pair
Example
open
Stringsuggested
Disable nowrapwrap

Disable nowrap for long samples, so allowing wraps (line breaks or newlines).

Default
no
Auto value
yes
Booleanoptional
CSS stylestyle

Replace the default CSS style: border:none; background:transparent.

Default
border:none; background:transparent;
Example
background: cornsilk
Stringoptional
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.

Suggested values
yes y
Unknownoptional
paramsparams

no description

Unknownoptional
Attributes and valuesattribs params

[[Attributes and values]] to be included as part of an open/start tag

Example
class="plainlinks"
Stringsuggested
Contentcontent

Text to place between open/start and close/end tags.

Stringsuggested

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

  1. REDIRECT Template:Template link
  1. REDIRECT Template:Template link
  1. REDIRECT Template:Template link

adds a MediaWiki parser or extension tag that links to the extension page.

Other formatting templates

{{#lsth:Template:Template-linking_templates|Other formatting templates}} Template:Semantic markup templates