Extension:PortableInfobox
Appearance
État de la version : stable |
|
|---|---|
| Implémentation | Balise, Accroche |
| Description | Portage de l'extension PortableInfobox de Fandom vers MediaWiki 1.37.0+ |
| Auteur(s) | Universal Omega, Luqgreg, Fandom (version initiale) |
| Dernière version | 0.8 |
| Politique de compatibilité | Le master conserve la compatibilité arrière. |
| MediaWiki | >= 1.43.0 |
| Modifie la base de données |
Non |
<infobox> |
|
| Licence | Licence publique générale GNU v3.0 ou ultérieur |
| Téléchargement | README |
| Exemple | Undertale Wiki |
| Traduire l’extension PortableInfobox | |
L'extension PortableInfobox permet de créer des boîtes d'information portables qui peuvent être rendues à l'aide d'un balisage HTML sémantique propre sur n'importe quel habillage ou plate-forme en utilisant un balisage puissant de type XML facile à comprendre. C'est un portage de l'extension PortableInfobox de Fandom vers les versions les plus récentes de MediaWiki.
Installation
- Téléchargez et placez le(s) fichier(s) dans un répertoire appelé
PortableInfoboxdans votre dossierextensions/. - Ajoutez le code suivant à la fin de votre fichier LocalSettings.php :
wfLoadExtension( 'PortableInfobox' );
Fait – Accédez à Special:Versionsur votre wiki pour vérifier que l'extension a bien été installée.
Paramètres de configuration
- $wgAllInfoboxesExcludedSubpages (array)
- List of subpages in template namespace to omit by API allinfoboxes query. (default:
[ "doc", "draft", "test" ]) - $wgPortableInfoboxCacheRenderers (bool)
- Whether to cache infobox renderers in the main cache. (default: false)
- $wgPortableInfoboxCustomImageWidth (int)
- Size of image thumbnails used in infoboxes. (default: 300)
- $wgPortableInfoboxUseHeadings (bool)
- Use heading tags for infobox titles and group headers, it may cause incompatibilites with other extensions. (default: true)
- $wgPortableInfoboxUseTidy (bool)
- Use RemexHtml for validating HTML in infoboxes. (default: true)
- $wgPortableInfoboxResponsiblyOpenCollapsed (bool)
- Whether to open collapsed sections when the screen is narrow. (default: true)
- $wgPortableInfoboxUseFileDescriptionPage (bool)
- Whether or not infobox images will link to file description pages instead of the files directly. (default: false)
Utilisation
- See Help:Infoboxes/Tags on Fandom.
<media /> tag
In the 0.3 version, the <media /> tag was introduced in favor of <image />, which still works (see Aliases).
It allows users to embed images, videos, and audio files in the infobox, in the same way as <image /> tag does in the original version.
Attributes
source– name of the parameteraudio– If set tofalse, it ignores all audio filesimage– If set tofalse, it ignores all imagesvideo– If set tofalse, it ignores all videos
Child tags
<default><caption>
Aliases
<audio />– variation of<media />tag that allows only audio files<image />– variation of<media />tag that allows only images and videos (for backward compatibility, can be disabled withvideo="false")<video />– variation of<media />tag that allows only videos
User-facing differences from the original version
- It's based on Wikia/app@b9fcbe5d6db928e318d64ad0568ec2d09a3f406e.
There may be some features introduced in the original version at a later date which are absent here.
- Europa theme was removed.
.pi-theme-defaultclass is applied instead of.pi-theme-wikiato the infobox, when no theme is specified.
- When a
<gallery>tag is passed to the infobox with images without captions, file name is used instead of not showing the image.
- When embedding a video in the infobox additional class
.pi-videois added to the<figure>tag.
- Videos use
<video>tags instead of showing video in a modal after clicking a thumbnail.
.pi-imageclass is no longer present in the<figure>tag with a video, instead.pi-mediaclass is applied to all media elements.
.pi-image-collectionclasses were changed to.pi-media-collection.
accent-color-*attributes allow more color formats.
- More HTML tags are allowed in captions.
- Mobile skin doesn't get separate styling.
| Cette extension est incluse dans les fermes de wikis ou les hôtes suivants et / ou les paquets : |
Categories:
- Stable extensions/fr
- Tag extensions/fr
- Hook extensions/fr
- AfterParserFetchFileAndTitle extensions/fr
- AllInfoboxesQueryRecached extensions/fr
- ArticlePurge extensions/fr
- MultiContentSave extensions/fr
- ParserFirstCallInit extensions/fr
- ResourceLoaderRegisterModules extensions/fr
- WgQueryPages extensions/fr
- GPL licensed extensions/fr
- Extensions in GitHub version control/fr
- All extensions/fr
- Extensions included in Fandom/fr
- Extensions included in Miraheze/fr
- Extensions included in MyWikis/fr
- Extensions included in Telepedia/fr
- Extensions included in wiki.gg/fr
- Infobox extensions/fr
- Extensions by Fandom/fr
