Apply an HTML tag to content
Plugin Tag
This Wiki Plugin puts the text around html tag. If the tag is not specified, SPAN will be usedEventually, you can put some style information.
Usage
To use this plugin in a wiki page, use the syntax:{TAG(tag=a_tag, style=a_style)}text{TAG}| Parameter | Accepted values | Effect | Since |
| tag | html tag | Produce this html tag | 1.9.2 |
| style | html style | Produce this html style | 1.9.2 |
Example 1 - Strike stext
This code,{TAG(tag=STRIKE, style=color:#FF0000)}toto{TAG}Would produce:
Which corresponds to this html code generated:
<STRIKE style="color:#FF0000">toto</STRIKE>
Example 2 - Justify text
This code:
{TAG(tag=div,style=text-align:justify)}"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."{TAG}Would produce:
"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
Which corresponds to a justified block of text:
<div style="align: justify;">Lorem ipsum ...</div>
Contributors to this page: lindon
,
Xavi
and
system
.
Page last modified on Saturday 13 March, 2010 05:44:51 UTC by lindon
.
Sidebar
Featured links
Last changes
Freetags editor
Sidebar
To register
To have an account at this site, please register at Tikiwiki.org
, and then use that user name and password to log in here.
