wiki:plg_wrap
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
wiki:plg_wrap [11.05.2013 22:02] – angelegt Sebastian Wienforth | wiki:plg_wrap [19.07.2015 09:33] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
---|---|---|---|
Zeile 5: | Zeile 5: | ||
An uppercase **%%< | An uppercase **%%< | ||
- | | + | < |
- | " | + | <WRAP classes |
- | </ | + | " |
- | + | </ | |
- | or | + | |
- | <block classes width : | + | or |
- | " | + | <block classes |
- | </ | + | " |
- | + | </ | |
- | or | + | |
- | <div classes width : | + | or |
- | " | + | <div classes |
- | </ | + | " |
+ | </div> | ||
+ | </code> | ||
A lowercase **%%< | A lowercase **%%< | ||
- | | + | < |
- | + | <wrap classes | |
- | or | + | |
- | <inline classes width : | + | or |
- | + | <inline classes | |
- | or | + | |
- | <span classes width : | + | or |
+ | <span classes | ||
+ | </code> | ||
:!: Please note, some things **won' | :!: Please note, some things **won' | ||
Zeile 35: | Zeile 39: | ||
if the according wrap isn't floated as well. | if the according wrap isn't floated as well. | ||
+ | A shorthand of uppercase **%%< | ||
+ | |||
+ | < | ||
+ | <WRAP classes #id /> | ||
+ | or | ||
+ | <block classes #id /> | ||
+ | or | ||
+ | <div classes #id /> | ||
+ | </ | ||
+ | |||
+ | and | ||
+ | < | ||
+ | <wrap classes #id /> | ||
+ | or | ||
+ | <inline classes #id /> | ||
+ | or | ||
+ | <span classes #id /> | ||
+ | </ | ||
===== Classes and Styles ===== | ===== Classes and Styles ===== | ||
Zeile 44: | Zeile 66: | ||
<WRAP column 30%> | <WRAP column 30%> | ||
- | <WRAP column 30%> | + | The example below uses the following structure: |
- | // | + | |
- | You can emulate a big headline with italic, bold and underlined text, e.g. | + | < |
- | < | + | <WRAP group> |
- | + | ||
- | // | + | |
- | A smaller headline uses no underlining, | + | <WRAP third column>...content...</ |
- | <code>//**Emulated Small Headline**// | + | <WRAP third column>...content...< |
+ | <WRAP third column> | ||
- | If you need text that is bold and italic, simply use it the other way around: | ||
- | < | ||
</ | </ | ||
+ | </ | ||
+ | |||
- | <WRAP column | + | < |
- | // | + | <WRAP third column> |
+ | === Floating | ||
Normally you would only need the class '' | Normally you would only need the class '' | ||
Zeile 68: | Zeile 89: | ||
* **'' | * **'' | ||
* **'' | * **'' | ||
+ | |||
+ | A **table** inside a column or box will always be **100% wide**. This makes positioning and sizing tables possible. | ||
</ | </ | ||
- | <WRAP column | + | < |
- | // | + | === Widths === |
You can set any valid widths (but only on divs): '' | You can set any valid widths (but only on divs): '' | ||
^type^e.g.^note^ | ^type^e.g.^note^ | ||
- | ^'' | + | ^'' |
- | ^'' | + | ^'' |
- | ^'' | + | ^'' |
- | + | ||
- | A **table** inside a column or box will always be **100% wide**. This makes positioning and sizing tables possible. | + | |
</ | </ | ||
+ | <WRAP third column> | ||
+ | === Width Keywords === | ||
- | <wrap em>After using any of the float classes, | + | With certain width keywords |
- | <WRAP clear></ | + | There are three width keywords. These should not be combined with any other width. |
- | ... to prevent that, you should simply add | + | * **'' |
- | | + | |
- | after your last column. | + | * **'' |
- | You **can** use the same options with spans (as each element that floats is automatically a block level element), but it probably doesn' | + | :!: Attention: In order to work properly, wraps with width keywords need an **additional '' |
- | :!: Attention: Widths can cause problems and will often look different and break in some browsers. If you're not a web developer, you might not understand any problems regarding the [[http:// | + | </ |
+ | |||
+ | </ | ||
+ | |||
+ | You can use the same options with spans (as each element that floats is automatically a block level element), but it probably doesn' | ||
+ | |||
+ | :!: Attention: | ||
All of those options will also work in the [[#boxes and notes]] wraps (see below). | All of those options will also work in the [[#boxes and notes]] wraps (see below). | ||
+ | |||
+ | === Old Emulated Headlines === | ||
+ | |||
+ | Every '' | ||
+ | |||
+ | If you need text that is bold and italic, simply use it the other way around: '' | ||
+ | |||
=== Multi-columns === | === Multi-columns === | ||
<WRAP col3> | <WRAP col3> | ||
- | For modern browsers (Firefox, Chrome and Safari) you can use multi-columns. Just use **'' | + | For modern browsers (Firefox, Chrome and Safari, IE10+) you can use multi-columns. Just use **'' |
:!: Note: Multi-columns don't make sense for spans. | :!: Note: Multi-columns don't make sense for spans. | ||
</ | </ | ||
+ | |||
+ | Don't use this for bigger columns containing more than just text. Use the [[#columns and floats]] mentioned above instead. | ||
Zeile 140: | Zeile 178: | ||
==== Boxes and Notes ==== | ==== Boxes and Notes ==== | ||
- | <WRAP round box 570px center> | + | <WRAP round box 500px center> |
- | // | + | === round box 500px center === |
* '' | * '' | ||
* any of the classes '' | * any of the classes '' | ||
* the classes '' | * the classes '' | ||
- | * '' | + | * '' |
</ | </ | ||
- | <WRAP info 220px left> | + | <WRAP info 300px left> |
- | //**Info**// | + | === Info === |
<WRAP info></ | <WRAP info></ | ||
</ | </ | ||
- | <WRAP tip 220px left> | + | <WRAP tip 300px left> |
- | //**Tip**// | + | === Tip === |
<WRAP tip></ | <WRAP tip></ | ||
</ | </ | ||
- | <WRAP important | + | <WRAP important |
- | //**Important**// | + | === Important |
<WRAP important></ | <WRAP important></ | ||
</ | </ | ||
- | <WRAP alert 220px left> | + | <WRAP alert 300px left> |
- | //**Alert**// | + | === Alert === |
<WRAP alert></ | <WRAP alert></ | ||
</ | </ | ||
- | <WRAP round help 220px left> | + | <WRAP round help 300px left> |
- | //**Help**// | + | === Help === |
<WRAP round help></ | <WRAP round help></ | ||
</ | </ | ||
- | <WRAP download | + | <WRAP download |
- | //**Download**// | + | === Download |
<WRAP download></ | <WRAP download></ | ||
</ | </ | ||
- | <WRAP todo 220px left> | + | <WRAP todo 300px left> |
- | //**Todo**// | + | === Todo === |
<WRAP todo></ | <WRAP todo></ | ||
</ | </ | ||
- | <WRAP clear></WRAP> | + | <WRAP clear /> |
**Safety Notes:** | **Safety Notes:** | ||
- | <WRAP danger | + | <WRAP danger |
- | //**Danger**// | + | === Danger |
<WRAP danger></ | <WRAP danger></ | ||
</ | </ | ||
- | <WRAP warning | + | <WRAP warning |
- | //**Warning**// | + | === Warning |
<WRAP warning></ | <WRAP warning></ | ||
</ | </ | ||
- | <WRAP caution | + | <WRAP caution |
- | //**Caution**// | + | === Caution |
<WRAP caution></ | <WRAP caution></ | ||
</ | </ | ||
- | <WRAP round notice | + | <WRAP round notice |
- | //**Notice**// | + | === Notice |
<WRAP round notice></ | <WRAP round notice></ | ||
</ | </ | ||
- | <WRAP round safety | + | <WRAP round safety |
- | //**Safety**// | + | === Safety |
<WRAP round safety></ | <WRAP round safety></ | ||
</ | </ | ||
- | <WRAP clear></WRAP> | + | <WRAP clear /> |
Zeile 236: | Zeile 274: | ||
:!: This might look ugly in some templates and should be adjusted accordingly. | :!: This might look ugly in some templates and should be adjusted accordingly. | ||
+ | |||
+ | ==== Tabs ==== | ||
+ | |||
+ | You can create a row of tabs by simply wrapping a list of links in '' | ||
+ | |||
+ | <WRAP tabs> | ||
+ | * [[Some page]] | ||
+ | * [[example|This page]] | ||
+ | * [[Another page]] | ||
+ | </ | ||
+ | |||
+ | <WRAP tabs> | ||
+ | * [[Some page]] | ||
+ | * [[example|This page]] | ||
+ | * [[Another page]] | ||
+ | </ | ||
+ | |||
+ | :!: Please note, the styling of these tabs depend on the template you are using and not on the wrap plugin. If you only see a list of links and no tabs, please make sure to add " | ||
==== Miscellaneous ==== | ==== Miscellaneous ==== | ||
+ | |||
+ | === Clear float === | ||
+ | |||
+ | After using any of the float classes, you might come across following text protruding into the space where only the floating containers should be. To prevent that, you should simply add this after your last column: | ||
+ | |||
+ | <WRAP clear /> | ||
=== Indent === | === Indent === | ||
Zeile 272: | Zeile 334: | ||
Just select the text in the spoiler box to be able to read its content. | Just select the text in the spoiler box to be able to read its content. | ||
+ | |||
+ | === Button links === | ||
+ | |||
+ | A link that looks like a button: <wrap button> | ||
+ | |||
+ | A link that looks like a button: <wrap button> | ||
=== Hide === | === Hide === | ||
Zeile 283: | Zeile 351: | ||
=== Pagebreak === | === Pagebreak === | ||
- | The following will add a pagebreak: <WRAP pagebreak></WRAP> | + | The following will add a pagebreak: <WRAP pagebreak /> |
- | The following will add a pagebreak: <WRAP pagebreak></WRAP> | + | The following will add a pagebreak: <WRAP pagebreak /> |
This has no effect on the browser screen. A [[http:// | This has no effect on the browser screen. A [[http:// | ||
Zeile 315: | Zeile 383: | ||
<WRAP box 350px right :en> | <WRAP box 350px right :en> | ||
- | // | + | ===Outer |
<WRAP 165px left> | <WRAP 165px left> | ||
Zeile 323: | Zeile 391: | ||
Text inside outer right box, but beneath inner left box. | Text inside outer right box, but beneath inner left box. | ||
- | <WRAP clear></WRAP> | + | <WRAP clear /> |
<WRAP round tip> | <WRAP round tip> | ||
Zeile 334: | Zeile 402: | ||
< | < | ||
<WRAP box 350px right :en> | <WRAP box 350px right :en> | ||
- | // | + | === Outer box floats |
<WRAP 165px left> | <WRAP 165px left> | ||
Zeile 342: | Zeile 410: | ||
Text inside outer right box, but beneath inner left box. | Text inside outer right box, but beneath inner left box. | ||
- | <WRAP clear></WRAP> | + | <WRAP clear /> |
<WRAP round tip> | <WRAP round tip> |
Die hier im BuFaTa ET Wiki dargestellten Arbeitsdokumente sind Einzelbeiträge der jeweiligen Autoren und i.d.R. nicht repräsentativ für die BuFaTa ET als Organisation. Veröffentlichte Beschlüsse und Stellungnahmen der BuFaTa ET befinden sich ausschließlich auf der offiziellen Homepage.
wiki/plg_wrap.1368302567.txt.gz · Zuletzt geändert: 11.05.2013 22:02 von Sebastian Wienforth