Help:Wiki format brief overview
From Mod Wiki
(Difference between revisions)
Revision as of 09:06, 9 June 2007 (edit) Smile (Talk | contribs) ← Previous diff |
Revision as of 09:18, 9 June 2007 (edit) (undo) Smile (Talk | contribs) Next diff → |
||
Line 22: | Line 22: | ||
===Tags combination=== | ===Tags combination=== | ||
- | * | + | *Tags can be used in combinations, it's important to keep the correct sequence. |
- | {{sample|<nowiki>'''<u> | + | {{sample|<nowiki>'''<u>Underlining</u>'''</nowiki>|'''<u>Underlining</u>'''}} |
===Block=== | ===Block=== | ||
- | * | + | *Use the pair '''<nowiki><pre>...</pre></nowiki>''' to create a block. Bear in mind that the enclosed text will not be combined with the other tags, however the text will be displayed in the place where you put it, retaining all spaces and tabulations. |
- | {{sample|<nowiki><pre> | + | {{sample|<nowiki><pre>Block</pre></nowiki>|<pre>Block</pre>}} |
===Headings=== | ===Headings=== |
Revision as of 09:18, 9 June 2007
This page will get you familiar with the basic methods of formatting text in wiki environment, which is necessary to arrange a full-fledged article. Let's start from the principles.
Main principles
The main formatting principles are
- Surrounding tags - with the text enclosed in them.
- Single markers - indicate the format of the text after them.
- Templates - complex tags, which create the portions of the text, for convenient use.
Surrounding tags
Bold text
- You can get the bold text by enclosing the text section between three single inverted comas
Example:
how to write | how it looks |
'''Bold''' | Bold |
Italicize text
- Put the text between two single inverted comas to make the text Italic
Example:
how to write | how it looks |
''Italic'' | Italic |
Underlining
- Put the text between the tags <u>...</u> to underline it
Example:
how to write | how it looks |
<u>Underlining</u> | Underlining |
Tags combination
- Tags can be used in combinations, it's important to keep the correct sequence.
Example:
how to write | how it looks |
'''<u>Underlining</u>''' | Underlining |
Block
- Use the pair <pre>...</pre> to create a block. Bear in mind that the enclosed text will not be combined with the other tags, however the text will be displayed in the place where you put it, retaining all spaces and tabulations.
Example:
how to write | how it looks |
<pre>Block</pre> | Block |
Headings
- Очень важными тегами являются теги заголовка т.к. разделяют материал на логические разделы. Работу следующего примера Вы можете видеть в структуре заголовков данной страницы.
==Общие принципы== ... ==Surrounding tags== ... ==Single markers== ... ===Alternative block===
Маркеры-одиночки
Альтернативный блок
- Минусом создания блока через теги <pre>...</pre> является его неспособность форматировать текст внутри себя. Этого нет в альтернативном блоке, создать который можно, установив пробел перед началом каждой его строки.
Example:
how to write | how it looks |
Альтернативный |
Альтернативный Блок |
Содержание
- Появляется автоматически при наличии в тексте более четырех заголовков, однако можно принудительно отобразить содержание.
Example:
how to write | how it looks | |
__TOC__ |
|
Шаблоны
Пример
- На этой странице я не раз воспользовался шаблоном примера. Условие зачастую заключается в тег НЕформатирования <nowiki>...</nowiki>.
{{sample|<nowiki>Условие</nowiki>|Отображение}}