Jump to content

Template:Tag/doc

From Wikisource

Usage

[edit]

This template provides a means to insert simple HTML example tags into pages, without necessarily having to escape these with <nowiki>...</nowiki> or <syntaxhighlight>...</syntaxhighlight>.

Parameters

[edit]
  • 1: tag
  • 2: pair
  • wrap: wrapping behavior
  • style: plain for border:none;background:transparent;, or style attributes
  • params/attribs: attributes of tag
  • content: content between tags


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

Tag

A way to insert simple HTML example tags into pages.

Template parameters

ParameterDescriptionTypeStatus
11 tag

tag

Suggested values
body p !--
Default
tag
Stringsuggested
22 pair

pair

Suggested values
close empty open pair
Default
pair
Stringsuggested
wrapwrap

wrapping behavior

Default
false
Booleanoptional
stylestyle

style for the code block

Suggested values
plain color: darkgreen;
Contentoptional
attribsattribs params

attributes of tag

Suggested values
class='name' id='1' colspan='2'
Contentoptional
contentcontent

content between tags, when second parameter is set to pair

Contentoptional