« Modèle:TexteSurImage » : différence entre les versions

De gahan
Aller à la navigationAller à la recherche
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 5 : Ligne 5 :
| image        = [[File:Bandeau - Le Monde de Gahan.jpg|1000px]]
| image        = [[File:Bandeau - Le Monde de Gahan.jpg|1000px]]
| position    = left, right ou center (obligatoire)
| position    = left, right ou center (obligatoire)
| text        = Le Monde de Gahan
| text        = <b>Le Monde de Gahan</b>
| text-size    = 25px
| text-size    = 25px
| text-color  = white
| text-color  = white
Ligne 21 : Ligne 21 :
| image        = [[File:Bandeau - Le Monde de Gahan.jpg]]
| image        = [[File:Bandeau - Le Monde de Gahan.jpg]]
| position    = left, right ou center (obligatoire)
| position    = left, right ou center (obligatoire)
| text        = Le Monde de Gahan
| text        = <b>Le Monde de Gahan</b>
| text-size    = 25px
| text-size    = 25px
| text-color  = white
| text-color  = white
Ligne 35 : Ligne 35 :
--><div class="{{#switch: {{{position|}}} | left = image-left | right = image-right | center = image-center }}" style="position: relative; display: inline-block;">{{{image}}}
--><div class="{{#switch: {{{position|}}} | left = image-left | right = image-right | center = image-center }}" style="position: relative; display: inline-block;">{{{image}}}
<div style="position: absolute;
<div style="position: absolute;
             top: {{{coordY}}};
             top: {{{top}}};
             left: {{{coordX}}};
             bottom: {{{bottom}}};
             width: {{{largeurX}}};
             left: {{{left}}};
             height: {{{largeurY}}};
             right: {{{right}}};
            background-color: red;
;
            border-radius: 50%;
             opacity: {{{transparence}}};">{{{texte}}}
             opacity: {{{transparence}}};">
</div>
</div>{{#if: {{{texte|}}} | <div>{{{texte|}}}</div>}}</div>
</div>

Version du 18 novembre 2024 à 21:46

Ce template permet de marquer une zone sur une carte afin de situer un lieu.


Bandeau - Le Monde de Gahan.jpg
{{{texte}}}


Le code à inclure:

{{TexteSurImage
| image        = [[File:Bandeau - Le Monde de Gahan.jpg]]
| position     = left, right ou center (obligatoire)
| text         = <b>Le Monde de Gahan</b>
| text-size    = 25px
| text-color   = white
| text-shadow  = 4px 4px 7px #000000;
| top          = 
| bottom       =
| left         = 
| right        = 
}}