Difference between revisions of "Template:Featured page"

 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This template is used to render a standard Featured page UI element, eg. for the homepage. It's usage is as follows
+
This template is used to render a standard Featured page UI element, eg. for the homepage. Its usage is as follows
 
<pre>
 
<pre>
 
<nowiki>
 
<nowiki>
Line 10: Line 10:
 
| more = The text used for the "read more" link beneath the text
 
| more = The text used for the "read more" link beneath the text
 
| image width = (Optional) The width of the image, defaults to 120px
 
| image width = (Optional) The width of the image, defaults to 120px
}}</nowiki></pre></noinclude><includeonly>
+
}}</nowiki></pre></noinclude><includeonly><div class="featured-page {{{class|}}}"><h3 class="featured-page-title">[[{{{page|}}}|{{{title|}}}]]</h3><div class="featured-page-image">[[Image:{{{image|}}} | {{#if:{{{image width|}}}|{{{image width}}}|120px }}| frameless  ]]</div>
<div class="featured-page">
+
<div class="featured-page-info"><h3 class="featured-page-title">[[{{{page|}}}|{{{title|}}}]]</h3><div class="featured-page-text">
<div class="featured-page-image">[[Image:{{{image|}}} | {{#if:{{{image width|}}}|{{{image width}}}|120px }}| frameless  ]]</div>
 
<div class="featured-page-info">
 
<h3 class="featured-page-title">[[{{{page|}}}|{{{title|}}}]]</h3>
 
<div class="featured-page-text">
 
 
{{{text|}}}
 
{{{text|}}}
</div>
+
</div><div class="featured-page-more">[[{{{page|}}}|{{#if: {{{more|}}} | {{{more}}} | Read more...}} ]]</div></div><!--/featured-page-info--></div></includeonly>
<div class="featured-page-more">[[{{{page|}}}|{{#if: {{{more|}}} | {{{more}}} | Read more...}} ]]</div>
+
<noinclude>[[Category:Template]]</noinclude>
</div><!--/featured-page-info-->
 
</div>
 
</includeonly>
 

Latest revision as of 13:07, 4 February 2021

This template is used to render a standard Featured page UI element, eg. for the homepage. Its 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 width = (Optional) The width of the image, defaults to 120px
}}