Schplurtzeries
Le wiki de schplurtz
Dokuwiki

7. August 2012 [Verse formatting] ztrulphcs

Styler

Ce greffon est optionnel et peut être retiré.

page officielle : :plugin:styler

Ce greffon sert à faire des mises en page alternatives, avec ces quelques balises supplémentaires:

  • <quote> - citations étendues,
  • <epigraph> - epigraphes,
  • <verse> - poèmes et paroles de chansons,
  • <style> - block de style générique.

Modification

Ce greffon n'a subi aucune modification de la part de schplurtz.

schplurtz le déboulonné 2011/03/13 16:30

Démo

Description

This plugin provide additional formatting of your texts:

  • <quote> - the expanded quotations;
  • <epigraph> - epigraps;
  • <verse> - formatting of verses;
  • <style> - generic style blocks.

As you can specify attributes for each formatted block:

  • left - text align to left;
  • right - text align to right;
  • center - center text;
  • justify - justify text;
  • float-left - To create the floating block to the left of the text;
  • float-right - To create the floating block to the right of the text;
  • box - To draw a framework around of the block;
  • background - To fill in a background with solid color.

Examples

Insert epigraph

“Cannibals prefer those who have no spines.”

Stanislaw Lem

<epigraph>
"Cannibals prefer those who have no spines."

[[http://www.google.com/search?hl=en&q=Stanislaw+Lem|Stanislaw Lem]]
</epigraph>

You can see example here Шкатулка (in Russian).

On peut changer l'apparence en inscrivant des propriétés css dans le fichier conf/userstyle.css. comme ceci :

div.dokuwiki div.epigraph {
    font-family: Times New Roman,Georgia,Garamond,Times,serif;
    font-style: italic;
    margin-bottom: 1em;
    margin-left: 60%;
    margin-top: 1em;
    padding-left: 1em;
}

Verse formatting

<verse box>
//Opening:// Dm - Am - Dm - C

Dm
A vacation in the foreign land

Uncle Sam does the best he can
              Gm
You're in the army now
                     Dm
Oh, oh you're in the army - now...

...

    //Status Quo - In The Army Now//
</verse>
//Opening:// Dm - Am - Dm - C

Dm
A vacation in the foreign land

Uncle Sam does the best he can
              Gm
You're in the army now
                     Dm
Oh, oh you're in the army - now...

...

    //Status Quo - In The Army Now//

Copying from http://home.online.no/~prannug/quo/itan.html

Additional quotation

<quote>
First line.

With additional quotation you can:
  * Use lists;
  * Use **formattings**;
  * Use pictures {{http://iar.spb.ru/lib/images/buttons/debian.png}};
  * And many other things.

Last line.
</quote>

First line.

With additional quotation you can:

  • Use lists;
  • Use formattings;
  • Use pictures ;
  • And many other things.

Last line.

Generic styles

To place on the right the floating block with a background and border.

<style float-right box background>
To place on the right the floating block with a background and border.
</style>
<style center>To place the text on the center</style>

To place the text on the center

DokuWiki is the best

<style float-left>{{wiki:dokuwiki-128.png}}

DokuWiki is the best</style>

Important: you can specify attributes for any block, but for the some blocks they will have not enough sense.