ЛопаПарцун:Markup/doc

Википедиясто материал - аорев содамкундосто

ЛопаПарцун:Translate Этот шаблон используется, чтобы представить разметку или код рядом с результатом его применения.

Использование[витнемс лисьмапрянть]

Каждая ячейка в первой колонке ("Markup") использует <pre>, to retain newlines and spaces but styled to allow content to wrap within it. It is usually desirable to escape the content of these cells so that the markup is displayed by wrapping the markup in ЛопаПарцун:Xtag. It is technically not possible to add this feature to the template.

Каждая ячейка во второй колонке ("Renders as") скопирована из соответствующей ячейки "разметки" перед ней. Есть случаи, когда это может отличаться:

  • Если первая строка содержит викиразметку, которая должна начать новую строку.
  • Заголовки разметки, такой как == покажет странице оглавления; will show in the page table of contents; use {{fake heading}}.
  • Some templates will place the page in a maintenance category, which is usually undesired:
  • Some templates may have error checking that places the page in a maintenance category. Suppress the category as possible:

Ограничение[витнемс лисьмапрянть]

ЛопаПарцун:Xtag[витнемс лисьмапрянть]

Если вы не поместите содержимое ячейки разметки в ЛопаПарцун:Xtag, then any template markup will not be escaped, it will be expanded.

This example shows the markup for {{tl|tag}}:

Renders as Expected rendering
{{[[Template:tag|tag]]}} 
{{tl|tag}}

HTML entities[витнемс лисьмапрянть]

HTML entities are parsed in the markup cell:

Nowikied markup shows as Expected markup
 – 
&nbsp;&ndash;

To work around this, replace the & with &amp; thus &amp;nbsp; will show as &nbsp;

List and indent markup[витнемс лисьмапрянть]

If the first line includes wikimarkup that must start on a new line such as #, * or ; then use <nowiki />:

Without <nowiki />
Разметка Результат
# Item 1
# Item 2
# Item 3
# Item 4 
  1. Item 1
  2. Item 2
  3. Item 3
  4. Item 4
With <nowiki />
Разметка Результат
<nowiki />
# Item 1
# Item 2
# Item 3
# Item 4 

  1. Item 1
  2. Item 2
  3. Item 3
  4. Item 4

Examples[витнемс лисьмапрянть]

Simple[витнемс лисьмапрянть]

Разметка Результат
'''Bold text''' 
Bold text
''Italic text'' 
Italic text

More complex[витнемс лисьмапрянть]

Note that ЛопаПарцун:Tl2's second argument here uses ЛопаПарцун:Tl2 and ЛопаПарцун:Tl2.

Разметка Результат
The quick brown fox jumps over the lazy dog.{{#tag:ref|A footnote.<ref>A reference for the footnote.</ref>|group=nb}} The cow jumped over the moon.{{fact}}

== Notes ==
{{reflist|group=nb}}

== References ==
{{reflist}}
 

The quick brown fox jumps over the lazy dog.[nb 1] The cow jumped over the moon.ЛопаПарцун:Fake citation needed

Notes

ЛопаПарцун:Reflist

References
ЛопаПарцун:Reflist

Multiple rows[витнемс лисьмапрянть]

Разметка Результат
The quick brown fox jumps over the lazy dog. 
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog. 
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog. 
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog. 
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog. 
The quick brown fox jumps over the lazy dog.

With title[витнемс лисьмапрянть]

Foxes and dogs
Разметка Результат
The quick brown fox jumps over the lazy dog. 
The quick brown fox jumps over the lazy dog.

Showing rendered HTML[витнемс лисьмапрянть]

When a template is enclosed within {{code}}, it shows the rendered HTML:

Разметка Результат
{{книга |заглавие=The Book of Merlyn |год=1977 |язык=en |автор=White, T. H.}} 
White, T. H. The Book of Merlyn. — 1977.
{{code|{{книга |заглавие=The Book of Merlyn |год=1977 |язык=en |автор=White, T. H.}}}} 
<span class="citation" ><i>White, T. H.</i>&#32;The Book of Merlyn.&nbsp;— 1977.</span>

ЛопаПарцун:Шаблоны для документирования


  1. A reference for the footnote.


Саевксэнь ильведевкс: Для существующих тегов <ref> группы «nb» не найдено соответствующего тега <references group="nb"/>