Difference between revisions of "Template:Feature box"

From Highway 0, the Kentucky Route Zero wiki
Jump to navigation Jump to search
m
Line 5: Line 5:
 
</p>
 
</p>
  
<div style="margin: 0 auto; margin-top: 10px; width: 150px; height: 150px; overflow: hidden; border: 4px solid #242d3c;" class="{{#ifeq: {{{ShiftImageY|}}} | True | featurebox-shiftimageY | }} {{#ifeq: {{{ShiftImageY2|}}} | True | featurebox-shiftimageY2 | }} {{#ifeq: {{{ShiftImageX|}}} | True | featurebox-shiftimageX | }}">
+
<div style="margin: 0 auto; margin-top: 10px; width: 150px; height: 150px; overflow: hidden; border: 4px solid #242d3c;">
[[{{{File|File:Equus Oils.png}}}|{{{ImageAlign|left}}}|{{{ImageSize|250px}}}|link={{{Link|{{{TitleLink|Main Page}}}}}}]]
+
[[File:{{{File|Equus Oils.png}}}|left|150px|link=File:{{{FileLink|{{{TitleLink|Main Page}}}}}}]]
 
</div>
 
</div>
  
 
<p style="font-size: 15px; padding: 5px 15px; line-height: 1.25em; height: 46px; {{#ifeq: {{{DescThreeLines|}}} | True | margin-top: 6px; | margin-top: 15px; }}">
 
<p style="font-size: 15px; padding: 5px 15px; line-height: 1.25em; height: 46px; {{#ifeq: {{{DescThreeLines|}}} | True | margin-top: 6px; | margin-top: 15px; }}">
{{{Description|Your poetic blurb <br> here…}}}
+
{{{Description|Your poetic blurb <br> here ...}}}
 
</p>
 
</p>
  
Line 21: Line 21:
 
| Title =  
 
| Title =  
 
| TitleLink =  
 
| TitleLink =  
| ExternalUrl = (if TitleLink is external. defaults to False)
+
| ExternalUrl =   (if TitleLink is external. default: False)
| OneLine = (if Title spans one line. defaults to True)
+
| OneLine =       (if Title spans one line. default: True)
 
| File =  
 
| File =  
| ImageAlign = (File alignment. defaults to left. use ShiftImageX for centering)
+
| FileLink =       (image link. default: same as TitleLink)
| ImageSize = (width of File thumbnail. defaults to 250px)
 
| ShiftImageY = (if image should be moved down by 25%. defaults to False)
 
| ShiftImageY2 = (if image should be moved down by 38%. defaults to False)
 
| ShiftImageX = (if image should be moved right by 25%. defaults to False)
 
| Link = (File link. defaults to TitleLink)
 
 
| Description =  
 
| Description =  
| DescThreeLines = (if Description spans three lines. defaults to False)
+
| DescThreeLines = (if the description spans three lines. defaults: False)
 
}}
 
}}
 
</nowiki>
 
</nowiki>

Revision as of 05:45, 28 January 2020

KRZ

Equus Oils.png

Your poetic blurb
here ...

Usage

{{Feature box
| Title = 
| TitleLink = 
| ExternalUrl =    (if TitleLink is external. default: False)
| OneLine =        (if Title spans one line. default: True)
| File = 
| FileLink =       (image link. default: same as TitleLink)
| Description = 
| DescThreeLines = (if the description spans three lines. defaults: False)
}}