Template:Character cell: Difference between revisions
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
| | | | ||
<!-- <center> --><div align="center" style="border: 1px gray solid; padding: 5px; margin: 5px; width: 100px; background-color: white;"> | <!-- <center> --><div align="center" style="border: 1px gray solid; padding: 5px; margin: 5px; width: 100px; background-color: white;"> | ||
<div style="position: relative; height: | <div style="position: relative; height: 127px; overflow: hidden;"> | ||
<div align="center" style="position: absolute; top: 0px; left: 0px; font-size: | <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}}}}}| ]]</div> | ||
<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> | <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> | ||
<div style="position: relative; width: 100%; text-align: center;"> | <div style="position: relative; width: 100%; text-align: center;"> |
Revision as of 04:19, 19 April 2016
[[{{{link}}}|{{{text}}}]]
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 |
The above documentation is transcluded from Template:Character cell/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |