Template:PortalCharacter: Difference between revisions

From the Portal Wiki
Jump to navigation Jump to search
(New template to try and see if it looks good on the Character list page,)
 
No edit summary
 
Line 24: Line 24:
{{#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>
{{#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>
 
{{Template doc}}
==Usage==
Produces linked images for Portal Pages.
 
This template is courtesy of [http://heroeswiki.com Heroes Wiki].
 
===Syntax===
<pre>
{{PortalCharacter|size=|image=|link=|lines=|text=|smalltext=|unlinkedtext=}}
</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
|-
| 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
|}
 
</noinclude>
</noinclude>

Latest revision as of 00:09, 14 August 2020

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


 

[[{{{link}}}|{{{text}}}]]
Note: portions of the template sample may not be visible without values provided. This is normal.

Documentation for PortalCharacter

Usage

Produces linked images for Portal Pages.

This template is courtesy of Heroes Wiki.

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
Template info.png This documentation is transcluded from Template:PortalCharacter/doc.