====== Plugin : WRAP ====== https://www.dokuwiki.org/plugin:wrap ===== Description ===== Les différents mots clés utilisés : column, centeralign, rightaline, hi, lo, tabs, clear, indent, outdent, prewrap, spoiler, hide, pagebreak, nopagebreak, noprint, onlyprint, ... ===== Syntaxe ===== ==== Syntaxe de base ==== === WRAP / block / div === **''%%%%'' en majuscules** creé un bloc (on peut aussi utiliser ''%%%%'' or ''%%
%%''). Par exemple : "big" content or "big" content or
"big" content
=== wrap / inline / span === Si **''%%%%'' est écrit en minuscules** cela crée un sous-bloc dans le texte qui reste sur la ligne (on peut aussi utiliser ''%%%%'' ou ''%%%%''). Exemple : "small" content or "small" content or "small" content A noter que certains éléments ne fonctionnent pas avec cette fonction : les alignements (alignments), le multi-colonnes (multi-columns) et la largeur (widths). ==== Classes et styles ==== === Colonnes et flottants === Columns : * widths (experimental) : ''half'' / ''third'' / ''quarter'' * column : same as left in LTR languages and same as right in RTL languages * left : same as column, will let you float your container on the left * right : will let the container float right * center : will position the container in the horizontal center of the page * col2..col5 : will show the text in multiple columns (2, 3, 4 or 5), only works in modern browsers (Firefox, Chrome and Safari) ... === Alignements === * ''leftalign'' * ''rightalign'' * ''centeralign'' * ''justify'' Exemple : Texte centré Texte centré === Boites et notes === * **round** : ajoute des coins arrondis aux containers qui ont une couleur de fond ou une bordure * **box** : crée une boite autour du container (en utilisant les couleurs de style.ini) * **info** : crée une boite blueue avec une icone info * **important** : crée une boite orange avec une icone important * **alert** : crée une boite rouge avec une icone alert (c'était "warning" dans les versions précédentes) * **tip** : crée une boite jaune avec une icone tip * **help** : crée une boite violette avec une icone help * **todo** : crée une boite cyan avec une icone todo * **download** : crée une boite verte avec une icone download * **danger** : creates a red danger safety note * **warning** : creates an orange warning safety note * **caution** : creates a yellow caution safety note * **notice** : creates a blue notice safety note * safety : creates a green safety note ==== Marquage ==== * **hi** : met le texe en surbrillance * **lo** : met le texte en peu important * **em** : fait ressortir le texte ==== Onglets ==== ==== Divers ==== A classer : * **clear** : similar to clearfloat, should preferably be used with divs, i.e. uppercase s * **tabs** : if wrapped around a list of links, will show those as tabs * **hide** : hides the text per CSS (the text will still appear in the source code, in non-modern browsers and is searchable) * **noprint** : displays text on the screen, but not in print, similar to noprint * **onlyprint** : displays text only in print, but not on the screen * **pagebreak** : forces a new page in printouts (not visible on the screen), similar to pagebreak * **nopagebreak** : tries to avoid a pagebreak in printouts (not visible on the screen) * **spoiler** : shows white text on a white background, only to be revealed by highlighting it; similar to hide * **indent** : indents the text, could be used instead of tab * **outdent** : “outdents” the text, could partly be used instead of outdent * **prewrap** : wraps text inside pre-formatted code blocks, similar to wpre ==== Langage et direction de texte ==== ===== Exemples ===== === Prewrap === Inside this code block the words will wrap to a new line although they are all in one line. Inside this code block the words will wrap to a new line although they are all in one line. === Notes === **Info** **Info** **Tip** //**Important**// //**Alert**// //**Help**// //**Download**// //**Todo**// Peut s'utiliser aussi à l'intérieur du texte : info, help, alert, important, tip, download, todo and round box and danger, warning, caution, notice, safety. info, help, ... === Safety Notes === //**Danger**// //**Warning**// //**Caution**// //**Notice**// //**Safety**// === Spoiler === Here follows a spoiler: Darth Vader is Luke's father. Here follows a spoiler: Darth Vader is Luke's father. Sélectionner le texte pour pouvoir le lire. === Hide === The following text is hidden: John, please revise that sentence. The following text is hidden: John, please revise that sentence. :!: Attention : le texte apparait toujours dans le code source, ne pas cacher des informations risquées avec ça ! ====== Liens ====== * https://www.dokuwiki.org/plugin:wrap * https://www.dokuwiki.org/_media/plugin:wrap_plugin_example7.png * https://wiki.math.ntnu.no/wiki/wrap/example