Difference between revisions of "Template:Feature box"

From Highway 0, the Kentucky Route Zero wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
<div style="width: 220px; height: 326px; background: #ddd; box-shadow: 4px 4px 0px #242d3c; padding: 0; margin: 5px; text-align: center;">
 
<div style="width: 220px; height: 326px; background: #ddd; box-shadow: 4px 4px 0px #242d3c; padding: 0; margin: 5px; text-align: center;">
  
<p style="background: #242d3c; margin-top: 0; font-size: 24px; height: 60px; line-height: {{#ifeq: {{{OneLine|}}} | True | 60px | 30px }}; text-transform: uppercase; width: 100%; padding: 10px 0;">
+
<p style="background: #242d3c; margin-top: 0; font-size: 24px; height: 60px; line-height: {{#ifeq: {{{OneLine|}}} | False | 30px | 60px }}; text-transform: uppercase; width: 100%; padding: 10px 0;">
<span class="MainPageBox-link">[[{{{TitleLink|Main Page}}}|{{{Title|''Kentucky<br>Route Zero''}}}]]</span>
+
<span class="MainPageBox-link">[[{{{TitleLink|Main Page}}}|{{{Title|KRZ}}}]]</span>
 
</p>
 
</p>
  
<div style="margin: 0 auto; margin-top: 10px; width: 150px; height: 150px; overflow: hidden; border: 4px solid #242d3c;" {{#ifeq: {{{ShiftImage|}}} | True | class="MainPageBox-shiftimage" | }}>
+
<div style="margin: 0 auto; margin-top: 10px; width: 150px; height: 150px; overflow: hidden; border: 4px solid #242d3c;" class="{{#ifeq: {{{ShiftImageY|}}} | True | MainPageBox-shiftimageY | }} {{#ifeq: {{{ShiftImageX|}}} | True | MainPageBox-shiftimageX | }}">
[[{{{File|File:Equus Oils.png}}}|{{{ImageAlign|center}}}|{{{ImageSize|250px}}}|link={{{Link|{{{TitleLink|Main Page}}}}}}]]
+
[[{{{File|File:Equus Oils.png}}}|{{{ImageAlign|left}}}|{{{ImageSize|250px}}}|link={{{Link|{{{TitleLink|Main Page}}}}}}]]
 
</div>
 
</div>
  
Line 22: Line 22:
 
| Title =  
 
| Title =  
 
| TitleLink =  
 
| TitleLink =  
| OneLine = (optional. defaults to False)
+
| OneLine = (optional. defaults to True)
 
| File =  
 
| File =  
| ImageAlign = (optional. defaults to center)
+
| ImageAlign = (optional. defaults to left)
 
| ImageSize = (optional. defaults to 250px)
 
| ImageSize = (optional. defaults to 250px)
| ShiftImage = (optional. defaults to False)
+
| ShiftImageY = (optional. defaults to False)
 +
| ShiftImageX = (optional. defaults to False)
 
| Link = (optional. defaults to TitleLink)
 
| Link = (optional. defaults to TitleLink)
 
| Description =  
 
| Description =  

Revision as of 09:18, 26 June 2018

KRZ

Equus Oils.png

Your poetic blurb
here…


Usage

{{MainPageBox |
| Title = 
| TitleLink = 
| OneLine = (optional. defaults to True)
| File = 
| ImageAlign = (optional. defaults to left)
| ImageSize = (optional. defaults to 250px)
| ShiftImageY = (optional. defaults to False)
| ShiftImageX = (optional. defaults to False)
| Link = (optional. defaults to TitleLink)
| Description = 
| DescThreeLines = (optional. defaults to False)
}}