Подсказки по редактированию
- Адреса страниц и электронной почты автоматически преобразуются в ссылки.
Доступны HTML теги: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <br> <sub> <sup> <p> <u> <strike> <div> <h1> <h2> <h3> <h4> <img> <tr> <td> <tbody> <table> <span> <hr> <pre> <blockquote>
Этот сайт допускает использование материалов с разметкой HTML. Изучение всего языка HTML может показаться пугающим, но использование небольшого количества основных "тегов" - это очень просто. Приведенная таблица показывает примеры для каждого тега из доступных на сайте.
Больше информации вы можете получить на странице официальных спецификаций HTML или используйте ваш любимый поисковик, чтобы найти сайты, разъясняющие HTML.
Описание тега Вы пишете Вы получаете Якоря используются для создания ссылок на другие страницы. <a href="http://cat.dn.ua">Сообщество любителей кошек Silver Rune</a>Сообщество любителей кошек Silver Rune Курсив <em>Курсив</em>Курсив Выделенный <strong>Выделенный</strong>Выделенный Цитата <cite>Цитата</cite>Цитата Для отображения исходных текстов программ <code>Исходный код</code>Исходный кодНенумерованный список – используйте <li> для начала каждого элемента списка <ul> <li>Первый элемент</li> <li>Второй элемент</li> </ul>- Первый элемент
- Второй элемент
Нумерованный список – используйте <li> для начала каждого элемента списка <ol> <li>Первый элемент</li> <li>Второй элемент</li> </ol>- Первый элемент
- Второй элемент
Списки определений похожи на другие списки HTML. <dl> начинает список определений, <dt> начинает определяемый термин и <dd> начинает описание определения. <dl> <dt>Первый термин</dt> <dd>Первое определение</dd> <dt>Второй термин</dt> <dd>Второе определение</dd> </dl>- Первый термин
- Первое определение
- Второй термин
- Второе определение
По умолчанию теги перевода строк вставляются автоматически, поэтому используйте данный тег для добавления дополнительного перевода строки. В отличие от многих других тегов этот не имеет закрывающей пары. Поэтому следует использовать "/" перед закрывающей скобкой тега (т.е. указывать его так "<br />") для совместимости с XHTML 1.0. Текст с <br /> переводом строкиТекст с
переводом строкиНижний индекс <sub>Нижний</sub> индексНижний индекс Верхний индекс <sup>Верхний</sup> индексВерхний индекс По умолчанию теги параграфов добавляются автоматически, так что используйте этот тег для создания дополнительных параграфов. <p>Первый параграф.</p> <p>Второй параграф.</p>Первый параграф.
Второй параграф.
Подчёркнутый <u>Подчёркнутый</u>Подчёркнутый Справки для тега strike нет. Справки для тега div нет. Заголовок <h1>Заголовок</h1>Заголовок
Заголовок <h2>Подзаголовок</h2>Подзаголовок
Заголовок <h3>Заголовок третьего уровня</h3>Заголовок третьего уровня
Заголовок <h4>Заголовок четвёртого уровня</h4>Заголовок четвёртого уровня
Справки для тега img нет. Справки для тега tbody нет. Таблица <table> <tr><th>Заголовок таблицы</th></tr> <tr><td>Ячейка таблицы</td></tr> </table>Заголовок таблицы Ячейка таблицы Справки для тега span нет. Справки для тега hr нет. Отформатированный текст <pre>Отформатированный текст</pre>Отформатированный текст
Цитата блоком <blockquote>Цитата блоком</blockquote>Цитата блоком
Большинство малоиспользуемых символов могут быть введены безо всяких проблем.
Если проблемы всё же возникают, попробуйте использовать подстановки для символов языка HTML. Например, & для вывода знака амперсанда. Полный список таких подстановок смотрите на странице подстановки. Некоторые из доступных символов:
Описание знака Вы пишете Вы получаете Амперсанд && Больше чем >> Меньше чем << Кавычка "" - Строки и параграфы распознаются автоматически. Теги переноса строки <br />, параграфа <p> и закрытия параграфа </p> вставляются автоматически. Если параграфы не распознаны, просто добавьте пару пустых строк.
BBCode Guide
BBCode allows you to specify formatting rules for your text, even if you are not allowed to use HTML in your posts. BBCode originated from the forum software named PHPBB, and this site has a special implementation of it.
In BBCode terms, you use "tags" to add formatting to your text. Every tag is enclosed in [ and ] brackets. If you want to mark some region in your text, you need to use an opening tag and a closing tag. Closing tags start with [/, as you will see in the examples below. If you mistype a tag or forget to close it, you will not get the desired formatting.
Simple text formatting
BBCode allows you to make some parts of your texts stand out from the context by adding [b]old, [i]talic, [u]nderlined and [s]trikeout formatting to them. The [color], [size] and [font] tags allow you to change the color, size and font of portions of the text you enclose with these tags. Both require a parameter (which colour, how big, what font) that is suffixed to the name of the tag by an equals sign (example below). You should not repeat the parameter in the closing tag!
You can specify any recognized color name (red, blue, green, white, etc.) or a hexadecimal color value (#CDCDCD, #FFFFFF, etc.) as the parameter of a [color] tag. The [size] tag allows you to set the font size between 6 and 48, 6 being the smallest size. Note that using very large text is considered by many to be annoying, and it is seldom a good idea to try to attract more attention to your post in this way. The [font] tag can be set to any valid font face, such as Arial, Arial Black, Courier, Courier New, Helvetica, Impact, Times New Roman, Verdana, etc.
usage display I [b]need to do[/b] this by the weekend I need to do this by the weekend John said that [i]we should[/i] ask her John said that we should ask her I [u]would not like to[/u] offend you I would not like to offend you Let's correct this [s]mispelled[/s] misspelled word Let's correct this mispelledmisspelled wordJane was at [color=blue]the coast[/color] Jane was at the coast Joe was in [color=#FF0000]the forest[/color] Joe was in the forest You said: [size=30]HEY![/size] You said: HEY! She said: [font=Courier]What?[/font] She said: What? Creating links
You have multiple options to specify links to other destinations in your posts.
URLs (Uniform Resource Locators) starting with "www" or "ftp" (eg. www.example.com) are automatically recognized and replaced with links. You can also use the [url] tag with a parameter to specify a link with meaningful text to click on. If you use the url tag without the parameter, the enclosed text is assumed to be a URL, and a link is created to that destination.
Email addresses in posts are also automatically converted to email links. For compatibility with common BBCode implementations, an [email] tag is provided.
usage display For more examples, visit www.example.com For more examples, visit www.example.com For more examples, visit http://example.com For more examples, visit http://example.com If you have questions ask me at joe@example.com If you have questions ask me at joe@example.com If you have questions ask me at [email]joe@example.com[/email] If you have questions ask me at joe@example.com We use [url=http://example.com/]the example site[/url] in these examples We use the example site in these examples We use [url]http://example.com/[/url] in these examples We use http://example.com/ in these examples Displaying images
The [img] tag allows you to display an image in your post. You need to specify a URL to the image, so it needs to be accessible somewhere on the internet. Beware of adding very large images to your text, or the page will load very slowly!
If you enclose a URL in an [img] tag, then it will be replaced with code to display the image. For example
A good screenshot: [img]http://example.com/screenshot.png[/img]will show you the screenshot (if it exists).You can also specify the desired display dimensions of the image by adding a dimension parameter to the [img] tag.
A good screenshot: [img=640x480]http://example.com/screenshot.png[/img]will display the image in 640x480 (though the full image will be downloaded). Do not use this to show a thumbnail of an image!You are free to link an image to an external destination by enclosing the [img] tag with a [url] tag:
See [url=http://example.com][img]http://example.com/screenshot.png[/img][/url].Ordered and unordered lists
The simplest list type is the unordered list, which means that there is no numbering applied to the elements. You can make such a list by enclosing the list elements in [list] opening and closing tags. Specify the start of one element with the [*] list element marker, which has no closing tag pair.
To create an ordered list, you should add a parameter to the [list] list tag specifying what type of ordered list you would like to see. The possible parameters are "i", "I", "1", "a", "A", "c", "d" and "s" which all correspond to the display of the first list element.
usage display I love [list] [*]Oranges [*]Apples [*]Bananas [/list]
I love - Oranges
- Apples
- Bananas
I love [list=I] [*]Oranges [*]Apples [*]Bananas [/list]
I love - Oranges
- Apples
- Bananas
I love [list=1] [*]Oranges [*]Apples [*]Bananas [/list]
I love - Oranges
- Apples
- Bananas
Fixed-width text and block formatting
You can use the [code] tag to add an inline fixed-width formatted part or to add a block of (usually program) code. If there is any newline present between the opening and closing tags, then a block will be displayed.
Similarly, the [php] tag can be used to post PHP code. PHP code will automatically be syntax highlighted for easier readability.
usage display Edit your [code]robots.txt[/code] file Edit your robots.txtfileAn HTML title example:
[code]
<head>
<title>Page Title</title>
</head>
[/code]An HTML title example:
<head>
<title>Page Title</title>
</head>
Some PHP code:
[php]
<?php
function hello()
{
echo "Hello World!";
}
?>
[/php]Some PHP code:
<?php
function hello()
{
echo "Hello World!";
}
?>Text and block alignment
You can also set the alignment of the text by using [left], [right] and [center] tags. The [float] tag can be used to place floating boxes in the text (especially handy for images). You can specify the direction of the floating with [float=left] and [float=right]. The [justify] tag can be used justify text on both sides of the page.
Other supported tags
It is possible to quote something that has already been posted, by just putting [quote][/quote] tags around it. To quote a specific person, use something like [quote=John]. Quote tags can be nested.
The [sub] and [sup] tags can be used to add subscript and superscript text. For example, H[sub]2[/sub]O gives H2O, while X[sup]3[/sup] gives X3.
The [acronym] tag allow you to identify text as an acronym and provide a description when users move their mouse over the tag. For example, [acronym=Structured Query Language]SQL[/acronym] produces SQL.
The [abbr] tag allow you to identify text as an abbreviation and provide a description when users move their mouse over the tag. For example, [abbr=World Wide Web]WWW[/abbr] produces WWW.
The [notag] tags prevent text inside the tags from being parsed. This allows you to give examples of BBcode and not have it converted to HTML. For example: [notag]These [b]tags[/b] are not rendered[/notag] will produce "These [b]tags[/b] are not rendered".
The [hr] tag draws a horizontal line across the page. Handy for separating chunks of text.
Using multiple formatting tags
You can apply more than one formatting specification to a portion of some text.
I was at [b][i]the coast[/i][/b]will be rendered asI was at the coast.Make sure that you take care of the proper order of the opening and closing tags. You should close the tags in the opposite order in which you opened them. Otherwise you might get very strange rendering results. Also check your post with the preview function before submitting it, in case there are formatting errors due to improper BBCode usage.
Для добавления lightbox к вашим изображениям, добавьте атрибут rel="lightbox" к каждому тегу для активации lightbox. Например:
<a href="image-1.jpg" rel="lightbox">image #1</a><a href="image-1.jpg" rel="lightbox[][my caption]">image #1</a>Для показа подписи или используйте атрибут title или поместите ее между вторыми квадратными скобками в атрибуте rel.
Если у вас есть набор связанных изображений, которые вы бы хотели сгруппировать, тогда вам необходимо ввести название группы между квадратными скобками в атрибуте rel. Например:
<a href="image-1.jpg" rel="lightbox[roadtrip]">image #1</a>
<a href="image-2.jpg" rel="lightbox[roadtrip][caption 2]">image #2</a>
<a href="image-3.jpg" rel="lightbox[roadtrip][caption 3]">image #3</a>
Нет ограничений на количество изображений на страницу в наборах или как много изображений разрешено в каждом наборе.
Если вы хотите включить подпись в ссылке, формат вашей подписи должен быть в следующем виде:
<a href="image-1.jpg" rel='lightbox[][<a href="http://www.yourlink.com">View Image Details</a>]' >image #1</a>To add a lightbox slideshow to your images, add rel="lightshow[slideshowname][slide caption]" attribute to any link tag to activate the slideshow. For example:
<a href="image-1.jpg" rel="lightshow[show1]">image #1</a>
<a href="image-2.jpg" rel="lightshow[show1]">image #2</a>
<a href="image-3.jpg" rel="lightshow[show1]">image #3</a>
Атрибут title в теге ссылки необязателен. Добавление этого атрибута позволит отображать заголовок к отображаемому в lightbox изображению.
Нет ограничений на количество изображений на страницу в наборах слайд-шоу или как много изображений разрешено в каждом слайд-шоу.
Если вы хотите включить подпись в ссылке, формат вашей подписи должен быть в следующем виде:
<a href="image-1.jpg" rel='lightshow[show1][<a href="http://www.yourlink.com">View Image Details</a>]'>image #1</a>It's possible to show webpage content in the lightbox, using iframes. In this case the "rel" attribute should be set to "lightframe". Again it's possible to group the content, (e.g.
lightframe[search][caption]) but in addition to that, it's possible to control some of the iframe properties. It's possible to set the "width", "height" and "scrolling" properties of the iframe. The properties are separated from the group name by a|, for examplelightframe[search|width:100px;][caption]. If no grouping is being used, then the|is still used and the format would belightframe[|width:100px;]. The properties should all be of the format "property: value;" - note the closing semi-colon. If no iframe properties are set, then the default width and height of 400px will be used. See below for more detailed examples.Основной пример:
<a href="http://www.google.com" rel="lightframe">Search google</a>Пример группировки:
<a href="http://www.google.com" rel="lightframe[search][caption]">Search google</a>
<a href="http://www.yahoo.com" rel="lightframe[search]">Search yahoo</a>Controlling iframe property example:
<a href="http://www.google.com" rel="lightframe[|width:400px; height:300px; scrolling: auto;][caption]">Search google</a>Controlling iframe property when grouped example:
<a href="http://www.google.com" rel="lightframe[search|width:400px; height:300px; scrolling: auto;]">Search google</a>
<a href="http://www.yahoo.com" rel="lightframe[search|width:400px; height:300px;]">Search yahoo</a>- Если вы включаете текстовый смайл в ваш пост (см. карту ниже), он будет заменен графическим смайлом.
- The Glossary module will automatically mark terms that have been defined in the glossary vocabulary with links to their descriptions. These marks depend on the settings and may be a superscript character or an icon, or the term may be turned into an acronym, cite, or abbreviation. If there are certain phrases or sections of text that should be excluded from glossary marking and linking, use the special markup, [no-glossary] ... [/no-glossary]. Additionally, these HTML elements will not be scanned: a, abbr, acronym, code, code, pre, pre.
- Изображения могут быть добавлены к этому сообщению.
