How2Wiki
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é:
- Special:ListFiles
- Special:Upload
- et puis les category qu'on veut
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
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...
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