Jump to content

Template:Character cell: Difference between revisions

From Semantic Stargate Wiki
Content deleted Content added
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
 
Line 1: Line 1:
<center>
<center>{{#invoke: Character cell|render
| size = {{{size|}}}
{{#ifeq: {{{size}}} | small |
<!-- <center> --><div align="center" style="border: 1px gray solid; padding: 2px; margin: 2px; width: 60px; background-color: white;">
| image = {{{image|}}}
<div style="position: relative; height: 75px; overflow: hidden;">
| link = {{{link|}}}
<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>
| lines = {{{lines|}}}
<div style="position: absolute; top: 0px; left: 0px; z-index: 2;{{#if:{{{deceased|}}}|filter:alpha(opacity=50)opacity:.50;|}}">[[File:{{{image}}}|{{{link}}}|60px]]</div></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> -->
| text = {{{text|}}}
|
| smalltext = {{{smalltext|}}}
<!-- <center> --><div align="center" style="border: 1px gray solid; padding: 5px; margin: 5px; width: 100px; background-color: white;">
| unlinkedtext = {{{unlinkedtext|}}}
<div style="position: relative; height: 127px; overflow: hidden;">
| smallnonlinktext = {{{smallnonlinktext|}}}
<div align="center" style="position: absolute; top: 0px; left: 0px; font-size: 125px; width: 100px; overflow: hidden; line-height: 125px; z-index: 3; link-hover: none">[[{{#if:{{{catlink|}}}|{{#ifeq:{{NAMESPACE}}|Category|{{{catlink|}}}|{{{link}}}}}|{{{link}}}}}|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]]</div>
| deceased = {{{deceased|}}}
<div style="position: absolute; top: 0px; left: 0px; z-index: 2;{{#if:{{{deceased|}}}|filter:alpha(opacity=50);opacity:.50;|}}">[[File:{{{image}}}|{{{link}}}|100px]]</div></div>
| catlink = {{{catlink|}}}
<div style="position: relative; width: 100%; text-align: center;">
| related = {{{related|}}}
{{#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;
| 8 = <br>&nbsp;<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}}}/Related Articles|related pages]]''</small>}}</div></div></div><!-- </center> -->
}}</center><noinclude>{{Documentation}}</noinclude>
}}</center><noinclude>{{Documentation}}</noinclude>

Latest revision as of 18:45, 30 July 2025

[[{{{link}}}|      ]]
[[File:{{{image}}}|{{{link}}}|100px]]


 

[[{{{link}}}|{{{text}}}]]
Documentation icon Template documentation[view] [edit] [history] [purge]

Usage

Produces linked images for Portal Pages.

Syntax

{{Character cell|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