Difference between revisions of "Template:Feature box"
Jump to navigation
Jump to search
m |
|||
(23 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <div style="width: | + | <div class="featurebox" style="width: 200px; 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|}}} | | + | <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=" | + | <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;"> | <div style="margin: 0 auto; margin-top: 10px; width: 150px; height: 150px; overflow: hidden; border: 4px solid #242d3c;"> | ||
− | [[{{{File| | + | [[File:{{{File|Featurebox Game.png}}}|left|150px|link={{{FileLink|{{{TitleLink|Main Page}}}}}}]] |
</div> | </div> | ||
− | <p style="font-size: 15px; padding: 5px | + | <p style="font-size: 15px; padding: 5px 15px; line-height: 1.25em; height: 46px; {{#ifeq: {{{DescThreeLines|}}} | True | margin-top: 6px; | margin-top: 15px; }}"> |
− | {{{Description| | + | {{{Description|Your poetic blurb <br> here ...}}} |
</p> | </p> | ||
</div><noinclude> | </div><noinclude> | ||
− | |||
== Usage == | == Usage == | ||
<nowiki> | <nowiki> | ||
− | {{ | + | {{Feature box |
| Title = | | Title = | ||
| TitleLink = | | TitleLink = | ||
− | | OneLine = ( | + | | ExternalUrl = (if TitleLink is external. default: False) |
+ | | OneLine = (if Title spans one line. default: True) | ||
| File = | | File = | ||
− | | | + | | FileLink = (image link. default: same as TitleLink) |
− | |||
− | |||
| Description = | | Description = | ||
+ | | DescThreeLines = (if the description spans three lines. defaults: False) | ||
}} | }} | ||
</nowiki> | </nowiki> | ||
− | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 06:04, 28 January 2020
Your poetic blurb
here ...
Usage[edit]
{{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) }}