This wiki is a XML full dump clone of "Heroes Wiki", the main wiki about the Heroes saga that has been shut down permanently since June 1, 2020. The purpose of this wiki is to keep online an exhaustive and accurate database about the franchise.
Template:PortalCharacter: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Hardvice fix family tree exclusion |
imported>Hardvice ifeq-->if |
||
| Line 6: | Line 6: | ||
</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> |
</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: {{#ifeq: {{{style|}}} | nav | none | thin grey solid}}; padding: 5px; margin: 5px; width: 75px; {{#ifeq: {{{style|}}} | nav | | {{# |
<center><div align="center" style="border: {{#ifeq: {{{style|}}} | nav | none | thin grey solid}}; padding: 5px; margin: 5px; width: 75px; {{#ifeq: {{{style|}}} | nav | | {{#if: {{#pos: {{PAGENAME}} | Tree}} | |height: 150px;}} "> |
||
<div style="position: relative; height: 92px; overflow: hidden;"> |
<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 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> |
||
Revision as of 09:23, 30 November 2007
{{#ifeq: {{{size}}} | small |
[[{{{link}}}|{{{smalltext}}}]]
|
[[{{{link}}}|{{{text}}}]]
Usage
Produces linked images for Portal Pages.
Syntax
{{PortalCharacter|size=|image=|link=|text=|smalltext=|nonlinktext=}}
| 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 <br> 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 <br> 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 |
| related | OPTIONAL name of related articles page |