Warning: Use of undefined constant USER_AUTH_VERSION - assumed 'USER_AUTH_VERSION' (this will throw an Error in a future version of PHP) in /home/clients/8ef696c5eb3119a3a1c9089013d2fece/web/cookbook/userauth.php on line 31

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; UserSessionVars has a deprecated constructor in /home/clients/8ef696c5eb3119a3a1c9089013d2fece/web/cookbook/userauth/UserSessionVars.php on line 39

Warning: Use of undefined constant USERSESSIONVARS - assumed 'USERSESSIONVARS' (this will throw an Error in a future version of PHP) in /home/clients/8ef696c5eb3119a3a1c9089013d2fece/web/cookbook/userauth/UserSessionVars.php on line 37

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; HtPasswd has a deprecated constructor in /home/clients/8ef696c5eb3119a3a1c9089013d2fece/web/cookbook/userauth/HtPasswd.php on line 55

Warning: Use of undefined constant HTPASSWD_CLASS - assumed 'HTPASSWD_CLASS' (this will throw an Error in a future version of PHP) in /home/clients/8ef696c5eb3119a3a1c9089013d2fece/web/cookbook/userauth/HtPasswd.php on line 53

Deprecated: Function create_function() is deprecated in /home/clients/8ef696c5eb3119a3a1c9089013d2fece/web/pmwiki.php on line 501
Valdemar.fr

En Français

Traduction

Pmwiki.org(approuver les sites)

En Anglais

Menu de la version anglaise

Styles Wiki personnalisés

administrateurs (intermédiaire) Cette page décrit les WikiStyles prédéfinis et comment un Administrateur du Wiki peut définir un WikiStyles supplémentaire en tant que personnalisation pour toutes les pages (dans local/config.php) ou des groupes spécifiques (dans local/$Group.php).

Tous les WikiStyles prédéfinis sont définis dans le tableau global $WikiStyle. Pour définir votre propre style Wiki, ajoutez un élément au tableau correspondant à votre style Wiki.

WikiStyles prédéfinis

Le tableau de valeurs suivant est définit par scripts/wikistyles.php en utilisant les SDV()-fonctions (aussi vous pouvez les remplacer en les définissant préalablement dans config.php ou farmconfig.php):

balise:definition:

text colors:
(equiv. to %color=xxxx define=xxxx%
%black%$WikiStyle['black']['color'] = 'black';
%white%$WikiStyle['white']['color'] = 'white';
%red%$WikiStyle['red']['color'] = 'red';
%yellow%$WikiStyle['yellow']['color'] = 'yellow';
%blue%$WikiStyle['blue']['color'] = 'blue';
%gray%$WikiStyle['gray']['color'] = 'gray';
%silver%$WikiStyle['silver']['color'] = 'silver';
%maroon%$WikiStyle['maroon']['color'] = 'maroon';
%green%$WikiStyle['green']['color'] = 'green';
%navy%$WikiStyle['navy']['color'] = 'navy';
%purple%$WikiStyle['purple']['color'] = 'purple';

list-styles:
%decimal%$WikiStyle['decimal']['apply'] = 'list';
$WikiStyle['decimal']['list-style'] = 'decimal';
%roman%$WikiStyle['roman']['apply'] = 'list';
$WikiStyle['roman']['list-style'] = 'lower-roman';
%ROMAN%$WikiStyle['ROMAN']['apply'] = 'list';
$WikiStyle['ROMAN']['list-style'] = 'upper-roman';
%alpha%$WikiStyle['alpha']['apply'] = 'list';
$WikiStyle['alpha']['list-style'] = 'lower-alpha';
%ALPHA%$WikiStyle['ALPHA']['apply'] = 'list';
$WikiStyle['ALPHA']['list-style'] = 'upper-alpha';

special:
open links in a new browser-window:
%newwin%$WikiStyle['newwin']['target'] = '_blank';
Turns markup into a comment via display:none CSS
%comment%$WikiStyle['comment']['display'] = 'none';

WikiStyles Définis par un auteur

  1. Le premier index d'un tableau définit le nom du style (par ex. monnouveaustyle, entreeprojet etc.)
  2. Le second index définit le nom d'attribut (par ex. color, bgcolor, etc.)
  3. La valeur définie est celle de l'attribut (par ex. red, bold, #00ffcc, etc.)

Exemple: Si vous voulez définir un style pour tout le site un style similaire à

%define=projectentry color:red%

utilisez

$WikiStyle['projectentry']['color'] = 'red';

La variable $WikiStyle['projectentry']['apply'] peut être définie dans si le style concerne un élément particulier. Ce peut être 'item' (for li|dt), 'list' (for ul|ol|dl), 'div', 'pre', 'img', 'p' ou la combinaison 'block' (pour p|div|ul|ol|dl|li|dt|pre|h[1-6]). Exemple:

$WikiStyle['top']['apply'] = 'item'; $WikiStyle['top']['class'] = 'top';

ensuite une balise * %top% Un item de liste important sortira <li class="top">Un item de liste important</li>


<< Balises personnalisées | Index de la documentation | Internationalisation >>


Traduction de PmWiki.CustomWikiStyles Page originale sur PmWikiFr.CustomWikiStyles - Référencé par
Dernières modifications:
PmWikiFr.CustomWikiStyles: 10 septembre 2011 à 17h40
PmWiki.CustomWikiStyles: 30 août 2019 à 14h07

Valdemar.fr est un site personnel sur l'univers des Hérauts de Valdemar à but non commercial. Nous n'avons aucun lien avec Mercedes Lackey. Les textes ne sont pas libres de droit. Merci de prendre contact avec l'administrateur du site pour toute utilisation. Valdemar, une création de Mercedes Lackey. www.mercedeslackey.com