Ce wiki est un clone complet (XML dump) de "Heroes Wiki", le principal wiki dédié à la saga Heroes qui a été définitivement arrêté depuis le 1er juin 2020. L'objectif de ce wiki est de garder en ligne (et enrichir) une base de données exhaustive sur la franchise.
« Modèle:PortalCharacter » : différence entre les versions
Aller à la navigation
Aller à la recherche
Contenu supprimé Contenu ajouté
imported>Desperate July mAucun résumé des modifications |
imported>Eutrope m Redirection vers Modèle:Portail Persos2 |
||
| (6 versions intermédiaires par le même utilisateur non affichées) | |||
| Ligne 1 : | Ligne 1 : | ||
#REDIRECT [[Modèle:Portail Persos2]] |
|||
{{#ifeq: {{{size}}} | small | |
|||
<center><div align="center" style="border-style:solid; border-width: 1px; border-color: grey; padding: 2px; margin: 2px; width: 60px "> |
|||
<div style="position: relative; height: 75px; overflow: hidden;"> |
|||
<div align="center" style="position: absolute; top: 0px; left: 0px; font-size: 80px; width: 60px; overflow: hidden; line-height: 75px; z-index: 3; link-hover: none">[[{{#if:{{{catlink|}}}|{{#ifeq:{{NAMESPACE}}|Category|{{{catlink|}}}|{{{link}}}}}|{{{link}}}}}| ]]</div> |
|||
<div style="position: absolute; top: 0px; left: 0px; z-index: 2;{{#ifeq:{{{deceased|}}}|true|filter:alpha(opacity=50);-moz-opacity:.50;|}}"><center>[[Image:{{{image}}}|{{{link}}}|60px]]</center></div> |
|||
</div><span style="font-size:75%">{{#ifeq:{{{deceased|}}}|true|<span style="color: silver;">''|}}[[{{#if:{{{catlink|}}}|{{#ifeq:{{NAMESPACE}}|Category|{{{catlink|}}}|{{{link}}}}}|{{{link}}}}}|{{#if:{{{smalltext}}}|{{{smalltext}}}|{{{text}}}}}]]{{#ifeq:{{{deceased|}}}|true|''</span>|}}{{#if:{{{smallnonlinktext|}}}|{{{smallnonlinktext}}}}}</span></div></center> |
|||
| |
|||
<center><div align="center" style="border-style:solid; border-width: 1px; border-color: grey; padding: 5px; margin: 5px; width: 75px "> |
|||
<div style="position: relative; height: 92px; overflow: hidden;"> |
|||
<div align="center" style="position: absolute; top: 0px; left: 0px; font-size: 95px; width: 75px; overflow: hidden; line-height: 90px; z-index: 3; link-hover: none">[[{{#if:{{{catlink|}}}|{{#ifeq:{{NAMESPACE}}|Category|{{{catlink|}}}|{{{link}}}}}|{{{link}}}}}| ]]</div> |
|||
<div style="position: absolute; top: 0px; left: 0px; z-index: 2;{{#ifeq:{{{deceased|}}}|true|filter:alpha(opacity=50);-moz-opacity:.50;|}}">[[Image:{{{image}}}|{{{link}}}|75px]]</div> |
|||
</div>{{#ifeq:{{{deceased|}}}|true|<span style="color: silver;">''|}}[[{{#if:{{{catlink|}}}|{{#ifeq:{{NAMESPACE}}|Category|{{{catlink|}}}|{{{link}}}}}|{{{link}}}}}|{{{text}}}]]{{#ifeq:{{{deceased|}}}|true|''</span>|}}{{#if:{{{nonlinktext|}}}|{{{nonlinktext}}}}}</div></center> |
|||
}}<noinclude> |
|||
==Usage== |
|||
Produces linked images for Portal Pages. |
|||
===Syntax=== |
|||
<pre> |
|||
{{PortalCharacter|size=|image=|link=|text=|smalltext=|nonlinktext=}} |
|||
</pre> |
|||
{| class=wikitable |
|||
! Variable !! Notes |
|||
|- |
|||
| size || Dictates the size of the Portal box. Value should be "big" or "small". If not specified, defaults to "big". |
|||
|- |
|||
| image || The image used in the box. Do not use Image: prefix |
|||
|- |
|||
| link || The destination of the Portal box |
|||
|- |
|||
| text || The linked text shown in the Portal box |
|||
|- |
|||
| smalltext || If the size of the box is "small", this text will be shown instead. If smalltext is Empty, values in ''text'' will be substituted. |
|||
|- |
|||
| nonlinktext || This text will not appear as linked text in the character box. Used to add whitespace to short entries (add <tt><br>&nbsp;</tt> for each needed line). |
|||
|- |
|||
| smallnonlinktext || This text will not appear as linked text in the small character box. Used to add whitespace to short entries (add <tt><br>&nbsp;</tt> for each needed line). |
|||
|- |
|||
| deceased || Set to "true" for deceased reflexes. |
|||
|- |
|||
| catlink || OPTIONAL alternate link to use when portal is included in a Category page |
|||
|} |
|||
[[Category:Modèles]] |
|||
</noinclude> |
|||
Dernière version du 18 janvier 2009 à 18:20
Rediriger vers :