Template:Featured page: Difference between revisions

No edit summary
No edit summary
Line 12: Line 12:
}}</nowiki></pre></noinclude><includeonly>
}}</nowiki></pre></noinclude><includeonly>
<div class="featured-page">
<div class="featured-page">
<div class="featured-page-image">[[Image:{{{image|}}} | {{#if:{{{image params|}}}|{{{image params}}}|150px | frameless}}} ]]</div>
<div class="featured-page-image">[[Image:{{{image|}}} | {{#if:{{{image params|}}}|{{{image params}}}|120px }} ]]</div>
<div class="featured-page-info">
<div class="featured-page-info">
<h3 class="featured-page-title">[[{{{page|}}}|{{{title|}}}]]</h3>
<h3 class="featured-page-title">[[{{{page|}}}|{{{title|}}}]]</h3>

Revision as of 12:44, 29 January 2014

This template is used to render a standard Featured page UI element, eg. for the homepage. It's usage is as follows


{{Featured page
| page = The Exact Name of the Page
| title = The display title used in the featured item
| image = An image name (without the preceeding File: or Image: namespace) eg. shakespeare_01.jpg
| text = The text that will be displayed for the featured item.
| more = The text used for the "read more" link beneath the text
| image params = (Optional) Params for the image tag, which will overwrite the defaults.
}}