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.

Difference between revisions of "Template:PortalPowers"

From Heroes Wiki
Jump to navigation Jump to search
imported>Hardvice
 
imported>Ryangibsonstewart
(increase size to 150)
 
(53 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div align="center" style=" border-style:solid; border-width: 1px; border-color: grey; padding: 5px; margin: 5px; width: 200px ">
{{#ifeq: {{{size|}}} | small | {{Portalnavcell|image={{{image}}}|link={{{link}}}|text={{#if: {{{smalltext|}}} | {{{smalltext}}} | {{#if: {{{text|}}} | {{{text}}} | {{{link}}}}}}}}} | <center><div align="center" style=" border-style:solid; border-width: 1px; border-color: grey; padding: 5px; margin: 5px; width: 150px ">
<div style="position: relative; height: 155px; overflow: hidden;">
<div style="position: relative; height: 118px; overflow: hidden;">
<div style="position: absolute; top: 0px; left: 0px; font-size: 160px; overflow: hidden; line-height: 155px; z-index: 3; link-hover: none; height: 155px; text-align: center;">[[{{{link}}}|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]]</div>
<div style="position: absolute; top: 0px; left: 0px; font-size: 130px; overflow: hidden; line-height: 118px; z-index: 3; link-hover: none; width: 150px; height: 118px; text-align: center;">[[{{{link}}}|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]]</div>
<div style="border-style:solid; border-width: 1px; border-color: grey; position: absolute; top: 0px; left: 0px; z-index: 2; height: 155px;">[[Image:{{{image}}}|200px|{{{link}}}]]</div>
<div style="position: absolute; top: 0px; left: 0px; z-index: 2; height: 100px;">[[Image:{{{image}}}|150px|{{{text|{{{link}}}}}}]]</div>
</div>[[{{{link}}}|{{{text}}}]]<br>({{{character}}})</div><noinclude>
</div>[[{{{link}}}|{{#if: {{{text|}}} | {{{text}}} | {{{override|{{{link}}}}}}}}]]{{#if:{{{nonlinktext|}}}|{{{nonlinktext}}}}}{{#if:
{{{lines|}}} | {{#ifexpr: {{#len: {{#if: {{{text|}}} | {{{text}}} | {{{link|}}}}}}} < {{#ifeq: {{{lines|}}} | auto | 22 | {{{lines}}}}} | <br>&nbsp;|}}}}{{#ifexist: Examples of {{lcfirst:{{{link|}}}}} | <br>''[[Examples of {{lcfirst:{{{link}}}}}|examples]]'' | {{#ifexist: Examples of {{{link|}}} | <br>''[[Examples of {{{link}}}|examples]]'' | <br>&nbsp;}}}}</div></center>}}
<noinclude>
==Usage==
For use on [[Portal:Abilities]]


==Usage==
Use <tt>nonlinktext</tt> to add whitespace to short entries by adding <tt>&lt;br>&amp;nbsp;</tt> for each needed line.
For use on [[Portal:Powers]]


For character, use full links (e.g. <tt><nowiki>[[Peter Petrelli]]</nowiki></tt>, not <tt>Peter Petrelli</tt>). This will alow for multiple characters or no character to be entered while creating appropriate links.
If an examples article exists at "Examples of (name of power)", it will automatically be linked.


<pre>
<pre>
Line 14: Line 17:
|image=<!-- Filename of image -->
|image=<!-- Filename of image -->
|link=<!-- Article title for Power -->
|link=<!-- Article title for Power -->
|character=<!-- Possessor.  Use full links. -->
|text=<!-- OPTIONAL override for name of power; "override=" always works -->
|nonlinktext=<!-- (OPTIONAL) Add "<br>&amp;nbsp;" to add an extra line for formatting -->
|lines=<!-- (OPTIONAL) Add "auto" or character# to automate adding an extra line for formatting -->
|size=<!-- (OPTIONAL) Add "small" to use Template:Portalnavcell instead -->
}}
}}
</pre>
</pre>
Note: size="small" option allows for "smalltext" but does not use "nonlinktext".


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

Latest revision as of 14:29, 16 April 2008

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

Usage

For use on Portal:Abilities

Use nonlinktext to add whitespace to short entries by adding <br>&nbsp; for each needed line.

If an examples article exists at "Examples of (name of power)", it will automatically be linked.

{{PortalPowers
|image=<!-- Filename of image -->
|link=<!-- Article title for Power -->
|text=<!-- OPTIONAL override for name of power; "override=" always works -->
|nonlinktext=<!-- (OPTIONAL) Add "<br>&nbsp;" to add an extra line for formatting -->
|lines=<!-- (OPTIONAL) Add "auto" or character# to automate adding an extra line for formatting -->
|size=<!-- (OPTIONAL) Add "small" to use Template:Portalnavcell instead -->
}}

Note: size="small" option allows for "smalltext" but does not use "nonlinktext".