Template:Portal subject cell: Difference between revisions

From Semantic Stargate Wiki
(Created page with "{{#ifeq: {{{size}}} | small | <center><div align="center" style="border: 1px gray solid; padding: 2px; margin: 2px; width: 100px "> <div style="position: relative; height: {{...")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifeq: {{{size}}} | small |  
{{#ifeq: {{{size}}} | small |  
<center><div align="center" style="border: 1px gray solid; padding: 2px; margin: 2px; width: 100px ">
<center><div align="center" style="border: 1px gray solid; padding: 2px; margin: 2px; width: 100px; background-color: white;">
<div style="position: relative; height: {{#if:{{{format|}}}|75px|56px}}; overflow: hidden;">
<div style="position: relative; height: {{#if:{{{format|}}}|75px|56px}}; overflow: hidden;">
<div align="center" style="position: absolute; top: 0px; left: 0px; font-size: 100px; width: 100px; overflow: hidden; line-height: {{#if:{{{format|}}}|75px|56px}}; z-index: 3; link-hover: none">[[{{#if:{{{catlink|}}}|{{#ifeq:{{NAMESPACE}}|Category|{{{catlink|}}}|{{{link}}}}}|{{{link}}}}}|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]]</div>
<div align="center" style="position: absolute; top: 0px; left: 0px; font-size: 100px; width: 100px; overflow: hidden; line-height: {{#if:{{{format|}}}|75px|56px}}; z-index: 3; link-hover: none">[[{{#if:{{{catlink|}}}|{{#ifeq:{{NAMESPACE}}|Category|{{{catlink|}}}|{{{link}}}}}|{{{link}}}}}|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]]</div>
Line 6: Line 6:
</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:{{{nonlinksmalltext|}}}|{{{nonlinksmalltext}}}}}</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:{{{nonlinksmalltext|}}}|{{{nonlinksmalltext}}}}}</span></div></center>
|
|
<center><div align="center" style="border: 1px gray solid; padding: 5px; margin: 5px; width: 150px;">
<center><div align="center" style="border: 1px gray solid; padding: 5px; margin: 5px; width: 180px; background-color: white;">
<div style="position: relative; height: {{#if:{{{format|}}}|112px|85px}}; overflow: hidden;">
<div style="position: relative; height: {{#if:{{{format|}}}|134px|102px}}; overflow: hidden;">
<div align="center" style="position: absolute; top: 0px; left: 0px; font-size: 85px; width: 156px; overflow: hidden; line-height: {{#if:{{{format|}}}|112px|85px}}; z-index: 3; link-hover: none">[[{{#if:{{{catlink|}}}|{{#ifeq:{{NAMESPACE}}|Category|{{{catlink|}}}|{{{link}}}}}|{{{link}}}}}|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]]</div>
<div align="center" style="position: absolute; top: 0px; left: 0px; font-size: 102px; width: 186px; overflow: hidden; line-height: {{#if:{{{format|}}}|134px|102px}}; 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;{{#if:{{{deceased|}}}|filter:alpha(opacity=50);-moz-opacity:.50;|}}">[[File:{{#if:{{{image|}}}|{{{image}}}|Blank.jpg}}|{{{link}}}|150px]]</div>
<div  style="position: absolute; top: 0px; left: 0px; z-index: 2;{{#if:{{{deceased|}}}|filter:alpha(opacity=50);-moz-opacity:.50;|}}">[[File:{{#if:{{{image|}}}|{{{image}}}|Blank.jpg}}|{{{link}}}|180px]]</div>
</div>
</div>
<div style="position: relative; width: 100%; text-align: center;">
<div style="position: relative; width: 100%; text-align: center;">
Line 35: Line 35:
</pre>
</pre>


{| class=wikitable
{| class="wikitable"
|-
! Variable !! Notes
! Variable !! Notes
|-
|-

Latest revision as of 00:15, 27 February 2016

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


 

[[{{{link}}}|{{{text}}}]]
Documentation icon Template documentation

Usage

This template builts images with links for the Portal pages.

Syntax

{{Template:Portal subject cell|size=|image=|link=|lines=|text=|format=|smalltext=|nonlinktext=|deceased=}}

{