Help:Wiki format brief overview
From Mod Wiki
(Difference between revisions)
Revision as of 19:18, 8 June 2007 (edit) Smile (Talk | contribs) ← Previous diff |
Revision as of 09:06, 9 June 2007 (edit) (undo) Smile (Talk | contribs) Next diff → |
||
Line 9: | Line 9: | ||
==Surrounding tags== | ==Surrounding tags== | ||
- | ===Bold=== | + | ===Bold text=== |
- | * | + | *You can get the bold text by enclosing the text section between three single inverted comas |
- | {{sample|<nowiki>''' | + | {{sample|<nowiki>'''Bold'''</nowiki>|'''Bold'''}} |
- | === | + | ===Italicize text=== |
- | * | + | *Put the text between two single inverted comas to make the text Italic |
- | {{sample|<nowiki>'' | + | {{sample|<nowiki>''Italic''</nowiki>|''Italic''}} |
===Underlining=== | ===Underlining=== | ||
- | * | + | *Put the text between the tags '''<nowiki><u>...</u></nowiki>''' to underline it |
- | {{sample|<nowiki><u> | + | {{sample|<nowiki><u>Underlining</u></nowiki>|<u>Underlining</u>}} |
===Tags combination=== | ===Tags combination=== |
Revision as of 09:06, 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
- Теги можно использовать в комбинациях, важно только соблюдать правильную последовательсность.
Example:
how to write | how it looks |
'''<u>Подчеркивание</u>''' | Подчеркивание |
Block
- Для того, чтобы отобразить блок воспользуйтесь парой <pre>...</pre>. Обратите внимание, что заключенный текст не будет комбинироваться с другими тегами, однако текст отобразится именно так, как вы его разместите. Сохраняя все пробелы и табуляции.
Example:
how to write | how it looks |
<pre>Блок</pre> | Блок |
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>|Отображение}}