How2Wiki

From hormonobotanik

Encodage

Comment écrire sur un wiki: https://www.mediawiki.org/wiki/Help:Formatting, https://en.wikipedia.org/wiki/Help:Wikitext

Image et fichier

Comment uploaded des fichier sur le wiki: https://www.mediawiki.org/wiki/Help:Managing_files

example d'une image flotante [[File:Sirop de pamplemousse.JPG|400px|thumb|right|Sirop de pamplemousse]]

Categories de page

Categories! https://www.mediawiki.org/wiki/Help:Categories

Pour ajouter une page a la categorie recette on ajoute [[Category:Recette]] a la fin de la page.

Customisation

modifier le CSS: MediaWiki:Common.css, https://www.mediawiki.org/wiki/Manual:Interface/Stylesheets

il y a aussi MediaWiki:Print.css our MediaWiki:Mobile.css ()

modifier la Sidebar: MediaWiki:Sidebar, j'ai ajouté:

Mobile responsive theme

from https://www.mediawiki.org/wiki/Manual:Themes

Currently using

# Enabled skins. # The following skins were automatically enabled: # wfLoadSkin( 'MinervaNeue' ); # wfLoadSkin( 'MonoBook' ); # wfLoadSkin( 'Timeless' ); wfLoadSkin( 'Vector' ); ## Default skin: you can change the default skin. Use the internal symbolic ## names, e.g. 'vector' or 'monobook': $wgDefaultSkin = "vector-2022";

from https://www.mediawiki.org/wiki/Skin:Vector

Vector is a MediaWiki skin that has been MediaWiki's default skin since 2010, replacing MonoBook.

Apparently $wgVectorResponsive is turned off by default (boolean).

Experimental setting to make Vector a responsive skin that adapts to mobile phones. false by default.

Note there also are option for pinning by default or not the menus! (https://www.mediawiki.org/wiki/Skin:Vector/2022#Pinning)

Plugins

install pluging https://www.mediawiki.org/wiki/Manual:Extensions le pluging était install il fallait l'activé dans loadsetting blabla

# use the extension to list subcategories
wfLoadExtension( 'CategoryTree' );
$wgCategoryTreeDefaultOptions['mode'] = 'pages';
$wgCategoryTreeCategoryPageOptions['mode'] = 'pages';

our own category tree

https://www.mediawiki.org/wiki/Extension:CategoryTree#Usage

Ingrédients(28 C)
Ail(1 P)
Algues(1 P)
Avoine(1 P)
Cardamone(2 P)
Citron(3 P)
Céléri(1 P)
Damiana(1 P)
Fenouil(3 P)
Gattilier(3 P)
Gingembre(4 P, 1 F)
Ginkgo(1 P)
Ginseng(1 P)
Houblon(2 P)
Menthe Poivrée(1 P)
Millepertuis(1 P)
Mélisse(1 P)
Ortie(3 P)
Pamplemousse(1 P)
Persil(1 P)
Piment(1 P)
Raisin(2 P)
Réglisse(1 P)
Salsepareille(2 P)
Sauge(1 P)
Soja(4 P)
Trèfle rouge(2 P)
Verveine(2 P)
Yuzu(1 P)
Documents(4 C)
Imprimés(14 P)
Recettes(13 P)
Traductions(3 P)
Événements(9 P)

should we add a category that would be phytoandro and phytooestro? for different ingredients?

Editing templates

list all pages in a namespace

https://www.hormonobotanik.wiki/api.php?action=query&format=json&list=allpages&apnamespace=8

ok ce que je veux c'est des changer le "template" qui est utiliser par defaut pour les liens

https://www.mediawiki.org/wiki/Extension:Highlight_Links_in_Category

au final - après 3h d'erreur - j'ai du prendre un commit entérieur pour faire fonctionner avec la version 1.43 de mediawiki: https://github.com/labster/HighlightLinksInCategory/tree/aaa0ce021f62c7c22e632edebe80506a7c58eec8

et avec la config suivante

wfLoadExtension( 'HighlightLinksInCategory' );
$wgHighlightLinksInCategory = array(
    "Recettes" => 'recettes',
    "Traductions" => 'traductions‎',
    "Événements" => 'evenements'
);

j'ai du les ajouter un par un et débuger chacun lentement pour m'asurer que ça fonctionnait. remarque: ça fonctionne pas dans le categorytree element...

trying to fucking edit the subcategory navigation

nothing here: https://www.mediawiki.org/wiki/Help:Categories#Managing_the_category_hierarchy

looking at all the category extenson one by one: https://www.mediawiki.org/wiki/Category:Category_extensions

https://www.mediawiki.org/wiki/Extension:NiceCategoryList3

an option would be to display: none that whole part and then generate my own template using the category tree extension or the nicecategorylist extension. whoa nicecategorylist3 works, showing the others how i feel about it:

https://xkcd.com/2347/?featured_on=pythonbytes

Paramètre

  • enlever les inscription par defaut
  • changer le theme par defaut