Tags for text formatting

<< Click to Display Table of Contents >>

Navigation:  Work With The Engine >

Tags for text formatting

When writing news it is permissible to use the following tags, if you do not use the WYSIWYG editor:

 

[b] text [/b] Makes text bold

 

[i] text [/i] Makes text italic

 

[s] text [/s] Lines the text through

 

[u] text [/u] Underline text

 

[sub] текст [/sub] - output text in subscript

 

[sup] текст [/sup] - output text in the upper index

 

[code] text [/code] Cancels formatting of text enclosed in the tags

 

[left] text [/left] Aligns text to the left

 

[center] text [/center] Aligns the text to the center

 

[justify] текст [/justify] - aligns the text on both sides and left and right

 

[right] text [/right] Aligns text to the right

 

[url=link] text [/url] Inserts link to the article

 

[leech=link] text [/leech] Is completely analogous to URL tag, except that it encrypts the link.

 

[email=link] text [/email] Inserts e-mail address in the article

 

[img] link [/img] Inserts image in the article

 

[img=alignment] link [/img] Inserts image address in the article and aligns it by the specified parameter

 

[img=alignment|own text for alt] link [/img] Inserts image address in the article, aligns it by the specified parameter, and assigns the description to the image

 

[color=color] text [/color] Changes the color of the text to the specified

 

[quote] text [/quote] Quote

 

[hide] text [/hide] Shows hidden text only for the users who are allowed to view hidden text in the groups settings

 

[hide=2,3,4] text [/hide] Shows hidden text only for users whose groups are listed in the tag. 2,3,4 where the ID of the user groups that can view this text.

 

{pagebreak} Page break

 

[page=page name] text [/page] Inserts reference to a specified page number within the article

 

[thumb] link [/thumb] Inserts small copy of the image in the article with reference to the original picture

 

[thumb=alignment] link [/thumb] Inserts small copy of the image in the article with reference to the original picture and alignment by the specified parameter

 

[thumb=alignment|own text for alt] link [/thumb] Inserts small copy of the image in the article with reference to the original picture, alignment by the specified parameter, and assignment of the description to the image

 

[video=http://test.ru/video.avi] Allows you to set the video playback in the news article

 

[videо=300x250,http://site.ru/video.flv] This tag allows you to set the video size for that particular tag

 

[video=http://test.ru/video.avi|http://test.ru/sample.jpg] Allows you to set the video playback in the news article and choose its thumbnail.

 

 [video=http://test.ru/video.avi|http://test.ru/sample.jpg|Video description] Allows you to set the playback of the video in the news, set the image preview before you start playback and set a separate description for the video that will be shown in the player.

 

[video=http://test.ru/video1.mp4,http://test.ru/video2.mp4] Allows you to place two videos in the article. This will create a playlist of two videos. They can also be set the picture for preview and description, as stated above.

 

[audio=http://test.ru/music.mp3] Allows you to place MP3 playback in the article

 

 [audio=http://test.ru/music1.mp3,http://test.ru/music2.mp3] Allows you to set the playback of the playlist of several MP3 files in news

 

[font=font name] text [/font] Displays the text using specified font

 

[size=size] text [/size] Displays the text using specified font size

[spоiler] text [/spoiler] Hides the specified text and displays it when you click on it

 

[spоiler=Title] text [/spoiler] Displays the header. When you click on it, the hidden text will be displayed

 

[media=link to the video page] is designed to insert videos from such video and content services as: youtube.com, instagram, twitter, facebook, flickr, vimeo, docs.com, vine, gettyimages, codepen.io, dailymotion, mixcloud, soundcloud, coub, ifixit, Apple Keynote. In this tag, you just enter the URL of page of the video service that hosts this video. The script automatically detects the type of video service and inserts the correct HTML code to view the video.

 

[media=300x250,http://....] This tag allows you to set the video size for that particular tag

 

[flash=width,height] path to the video [/flash] is designed for inserting flash movies in .swf format.

 

List:

[list]

[*]point 1

[*]point 2

[/list]

 

Numbered list:

[ol=1]

[*]point 1

[*]point 2

[/ol]

 

 

A little explanation of the code insertion:

 

For example, if you want to insert a picture into the text, use [img]http://website/image.jpg[/img] tag. If you want to align it by the left or by the right edge, use [img=left]http://website/image.jpg[/img]. If you want to align it by center, then use the following [center][img]http://website/image.jpg[/img][/center]. The same principle applies to the [thumb] tag. For example, your article has several pages, and you want to use a link to any other page of the article on some page, in addition to the standard navigation between them which is available in the template, insert the following code [page=3] click here to go to page 3 [/page] where 3 is a number of the article's page.