|
Parameters | Accepted Values | Description | Default | Since |
---|---|---|---|---|
(body of plugin) | HTML code | |||
tohead |
(blank) 0 1 |
Insert the code in the HTML head section rather than in the body. | 0 | 17.0 |
wiki |
(blank) 0 1 |
Parse wiki syntax within the HTML code. | 0 | 3.0 |
{HTML()} You can use <b>HTML here</b> including JavaScript, etc. This is unsafe and thus, must be validated by a trusted editor {HTML}
You could paste the code you get for a Google Gadget, a PayPal button, etc.
For example, using this code:
{HTML()}<iframe src="//www.slideshare.net/slideshow/embed_code/1106826" width="425" height="355" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" style="border:1px solid #CCC; border-width:1px; margin-bottom:5px; max-width: 100%;" allowfullscreen> </iframe> <div style="margin-bottom:5px"> <strong> <a href="//www.slideshare.net/RegisBarondeau/tikifest-montreal-mars-2009-fr" title="TikiFest Montreal Mars 2009 fr." target="_blank">TikiFest Montreal Mars 2009 fr.</a> </strong> from <strong><a href="//www.slideshare.net/RegisBarondeau" target="_blank">Régis Barondeau</a></strong> </div>{HTML}
Will produce this presentation embedded in the page:
Embedding some html object from a site serving embeddable videos (youtube, vimeo, etc):
{CENTER()}{HTML()}<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/U_CDQZLmYts&hl=en_US&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/U_CDQZLmYts&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>{HTML}{CENTER}
However the plugin call was not validated by the admins but denied, and this is what it would produce:
After argument validation by an editor, the execution of this plugin was denied. This plugin will eventually be removed or corrected.
Making a wiki link to look like a button of the same theme style that you are using. For instance, this code:
^{HTML()}<a href="tiki-index_raw.php?page=PluginHTML&itemId#Example_3" class="btn btn-primary">Save changes</a> with my custom buttom to the page PluginHTML, while you send also itemId in the url for PluginTrackerList magic, for instance (not used in this simple example){HTML}^
Would produce:
When the parameter wiki=1 is used, wiki syntax will be parsed in the content inside HTML plugin.
{HTML(wiki=1)} <div class="p-3" style="background: skyblue; box-shadow: 6px 6px 4px;"> This wiki syntax will be parsed to produce special characters: * ''Some examples:'' ~amp~ ~lt~ ~c~ * __More examples:__ ~gt~ ~ldq~ * ~rdq~ ~lsq~ * ~rsq~ * ~--~ -- </div>{HTML}
produces:
There are others ways to include HTML in a page: