Anonymous

Template:PortalFlex: Difference between revisions

From Jenny Everywhere Wiki
variable name change
No edit summary
(variable name change)
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:8px;" align="right"
{| cellspacing="0" cellpadding="1" style="background:{{{bgcolor|transparent}}};-moz-border-radius-topleft:8px;" 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>&nbsp;<includeonly>[[{{{articlename}}}|<font color="{{{tcolor|black}}}" size="1">'''{{{displayname}}}'''</font>]] {{#if:{{{serieslink|}}}{{{seriesdisplay|}}}|<nowiki/> {{!}} ''[[{{{serieslink}}}|<font color="{{{tcolor|black}}}" size="1">'''{{{extraright}}}'''</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>
Line 11: Line 11:
:color of background
:color of background
:example ''#30b7eb'' or ''red''
:example ''#30b7eb'' or ''red''
 
:''defaults to transparent
;ecolor
;ecolor
:color of outer edge
:color of outer edge
:example: ''#30b7eb'' or ''red''
:example: ''#30b7eb'' or ''red''
 
:''defaults to transparent
;image
;image
:file name of image to use, no namesapce
:file name of image to use, no namesapce
Line 22: Line 22:
;articlename
;articlename
:fullpagename that the 'name' and the image will link to
:fullpagename that the 'name' and the image will link to
;example: ''Aaron Littleton''
;example: ''The End of Time (TV story)''


;name
;displayname
:name of the person/persons/entity in the picture, what you want in the text at the bottom
:name which is displayed to reader
:example ''Aaron'' (compare to the article name used above)
:example "The End of Time"  (compare to the article name used above)


===optional params===
===optional params===
Line 34: Line 34:




;extraleft
;serieslink
: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
:The fullpagename of the article about the series of which the articlename is a part
:example: ''Portal:DHARMA Initiative''
:example: ''New Series Adventures''
::note: if you wont want the text to link to anything, put in <nowiki>{{PAGENAME}}</nowiki>
::note: if you don't want the text to link to anything, put in <nowiki>{{PAGENAME}}</nowiki>


;extraright
;seriesdisplay
: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
:The name of serieslink as displayed to the reader
:example: ''DHARMA''
: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
[[category:Coding utility templates]]
[[category:Coding utility templates]]
85,404

edits