Шаблон:Xtag
Материал из Википедии — свободной энциклопедии
<tag>
Этот шаблон создаёт ссылку на документацию по специализированному тегу MediaWiki.
Список поддерживаемых тегов
Для автоматически генерируемого списка Special:Version#mw-version-parser-extensiontags. Данный список может содержать не все теги.
- Теги парсера
<gallery>
,<includeonly>
,<noinclude>
,<nowiki>
,<onlyinclude>
,<pre>
- Теги расширений
<categorytree>
,<charinsert>
,<chem>
(он же<ce>
)<graph>
,<hiero>
,<imagemap>
,<indicator>
,<inputbox>
,<langconvert>
,<mapframe>
,<maplink>
,<math>
,<poem>
,<ref>
,<references>
,<score>
,<section>
,<syntaxhighlight>
(он же<source>
),<templatedata>
,<templatestyles>
,<timeline>
Параметры
- первый параметр (обязательный): имя HTML-тега
- второй параметр: тип отображаемого тега:
p
илиpair
: пара из открывающего и закрывающего тега- To suppress the ellipsis which appears between the tags, add an empty
|content =
parameter
- To suppress the ellipsis which appears between the tags, add an empty
o
илиopen
(по умолчанию): только открывающий тегc
илиclose
: только закрывающий тегs
илиsingle
: одиночный тег
- content= или c= — содержимое тегов
- params= или p= — любые параметры, включаемые в открывающий тег
- style= — стиль:
regular
для обычного шрифта и серого цвета угловых скобок под стать ((t)): <nowiki>
Примеры
Код | Результат |
---|---|
((xtag|nowiki)) | <nowiki>
|
((xtag|nowiki|s)) | <nowiki />
|
((xtag|syntaxhighlight|p|params=enclose="div" lang="text")) | <syntaxhighlight enclose="div" lang="text"></syntaxhighlight>
|
((xtag|source|p|content=smth)) | <source>smth</source>
|
((xtag|imagemap|style=regular)) | <imagemap> |
Text is available under the CC BY-SA 4.0 license; additional terms may apply.
Images, videos and audio are available under their respective licenses.