Template:PortalFlex: Difference between revisions

From Jenny Everywhere Wiki
(default no background, no border)
m (62 revisions imported)
Tags: Mobile edit Mobile web edit
 
(59 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<onlyinclude>{| style="background:{{{bgcolor|#000}}}; border:1px solid {{{ecolor|#000}}};-moz-border-radius:5px;"
<onlyinclude><div style="margin:auto">
|- align="center"
{| style="background:{{{bgcolor|transparent}}}; border:1px solid {{{ecolor|transparent}}};-moz-border-radius:0px;"
|<div style="position:relative; height: {{{height}}}px; width: {{{width}}}px;"><div style="position: absolute; top: 72px; left: 0px; width: 124px; overflow: hidden; line-height: 12px; z-index: 4; text-align: right;">
|- align=center
{| cellspacing="0" cellpadding="1" style="background:{{{bgcolor|#ccc}}};-moz-border-radius-topleft:8px;" align="right"
|<div style="line-height: .8em; z-index: 8; text-align: right;">  
|<includeonly>&nbsp;<includeonly>[[{{{articlename}}}|<font color="{{{tcolor|black}}}" size="1">'''{{{name}}}'''</font>]] {{#if:{{{extraleft|}}}{{{extraright|}}}|<nowiki/> {{!}} ''[[{{{extraleft}}}|<font color="{{{tcolor|black}}}" size="1">'''{{{extraright}}}'''</font>]]''}}</includeonly><noinclude>words</noinclude>
|<includeonly>[[{{{articlename}}}|<span style="color:{{{tcolor|}}};font-size:.8em;">'''''{{{displayname}}}'''''</span>]] {{#if:{{{serieslink|}}}{{{seriesdisplay|}}}|[[{{{serieslink}}}|<br /><font color= "{{{tcolor|}}}" size="1">{{{seriesdisplay}}}</font>]]}}</includeonly><noinclude>words</noinclude>
|}</div><div style="position: absolute; 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: 1"><includeonly>[[File:{{{image}}}|{{{height}}}x{{{width}}}px|{{{articlename}}}|link={{{articlename}}}]]</includeonly><noinclude>image</noinclude></div>
|}</onlyinclude>
|}</div></onlyinclude>
 
{{lock}}[[Category:Coding utility templates]]{{documentation}}
==Parameters==
;bgcolor
:color of background
:example ''#30b7eb'' or ''red''
 
;ecolor
:color of outer edge
:example: ''#30b7eb'' or ''red''
 
;image
:file name of image to use, no namesapce
:example: ''Foo.jpg''
 
;articlename
:fullpagename that the 'name' and the image will link to
;example: ''Aaron Littleton''
 
;name
:name of the person/persons/entity in the picture, what you want in the text at the bottom
:example ''Aaron'' (compare to the article name used above)
 
===optional params===
;tcolor
:text color of the link
:example: ''#c8d0d8'' or ''white''
 
 
;extraleft
:for templates that need to link to something after the name (ie, AF/'Off island' template), this is the pagename that you want to link to
:example: ''Portal:DHARMA Initiative''
::note: if you wont want the text to link to anything, put in <nowiki>{{PAGENAME}}</nowiki>
 
;extraright
:for templates that need to link to something after the name (ie, AF/'Off island' template), this is the text that you want the link to say
:example: ''DHARMA''
[[category:Coding utility templates]]

Latest revision as of 01:33, 13 August 2024

words
image

Template:Lock