Fullscreen
[Show/Hide Right Column]

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}


Required parameters are in bold
Preferences required: wikiplugin_tag
Parameters Accepted Values Description Default Since
tag Any valid HTML tag, span by default. span
style Equivalent to the style attribute of an HTML tag.



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: Marc Laporte9146 points  , Xavi67984 points  , lindon137 points  and system .
Page last modified on Monday 16 April, 2012 08:26:43 UTC by Marc Laporte9146 points .
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.

Site Language

Reference Guide

Keywords

These keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):



Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki