Template:PortalFlex: Difference between revisions

From Jenny Everywhere Wiki
No edit summary
No edit summary
Line 3: Line 3:
|<div style="position:relative;"><div style="position: relative;  overflow: hidden; line-height: 12px; z-index: 4; text-align: right;">
|<div style="position:relative;"><div style="position: relative;  overflow: hidden; line-height: 12px; z-index: 4; text-align: right;">
{| cellspacing="0" cellpadding="1" style="background:{{{bgcolor|transparent}}};-moz-border-radius-topleft:0px;" align="right"
{| cellspacing="0" cellpadding="1" style="background:{{{bgcolor|transparent}}};-moz-border-radius-topleft:0px;" align="right"
|<includeonly>&nbsp;<includeonly>[[{{{articlename}}}|<font color="{{{tcolor|black}}}" size="1">'''''{{{displayname}}}'''''</font>]] {{#if:{{{serieslink|}}}{{{seriesdisplay|}}}|<nowiki/> {{!}} [[{{{serieslink}}}|<br><font color="{{{tcolor|black}}}" size="1">{{{seriesdisplay}}}</font>]]}}</includeonly><noinclude>words</noinclude>
|<includeonly>&nbsp;<includeonly>[[{{{articlename}}}<font color="{{{tcolor|black}}}" size="1">'''''{{{displayname}}}'''''</font>]] {{#if:{{{serieslink|}}}{{{seriesdisplay|}}}|<nowiki/> {{!}} [[{{{serieslink}}}|<br><font color="{{{tcolor|black}}}" size="1">{{{seriesdisplay}}}</font>]]}}</includeonly><noinclude>words</noinclude>
|}</div><div style="position: relative; top: 0px; left: 0px; z-index: 2"><includeonly>[[Image:{{{image}}}|{{{height}}}x{{{width}}}px|{{{articlename}}}|link={{{articlename}}}]]</includeonly><noinclude>image</noinclude></div></div>
|}</div><div style="position: relative; top: 0px; left: 0px; z-index: 2"><includeonly>[[Image:{{{image}}}|{{{height}}}x{{{width}}}px|{{{articlename}}}|link={{{articlename}}}]]</includeonly><noinclude>image</noinclude></div></div>
|}</onlyinclude>
|}</onlyinclude>

Revision as of 02:50, 6 March 2010

words
image

Parameters

bgcolor
color of background
example #30b7eb or red
defaults to transparent
ecolor
color of outer edge
example: #30b7eb or red
defaults to transparent
image
file name of image to use, no namesapce
example: Foo.jpg
articlename
fullpagename that the 'name' and the image will link to
example
The End of Time (TV story)
displayname
name which is displayed to reader
example "The End of Time" (compare to the article name used above)

optional params

tcolor
text color of the link
example: #c8d0d8 or white


serieslink
The fullpagename of the article about the series of which the articlename is a part
example: New Series Adventures
note: if you don't want the text to link to anything, put in {{PAGENAME}}
seriesdisplay
The name of serieslink as displayed to the reader
example: NSA
Note that you shouldn't use a prefix as a serieslink, as that's not helpful to the reader. In fact, it's recommended that seriesdisplay=series, as new readers won't be familiar with our prefixes, like NSA