Template:BugGallery/doc/fr

De Palia Wiki
Aller à la navigation Aller à la recherche
Cette page est une version traduite de la page Template:BugGallery/doc et la traduction est terminée à 100 %.

Utilisation

Le modèle {{BugGallery/doc}} est à utiliser dans la section Galerie de chaque page d'insecte.

Le modèle vérifie et extrait automatiquement trois images pour chaque page :

  • UntranslatedPagename.png (icône)
  • UntranslatedPagename Ingame.png (insecte dans la nature)
  • UntranslatedPagename SQ Ingame.png (insecte dans un terrarium)

Note : aucune image/lien brisé n'apparaîtra si le fichier n'existe pas.

Syntaxe

{{BugGallery<!-- Placez chaque image sur une nouvelle ligne en commençant par "|File:". Ajoutez "|" et plus de texte pour inclure une légende d'image. -->
|File: |
}}<!-- Fin de la galerie, NE PAS EFFACER -->

Exemples

Si la galerie est placée sur la page : Libellule souffle-de-feu

Image Properties

Additional Image properties can be added to each image along with the Galleries description, however due to Template syntax additional care must be used to escape special characters (To prevent weird formatting problems).

  • Each image property following the Description should be separated by {{!}}, which will convert into a pipe character (|)
  • Typing an equal sign (=) will cause the attribute to be treated as a named template parameter. {{=}} should be used in it's place.

Added Alt Text

The alternative text can be overridden in situations where an image fails to load, or a user is making use of a screen reader to assist in reading the page.

{{BugGallery/doc
 |File:image1.png|Description 1{{!}}alt{{=}}Alternative image text
 |File:image2.png|Description 2{{!}}alt{{=}}More alternative text
}}

Added Page Link

Images by default will link to their image page, such as [[:File:image1.png]], this behavior can be overridden by providing a link= to another page.

{{BugGallery/doc
 |File:image1.png|Description 1{{!}}link{{=}}[[Some Other Page]]
 |File:image2.png|Description 2{{!}}link{{=}}[[Also Another Page]]
}}

Lié à