[Show/Hide Right Column]

Apply an HTML tag to content
Print

Plugin Tag

This Wiki Plugin puts the text around html tag. If the tag is not specified, SPAN will be used Eventually, 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}

ParameterAccepted valuesEffectSince
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:

toto

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>

Related pages

Contributors to this page: lindon2331 points  , Xavi36278 points  and system .
Page last modified on Saturday 13 March, 2010 05:44:51 UTC by lindon2331 points .

Find by Page Name

Exact match

Keywords

The following is a list of keywords that should serve as hubs for navigation within the Tiki documentation and should correspond to development keywords (bug reports and feature requests):