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

From Heroes Wiki
Jump to navigation Jump to search
Content deleted Content added
imported>Hardvice
adjust deceased opacity
imported>Hardvice
adjust deceased
 
(42 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#ifeq: {{{size}}} | small |
{{#ifeq: {{{size}}} | small |
<center><div align="center" style="border-style:solid; border-width: 1px; border-color: grey; padding: 2px; margin: 2px; width: 60px ">
<center><div align="center" style="border: 1px gray solid; padding: 2px; margin: 2px; width: 60px ">
<div style="position: relative; height: 75px; overflow: hidden;">
<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">[[{{{link}}}|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]]</div>
<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}}}}}|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]]</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 style="position: absolute; top: 0px; left: 0px; z-index: 2;{{#if:{{{deceased|}}}|filter:alpha(opacity=50);-moz-opacity:.50;|}}"><center>[[Image:{{{image}}}|{{{link}}}|60px]]</center></div>
</div><span style="font-size:75%">{{#ifeq:{{{deceased|}}}|true|<s>|}}[[{{{link}}}|{{#if:{{{smalltext}}}|{{{smalltext}}}|{{{text}}}}}]]{{#ifeq:{{{deceased|}}}|true|</s>|}}{{#if:{{{smallnonlinktext|}}}|{{{smallnonlinktext}}}}}</span></div></center>
</div><span style="font-size:75%">{{#if:{{{deceased|}}}|<span style="color: silver;">''|}}[[{{#if:{{{catlink|}}}|{{#ifeq:{{NAMESPACE}}|Category|{{{catlink|}}}|{{{link}}}}}|{{{link}}}}}|{{#if:{{{smalltext}}}|{{{smalltext}}}|{{{text}}}}}]]{{#if:{{{deceased|}}}|''</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 ">
<center><div align="center" style="border: 1px gray solid; padding: 5px; margin: 5px; width: 75px;">
<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">[[{{{link}}}|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]]</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}}}}}|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]]</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 style="position: absolute; top: 0px; left: 0px; z-index: 2;{{#if:{{{deceased|}}}|filter:alpha(opacity=50);-moz-opacity:.50;|}}">[[Image:{{{image}}}|{{{link}}}|75px]]</div>
</div>
</div>{{#ifeq:{{{deceased|}}}|true|<s>|}}[[{{{link}}}|{{{text}}}]]{{#ifeq:{{{deceased|}}}|true|</s>|}}{{#if:{{{nonlinktext|}}}|{{{nonlinktext}}}}}</div></center>
<div style="position: relative; width: 100%; text-align: center;">
{{#switch: {{{lines|2}}}
| 1 = &nbsp;
| 2 = <br>&nbsp;
| 3 = <br>&nbsp;<br>&nbsp;
| 4 = <br>&nbsp;<br>&nbsp;<br>&nbsp;
| 5 = <br>&nbsp;<br>&nbsp;<br>&nbsp;<br>&nbsp;
| 6 = <br>&nbsp;<br>&nbsp;<br>&nbsp;<br>&nbsp;<br>&nbsp;
| 7 = <br>&nbsp;<br>&nbsp;<br>&nbsp;<br>&nbsp;<br>&nbsp;<br>&nbsp;
| #default =<br>&nbsp;<br>&nbsp;}}
<div style="position: absolute; top: 0px; left: 0px; width: 100%; text-align: center;">
{{#if:{{{deceased|}}}|<span style="color: silver;">''|}}[[{{#if:{{{catlink|}}}|{{#ifeq:{{NAMESPACE}}|Category|{{{catlink|}}}|{{{link}}}}}|{{{link}}}}}|{{{text}}}]]{{#if:{{{deceased|}}}|''</span>|}}{{#if:{{{unlinkedtext|}}}|{{{unlinkedtext}}}}}<!--{{#if:{{{nonlinktext|}}}|{{{nonlinktext}}}}}-->{{#if: {{{related|}}} | <br><small>''[[Related Articles:{{{related}}}|related pages]]''</small>}}</div></div></div></center>
}}<noinclude>
}}<noinclude>


Line 18: Line 30:
===Syntax===
===Syntax===
<pre>
<pre>
{{PortalCharacter|size=|image=|link=|text=|smalltext=|nonlinktext=}}
{{PortalCharacter|size=|image=|link=|lines=|text=|smalltext=|unlinkedtext=}}
</pre>
</pre>


Line 29: Line 41:
|-
|-
| link || The destination of the Portal box
| link || The destination of the Portal box
|-
| lines || The number of lines of text for which the box should be sized. Default is 2.
|-
|-
| text || The linked text shown in the Portal box
| text || The linked text shown in the Portal box
Line 34: Line 48:
| 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.
| 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>&lt;br>&amp;nbsp;</tt> for each needed line).
| unlinkedtext || This text will not appear as linked text in the character box.
|-
|-
| smallnonlinktext || This text will not appear as linked text in the small character box. Used to add whitespace to short entries (add <tt>&lt;br>&amp;nbsp;</tt> for each needed line).
| smallnonlinktext || This text will not appear as linked text in the small character box.
|-
|-
| deceased || Set to "true" for deceased reflexes.
| deceased || Anything if true.
|-
| catlink || OPTIONAL alternate link to use when portal is included in a Category page
|-
| related || OPTIONAL name of related articles page
|}
|}



[[Category:Templates]]
[[Category: Portal Elements]]
[[Category: Portal Elements]]
[[Category: Portal Cells]]
</noinclude>
</noinclude>

Latest revision as of 01:45, 4 January 2008

[[{{{link}}}|      ]]
[[Image:{{{image}}}|{{{link}}}|75px]]


 

[[{{{link}}}|{{{text}}}]]

Usage

Produces linked images for Portal Pages.

Syntax

{{PortalCharacter|size=|image=|link=|lines=|text=|smalltext=|unlinkedtext=}}
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
lines The number of lines of text for which the box should be sized. Default is 2.
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.
unlinkedtext This text will not appear as linked text in the character box.
smallnonlinktext This text will not appear as linked text in the small character box.
deceased Anything if true.
catlink OPTIONAL alternate link to use when portal is included in a Category page
related OPTIONAL name of related articles page