plugin:wrap:extensions
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:wrap:extensions [2019-08-24 23:40] – trailjeep | plugin:wrap:extensions [2024-04-07 03:16] (current) – [Checklist with numbered and unnumbered list items] 45.83.220.205 | ||
---|---|---|---|
Line 5: | Line 5: | ||
These are some extensions to the [[..|Wrap Plugin]] created by users. Add these to your template’s screen.css. | These are some extensions to the [[..|Wrap Plugin]] created by users. Add these to your template’s screen.css. | ||
- | \\ | + | |
- | \\ | + | |
===== Padding ===== | ===== Padding ===== | ||
Line 32: | Line 31: | ||
Usage: '' | Usage: '' | ||
- | \\ | ||
- | \\ | ||
===== HTML5 columns ===== | ===== HTML5 columns ===== | ||
Line 65: | Line 62: | ||
</ | </ | ||
- | \\ | ||
- | \\ | ||
===== Full width images ===== | ===== Full width images ===== | ||
Line 83: | Line 78: | ||
- | \\ | ||
- | \\ | ||
===== Evenly spaced boxes ===== | ===== Evenly spaced boxes ===== | ||
+ | |||
Create multiple wrap boxes of equal height, spaced evenly across the page. This is less error-prone and better looking than using x%, left/right, half or third or quarter. It won't work in IE 9 or lower. | Create multiple wrap boxes of equal height, spaced evenly across the page. This is less error-prone and better looking than using x%, left/right, half or third or quarter. It won't work in IE 9 or lower. | ||
<code css> | <code css> | ||
- | &.wrap_even_widths { | + | .plugin_wrap.wrap_even_widths { |
display: flex; | display: flex; | ||
Line 108: | Line 102: | ||
<div box> | <div box> | ||
</ | </ | ||
- | \\ | ||
- | \\ | ||
===== Content Nice Boxes ===== | ===== Content Nice Boxes ===== | ||
- | **[[http:// | + | |
+ | **[[http:// | ||
I've found a nice (I think) way to use WRAP to make content boxes suitable to make announcements, | I've found a nice (I think) way to use WRAP to make content boxes suitable to make announcements, | ||
Line 229: | Line 222: | ||
--- [[user> | --- [[user> | ||
- | |||
- | \\ | ||
- | \\ | ||
===== Change format of any ordered list ===== | ===== Change format of any ordered list ===== | ||
Line 315: | Line 305: | ||
</ | </ | ||
- | \\ | ||
- | \\ | ||
===== Simpler boxes ===== | ===== Simpler boxes ===== | ||
Line 422: | Line 410: | ||
===== Replace the Note Plugin ===== | ===== Replace the Note Plugin ===== | ||
- | If you want the wrap plugin to handle the syntax of the [[plugin: | + | If you want the wrap plugin to handle the syntax of the [[plugin: |
<code php syntax/ | <code php syntax/ | ||
Line 434: | Line 422: | ||
* @author | * @author | ||
*/ | */ | ||
- | |||
- | require_once(dirname(__FILE__).'/ | ||
class syntax_plugin_wrap_divnote extends syntax_plugin_wrap_div { | class syntax_plugin_wrap_divnote extends syntax_plugin_wrap_div { | ||
Line 467: | Line 453: | ||
===== Poems ===== | ===== Poems ===== | ||
- | Nice display of poems - replace [[doku>plugin: | + | Nice display of poems --- replace [[plugin: |
<wrap poem> | <wrap poem> | ||
Line 475: | Line 461: | ||
</ | </ | ||
- | | + | <code css> |
- | Bonus - if [[doku>plugin: | + | span.wrap_poem { |
- | span.wrap_poem: | + | |
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | color:# | ||
+ | | ||
+ | | ||
+ | | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Bonus --- if [[plugin: | ||
+ | |||
+ | <code css> | ||
+ | span.wrap_poem: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Wikipedia type hatnote ===== | ||
+ | |||
+ | Plugin Wrap can be used to add [[https:// | ||
+ | |||
+ | <file css userstyle.css> | ||
+ | .wrap_hatnote { | ||
+ | padding-left: | ||
+ | font-style: italic; | ||
+ | } | ||
+ | .wrap_hatnote em, .wrap_hatnote i { | ||
+ | font-style: normal; | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | --- [[user> | ||
+ | |||
+ | |||
+ | |||
+ | ===== Checklist with numbered and unnumbered list items ===== | ||
+ | |||
+ | By creating a list of items, the WRAP plugin can be used to show them as checklist items. Use an ordered list item ('' | ||
+ | |||
+ | The simplest version might not work with older browsers: | ||
+ | |||
+ | <file css userstyle.css> | ||
+ | .wrap_checklist ol { | ||
+ | list-style-type: | ||
+ | } | ||
+ | .wrap_checklist ul { | ||
+ | list-style-type: | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | This version does, but seems to have some bugs related to multilevel lists. (In this example, I also greyed out and struck through the finished item, but you can remove that by not including the last rule). | ||
+ | |||
+ | <file css userstyle.css> | ||
+ | .wrap_checklist ol, .wrap_checklist ul { | ||
+ | | ||
+ | | ||
+ | | ||
+ | } | ||
+ | .wrap_checklist ol li, .wrap_checklist ul li { | ||
+ | padding: 5px 0; | ||
+ | display: flex; | ||
+ | } | ||
+ | .wrap_checklist ol li:before, .wrap_checklist ul li:before { | ||
+ | margin-right: | ||
+ | } | ||
+ | .wrap_checklist ol li:before { | ||
+ | content: " | ||
+ | } | ||
+ | .wrap_checklist ul li:before { | ||
+ | content: " | ||
+ | } | ||
+ | .wrap_checklist ul li { | ||
+ | color: #999; | ||
+ | text-decoration: | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Example of a list: | ||
+ | |||
+ | < | ||
+ | <WRAP checklist> | ||
+ | |||
+ | - Item to do | ||
+ | * Done item | ||
+ | |||
+ | </ | ||
+ | </ | ||
+ | |||
+ | --- [[user> | ||
- | \\ | ||
- | \\ | ||
===== See also ===== | ===== See also ===== | ||
* [[plugin: | * [[plugin: | ||
+ |
plugin/wrap/extensions.1566682856.txt.gz · Last modified: 2019-08-24 23:40 by trailjeep