How2Wiki: Difference between revisions

From hormonobotanik
(Created page with " == Encodage == Comment écrire sur un wiki: https://www.mediawiki.org/wiki/Help:Formatting, https://en.wikipedia.org/wiki/Help:Wikitext Comment uploaded des fichier sur le wiki: https://www.mediawiki.org/wiki/Help:Managing_files example d'une image flotante <code><nowiki>400px|thumb|right|Sirop de pamplemousse</nowiki></code> == Customisation == modifier le CSS: MediaWiki:Common.css modifier la Sidebar: MediaWiki:Sidebar")
 
 
(28 intermediate revisions by the same user not shown)
Line 3: Line 3:


Comment écrire sur un wiki: https://www.mediawiki.org/wiki/Help:Formatting, https://en.wikipedia.org/wiki/Help:Wikitext
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
Comment uploaded des fichier sur le wiki: https://www.mediawiki.org/wiki/Help:Managing_files
Line 8: Line 10:
example d'une image flotante
example d'une image flotante
<code><nowiki>[[File:Sirop de pamplemousse.JPG|400px|thumb|right|Sirop de pamplemousse]]</nowiki></code>
<code><nowiki>[[File:Sirop de pamplemousse.JPG|400px|thumb|right|Sirop de pamplemousse]]</nowiki></code>
=== Categories de page ===
Categories! https://www.mediawiki.org/wiki/Help:Categories
Pour ajouter une page a la categorie recette on ajoute <code><nowiki>[[Category:Recette]]</nowiki></code> a la fin de la page.


== Customisation ==
== Customisation ==


modifier le CSS: [[MediaWiki:Common.css]]
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
 
<code><nowiki>
# 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";
</nowiki></code>
 
from https://www.mediawiki.org/wiki/Skin:Vector
 
<blockquote>
Vector is a MediaWiki skin that has been MediaWiki's default skin since 2010, replacing MonoBook.
</blockquote>
 
Apparently <code>$wgVectorResponsive</code> is turned off by default (boolean).
 
<blockquote>
Experimental setting to make Vector a responsive skin that adapts to mobile phones. false by default.
</blockquote>
 
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
 
<pre><nowiki>
# use the extension to list subcategories
wfLoadExtension( 'CategoryTree' );
$wgCategoryTreeDefaultOptions['mode'] = 'pages';
$wgCategoryTreeCategoryPageOptions['mode'] = 'pages';
</nowiki></pre>
 
== our own category tree ==
 
https://www.mediawiki.org/wiki/Extension:CategoryTree#Usage
 
<categorytree mode="pages" showcount="on">Ingrédients</categorytree>
<categorytree mode="pages" showcount="on">Documents</categorytree>
 
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
 
<pre><nowiki>
wfLoadExtension( 'HighlightLinksInCategory' );
$wgHighlightLinksInCategory = array(
    "Recettes" => 'recettes',
    "Traductions" => 'traductions‎',
    "Événements" => 'evenements'
);
</nowiki></pre>
 
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 ==


modifier la Sidebar: [[MediaWiki:Sidebar]]
* enlever les inscription par defaut
* changer le theme par defaut

Latest revision as of 12:21, 29 January 2026

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