Template:FoodGallery/fr

From Palia Wiki
Jump to navigation Jump to search
This page is a translated version of the page Template:FoodGallery and the translation is 100% complete.
Template de documentation
Note : des parties de l'exemple du modèle peuvent ne pas être visibles si les valeurs ne sont pas fournies.
Voir ou éditer cette documentation. (A propos du template de documentation)
Les éditeurs peuvent expérimenter dans les pages sandbox et cas de test de ce modèle.
Ce modèle a des traductions, des éléments apparentés ou des sous-modèles existants :

Utilisation

Le modèle {{FoodGallery}} est à utiliser dans la section Galerie de chaque page de recette de nourriture.

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

  • UntranslatedPagename.png (icône)
  • UntranslatedPagename Ingame.png
  • UntranslatedPagename SQ Ingame.png (nourriture dans une assiette)

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

Syntaxe

{{FoodGallery<!-- 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 : Gâteau de fête

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.

{{FoodGallery
 |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.

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

Lié à