plugins

Un intento de unificar las sintaxis de los wikis, de manera consensuada y lógica. Wiki Creole

Diferencias con la sintaxis dokuwiki

URL:https://www.dokuwiki.org/plugin:addnewpage

permite crear «plantillas» de páginas (para tener un esqueleto y un mini-formulario para la creación de nuevas páginas con esa plantilla. Permite más personalización (sustitución en la propia página al vuelo al ser creada desde la plantilla)

depende o está vinculado con otro plugin, newpagetemplate

Simplemente para obtener una lista de páginas usando el plugin <pagelist>:

<pagelist&[flags]>
  * [[eurocity2008:start|Blog Plugin]]
  * [[..:discussion:|Discussion Plugin]]
  * [[..:editor:|Editor Plugin]]
  * [[..:tag:|Tag Plugin]]
</pagelist>
[flags] los flags se usan para «alterar» como se visualiza la lista, see flags optional
Setting Default Alternative
style default table with horizontal lines table or list standard DokuWiki table or list style
showheader noheader hide the heading row of the pagelist table header show the header
showdate date show the creation or last modification date nodate hide the date
showuser user show creator or contributors nouser hide the user
showdesc nodesc hide the description desc show the description (from metadata)
showcomments nocomments hide the number of comments comments show the number of comments (if Discussion Plugin is installed)
showtags notags hide the tags tags show the tags (if Tag Plugin is installed)
<pagelist&header&comments>
...
</pagelist>
    • permite especificar el número: ~~CLOUD:number~~
    • permite especificar el contador: ~~CLOUD[showCount]~~
    • permite crear un cloud de tags también: ~~TAGCLOUD:number~~
    • black-list de palabras:
      • inc/lang/[lang-code]/stopwords.txt
      • conf/stopwords.txt

<box 80% round red>Este plugin provoca interferencias con la barra de herramientas del editor - la barra desaparece</box> The simplest way is:

<hidden>Hidden text</hidden>

This will display the default text «Click to display ⇲» when the text is hidden, and «Click to hide ⇱» when it's visible.

Some options may be added inside the opening <hidden> tag:

Option Effect Example
any textuse this text instead of the defaults «Click to display» and «Click to hide» <hidden click me!>hidden text</hidden>
onHidden=«any text»Display this text when the section is hiddensee below
onVisible=«any text»Display this text when the section is unfolded<hidden onHidden=«Click to read more» onVisible=«Click to see less»>Hidden text</hidden>
initialState=«visible»The block will initially be expanded. Readers may still click to hide it
-noprintthe text «click to display» won't appear on the printed copy
-edit=«any text»Add an «edit» button below the hidden section.The text will appear when one let his mouse on the button
-editSame as above, but a default text is used

Please note that Dokuwiki formatting syntax may be used with options like «onHidden».

(para facilitar el uso del plugin hidden antes comentado) To create such a switch, you may use :

<hiddenSwitch>

or

<hiddenSwitch Here comes my custom text>

Therefore, to see it in action, you could create such a page:

<hidden>My first hidden block</hidden>
<hidden>My second hidden block</hidden>

<hiddenSwitch>

Please make sure you have a recent (2011-12-03 or higher) version of the hidden plugin!

Click to display ⇲

Click to hide ⇱

My first hidden block

Click to display ⇲

Click to hide ⇱

My second hidden block

A simple box:

<box> the box contents </box>

Some more complex boxes

<box 80% round orange|a title> the box contents</box>
<box 50% left blue>the box contents</box|a caption>
<box 60% round #f99 #fc9 #fcc #f60|title>the box contents</box|caption>

The full syntax:

<box width classes colours | title text> contents text </box>

  • width — any legal CSS width value
  • classes — any number of classes which use the styles in your template or the plugin's own stylesheet to determine the look of the box. The box plugins comes with the following classes already defined:
    • round — box will have rounded corners
    • blue — blue colour scheme
    • red — red colour scheme
    • green — green colour scheme
    • orange — orange colour scheme
    • left — float the box left within the wiki page
    • right — float the box right within the wiki page

if no classes are specified the default styles will be used, that is square corners in a colour scheme based on the default DokuWiki colour scheme.

  • colours — 1-4 colours in CSS hex or RGB notation, e.g. #F00 #fcab94 rgb(255,255,0). The colours are applied in order to:
    1. content background
    2. title background
    3. outer box background
    4. borders

if less than four colours are specified, the first colour is used for the missing colours.

  • title text — text (including DokuWiki markup) displayed above the box contents, with distinct style.
  • caption text — text (no markup allowed) displayed below the box contents, with distinct style.

The opening <box … > including the title must all appear on one line. The box contents can appear over as many lines as are needed.

See the plugin in action here. The sample page shows all the styles available with the plugin.

<box 80% round orange|a title> the box contents</box> <box 50% left blue>the box contents</box|a caption> <box 60% round #f99 #fc9 #fcc #f60|title>the box contents</box|caption>

Basic usage is to place the following five syntax lines into the page markup of a page with Admin/Superuser ACL:

=== Orphan Media detection 
~~NOCACHE~~
~~ORPHANMEDIA:all~~
~~ORPHANMEDIA:summary~~
~~ORPHANMEDIA:missing~~
~~ORPHANMEDIA:orphan~~

Each syntax can be used together with optional filter for file extensions, which shlould be considered only.
Example: The following will reduce the function to consider only pdf and jpg files.

  ~~ORPHANMEDIA:summary:pdf:jpg~~
  ~~ORPHANMEDIA:missing:pdf:jpg~~
  ~~ORPHANMEDIA:orphan:pdf:jpg~~

~~ORPHANMEDIA:summary:pdf:jpg~~ ~~ORPHANMEDIA:missing:pdf:jpg~~ ~~ORPHANMEDIA:orphan:pdf:jpg~~

  • wiki/plugins.txt
  • Darrera modificació: 09/06/2018 13:55
  • per mate