plugin:wrap
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:wrap [2016-03-30 19:59] – [Discussion] adrianvesa | plugin:wrap [2024-08-05 19:16] (current) – [Wrap Plugin] Seems to work fine with Kaos fiwswe | ||
---|---|---|---|
Line 6: | Line 6: | ||
email : anika@selfthinker.org | email : anika@selfthinker.org | ||
type : syntax, action, helper | type : syntax, action, helper | ||
- | lastupdate : 2015-07-19 | + | lastupdate : 2023-08-13 |
- | compatible : 2010-11-07 " | + | compatible : !Greebo, Hogfather, Igor, Jack Jackrum, Kaos |
depends | depends | ||
conflicts | conflicts | ||
- | similar | + | similar |
- | tags : annotations, | + | tags : |
downloadurl: | downloadurl: | ||
Line 18: | Line 18: | ||
donationurl: | donationurl: | ||
---- | ---- | ||
+ | |||
===== One plugin to rule them all ===== | ===== One plugin to rule them all ===== | ||
Line 35: | Line 36: | ||
===== Installation ===== | ===== Installation ===== | ||
- | Download | + | Search |
===== Syntax ===== | ===== Syntax ===== | ||
Line 44: | Line 45: | ||
</ | </ | ||
| | ||
- | or | + | |
<block classes #id width : | <block classes #id width : | ||
" | " | ||
Line 82: | Line 83: | ||
The following classes are currently available: | The following classes are currently available: | ||
- | {{ :plugin:wrap_plugin_example9.png? | + | {{ :plugin:wrap_plugin_example10.png? |
- | ^ class name ^ description/ | ||
- | ^ __columns__ -- similar to [[columns]], | ||
- | | **'' | ||
- | | **'' | ||
- | | **'' | ||
- | | **'' | ||
- | | **'' | ||
- | ^ __widths__ -- :!: **experimental**, | ||
- | | **'' | ||
- | | **'' | ||
- | | **'' | ||
- | ^ __alignments__ -- similar to [[divalign]], | ||
- | | **'' | ||
- | | **'' | ||
- | | **'' | ||
- | | **'' | ||
- | ^ __boxes and notes__ -- similar to [[box]], [[note]], [[tip]] | ||
- | | **'' | ||
- | | **'' | ||
- | | **'' | ||
- | | **'' | ||
- | | **'' | ||
- | | **'' | ||
- | | **'' | ||
- | | **'' | ||
- | | **'' | ||
- | | **'' | ||
- | | **'' | ||
- | | **'' | ||
- | | **'' | ||
- | | **'' | ||
- | ^ __marks__ -- similar to [[emphasis]], | ||
- | | **'' | ||
- | | **'' | ||
- | | **'' | ||
- | ^ __miscellaneous__ | ||
- | | **'' | ||
- | | **'' | ||
- | | **'' | ||
- | | **'' | ||
- | | **'' | ||
- | | **'' | ||
- | | **'' | ||
- | | **'' | ||
- | | **'' | ||
- | | **'' | ||
- | | **'' | ||
- | | **'' | ||
- | All tables inside a column or box will always | + | ^ class name ^ description/ |
+ | ^ __columns__ -- similar to [[columns]], | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | ^ __widths__ -- :!: **experimental**, | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | ^ __alignments__ -- similar to [[divalign]], | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | ^ __boxes and notes__ -- similar to [[box]], [[note]], [[tip]] | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | ^ __marks__ -- similar to [[emphasis]], | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | ^ __miscellaneous__ | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
=== Known restrictions === | === Known restrictions === | ||
- | * WRAPs won' | + | * WRAPs export |
* Round corners only work in modern browsers (no IE8 and below). | * Round corners only work in modern browsers (no IE8 and below). | ||
* Multiple columns only work in modern browsers (no IE9 and below). | * Multiple columns only work in modern browsers (no IE9 and below). | ||
* Width classes are experimental and only work in modern browsers (no IE8 and below). | * Width classes are experimental and only work in modern browsers (no IE8 and below). | ||
- | * Normal DokuWiki Headlines used to not work and a work-around was added. Now that headlines do work, the work-around is not needed anymore but kept for backwards-compatibility. The following syntax would produce two different kinds of emulated headlines inside any of the columns or boxes/notes: | + | * Normal DokuWiki Headlines used to not work and a work-around was added. Now that headlines do work, the work-around is not needed anymore but kept for backwards-compatibility. It was deprecated in version 2018-04-22 and disabled by default. They can be enabled by using the '' |
* %%//**__Big Underlined Headline__**// | * %%//**__Big Underlined Headline__**// | ||
* %%//**Small Headline**// | * %%//**Small Headline**// | ||
+ | * do not include ~~DISCUSSION~~ within a WRAP noprint block | ||
You might need to adjust a few of the classes to your template' | You might need to adjust a few of the classes to your template' | ||
Line 151: | Line 155: | ||
==== Widths ==== | ==== Widths ==== | ||
- | You can set any valid widths on any uppercase %%< | + | You can set any valid widths on any uppercase %%< |
<WRAP someclass 50% anotherclass> | <WRAP someclass 50% anotherclass> | ||
All except percentages will be reduced to have the maximum width available on smaller screens. | All except percentages will be reduced to have the maximum width available on smaller screens. | ||
- | You can also use the width keywords '' | + | You can also use the width keywords '' |
<WRAP group> | <WRAP group> | ||
<WRAP half column> | <WRAP half column> | ||
Line 161: | Line 165: | ||
</ | </ | ||
will result in two columns next to each other, which will wrap underneath each other on smaller screens and mobile devices. | will result in two columns next to each other, which will wrap underneath each other on smaller screens and mobile devices. | ||
+ | |||
+ | |||
+ | ==== Anchor ==== | ||
+ | |||
+ | To define an anchor, the following syntax applies: | ||
+ | <wrap #ankername /> | ||
+ | |||
+ | The anchor is accessible via: ''# | ||
==== Languages and Text Directions ==== | ==== Languages and Text Directions ==== | ||
Line 178: | Line 190: | ||
You can see a demo of the plugin on [[http:// | You can see a demo of the plugin on [[http:// | ||
- | [[https://fotki.yandex.ru/ | + | [[https://yadi.sk/i/ycbENWFjWEduTA|“Examples” (demo) in Russian]] (for v2011-05-15). [[http:// |
+ | [[http:// | ||
===== Configuration options ===== | ===== Configuration options ===== | ||
^ Option | ^ Option | ||
- | |'' | + | |'' |
- | |'' | + | |'' |
- | |'' | + | |'' |
|'' | |'' | ||
|'' | |'' | ||
|'' | |'' | ||
+ | |'' | ||
===== ODT Support ===== | ===== ODT Support ===== | ||
+ | |||
+ | FIXME There have been more updates to the Wrap as well as the ODT plugin, so more stuff works. The below should be updated with what works and what doesn' | ||
Since version 2015-06-13 the Wrap plugin supports exporting most of its functionality/ | Since version 2015-06-13 the Wrap plugin supports exporting most of its functionality/ | ||
Line 221: | Line 237: | ||
* " | * " | ||
* "info, tip, important, alert, help, download, todo box" creates specifically themed boxes (also 60% wide, centered) | * "info, tip, important, alert, help, download, todo box" creates specifically themed boxes (also 60% wide, centered) | ||
- | * "clear floats" | + | * "clear floats" |
* " | * " | ||
Line 237: | Line 253: | ||
==== Examples ==== | ==== Examples ==== | ||
- | in style.css | + | in userall.css: |
<code css> | <code css> | ||
Line 252: | Line 268: | ||
<WRAP note> | <WRAP note> | ||
- | Here are some [[plugin: | + | Here are some [[plugin: |
==== Add former typography classes ==== | ==== Add former typography classes ==== | ||
Line 303: | Line 319: | ||
==== Done ==== | ==== Done ==== | ||
- | [[https:// | + | [[https:// |
{{rss> | {{rss> | ||
==== Localization ==== | ==== Localization ==== | ||
- | You can help me with translations and [[http:// | + | You can help me with translations and [[https:// |
* [[https:// | * [[https:// | ||
Line 320: | Line 336: | ||
* The toolbar uses images from the [[http:// | * The toolbar uses images from the [[http:// | ||
* Thanks to [[https:// | * Thanks to [[https:// | ||
+ | |||
+ | ===== See also ===== | ||
+ | |||
+ | * [[.: | ||
+ | * [[.wrap: | ||
===== Discussion ===== | ===== Discussion ===== | ||
Line 328: | Line 349: | ||
Not understand how works " | Not understand how works " | ||
+ | |||
+ | |||
+ | Example how to add new button into the picker: [[http:// | ||
+ | This patch adds button for ''< | ||
+ | |||
+ | |||
+ | Is it possible to edit the selection in the ' |
plugin/wrap.1459360754.txt.gz · Last modified: by adrianvesa