Difference between revisions of "Template:Feature box"

From Highway 0, the Kentucky Route Zero wiki
Jump to navigation Jump to search
m (Eli moved page Template:MainPageBox to Template:Feature box without leaving a redirect)
Line 1: Line 1:
<div class="MainPageBox" style="width: 220px; height: 326px; background: #ddd; box-shadow: 4px 4px 0px #999; padding: 0; margin: 5px; text-align: center;">
+
<div class="featurebox" style="width: 220px; height: 326px; background: #ddd; box-shadow: 4px 4px 0px #999; padding: 0; margin: 5px; text-align: center;">
  
 
<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;">
 
<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">{{#ifeq: {{{ExternalUrl|}}} | True |  | [ }}[{{{TitleLink|Main Page}}} {{#ifeq: {{{ExternalUrl|}}} | True |  | {{!}} }} {{{Title|KRZ}}}]{{#ifeq: {{{ExternalUrl|}}} | True |  | ] }}</span>
+
<span class="featurebox-link">{{#ifeq: {{{ExternalUrl|}}} | True |  | [ }}[{{{TitleLink|Main Page}}} {{#ifeq: {{{ExternalUrl|}}} | True |  | {{!}} }} {{{Title|KRZ}}}]{{#ifeq: {{{ExternalUrl|}}} | True |  | ] }}</span>
 
</p>
 
</p>
  
<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: {{{ShiftImageY2|}}} | True | MainPageBox-shiftimageY2 | }} {{#ifeq: {{{ShiftImageX|}}} | True | MainPageBox-shiftimageX | }}">
+
<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 | }}">
 
[[{{{File|File:Equus Oils.png}}}|{{{ImageAlign|left}}}|{{{ImageSize|250px}}}|link={{{Link|{{{TitleLink|Main Page}}}}}}]]
 
[[{{{File|File:Equus Oils.png}}}|{{{ImageAlign|left}}}|{{{ImageSize|250px}}}|link={{{Link|{{{TitleLink|Main Page}}}}}}]]
 
</div>
 
</div>
Line 18: Line 18:
  
 
  <nowiki>
 
  <nowiki>
{{MainPageBox
+
{{Feature box
 
| Title =  
 
| Title =  
 
| TitleLink =  
 
| TitleLink =  

Revision as of 07:07, 30 June 2018

KRZ

Equus Oils.png

Your poetic blurb
here…

Usage

{{Feature box
| Title = 
| TitleLink = 
| ExternalUrl = (if TitleLink is external. defaults to False)
| OneLine = (if Title spans one line. defaults to True)
| File = 
| ImageAlign = (File alignment. defaults to left. use ShiftImageX for centering)
| 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 = 
| DescThreeLines = (if Description spans three lines. defaults to False)
}}