Template:Tag/doc/cs
Toto je dokumentace podstrĂĄnky Template:Tag/doc. Obsahuje informace o pouĹžitĂ, kategorie a dalĹĄĂ obsah, kterĂ˝ nenĂ souÄĂĄstĂ pĹŻvodnĂ strĂĄnky Template. |
Tato sekce obsahuje strukturovanĂ˝ popis parametrĹŻ ĹĄablony vyuĹžĂvajĂcĂ rozĹĄĂĹenĂ TemplateData, kterĂ˝ umoĹžĹuje snadnÄjĹĄĂ pouĹžĂvĂĄnĂ tĂŠto ĹĄablony v prostĹedĂ VisualEditoru.
Tag/doc
This template provides a quick way to mention an XML-style tag in a preformatted way. Mainly used in discussion/help pages.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Tag | 1 | The name of the HTML tag.
| Line | required |
Type | 2 | What type of tag to display, see documentation for possible values.
| String | optional |
Content | content | The text content of the tag. By default â...â for pair type, empty for others; unused if type is single. | Content | optional |
Parameters | params | Parameters (attributes) for the opening tag, unused in close type.
| Line | optional |
Plain display | plain | Avoid using monospace font and grey background for the tag. | Boolean | optional |
Wrap? | wrap | Whether to not add `style="white-space: nowrap;"` to the enclosing <code> tag.
| Boolean | optional |
PouĹžitĂ
[edit]Typy
[edit]p
nebopair
â (vĂ˝chozĂ) zobrazit odpovĂdajĂcĂ pĂĄr otevĹenĂ˝ch a zavĹenĂ˝ch znaÄek:<div>...</div>
o
neboopen
â zobrazit pouze ĂşvodnĂ znaÄku pĂĄru typu open-and-close:<span>
c
neboclose
â zobrazit pouze uzavĂracĂ znaÄku pĂĄru typu open-and-close:</span>
s
nebosingle
â zobrazit samostatnou znaÄku:<br />
NapĹĂklad
[edit]- {{tag|ref}} â
<ref>...</ref>
- {{tag|ref|content=hello}} â
<ref>hello</ref>
- {{tag|span|content=foo}} â
<span>foo</span>
- {{tag|span|open}} â
<span>
- {{tag|span|open|content=hello}} â
<span>hello
- {{tag|span|close|content=hello}} â
hello</span>
- {{tag|span|pair|content=hello}} â
<span>hello</span>
- {{tag|ref|open|params={{attr|group|"note"}}}} â
<ref group="note">
- {{tag|references|single}} â
<references />
- {{tag|br|single}} â
<br />