Difference between revisions of "Template:Portal tile"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
<includeonly><div class="portal-tile portal-card"><!-- | <includeonly><div class="portal-tile portal-card"><!-- | ||
− | -->{{#if:{{{image|}}}|<div class="portal-tile-image">[[File:{{PAGENAME:{{{image|}}}}}|class=img-tiled|{{{iwidth| | + | -->{{#if:{{{image|}}}|<div class="portal-tile-image">[[File:{{PAGENAME:{{{image|}}}}}|class=img-tiled|{{{iwidth|180px}}}]]</div>}} |
<div class="portal-tile-body"><!-- | <div class="portal-tile-body"><!-- | ||
-->{{#if:{{{title|}}}|<div class="portal-tile-title">{{{title|}}}</div>}} | -->{{#if:{{{title|}}}|<div class="portal-tile-title">{{{title|}}}</div>}} | ||
Line 16: | Line 16: | ||
|title= # Short text | |title= # Short text | ||
|image= # Name of an image | |image= # Name of an image | ||
− | |iwidth= # Image width in pixels. Default: | + | |iwidth= # Image width in pixels. Default: 180px |
|content= # Instances of [[Template:Unilink]] | |content= # Instances of [[Template:Unilink]] | ||
}} | }} |
Revision as of 08:55, 20 February 2022
- Description
Creates tiles with image on the left.
- Usage
{{Portal tile |title= # Short text |image= # Name of an image |iwidth= # Image width in pixels. Default: 180px |content= # Instances of [[Template:Unilink]] }}
- Example
{{Portal tile |title=Main Page |image=408-NBeverSt01.jpg |content= {{unilink|link=General Information}} {{unilink|link=Resources}} {{unilink|link=Wayne County}} }}
- Result
Main Page
- Wall
To get a centered grid with tiles, wrap instances of this template with:
<div id="portal"> <div class="portal-content"> ... {{Portal tile|...}} {{Portal tile|...}} {{Portal tile|...}} ... </div> </div>
Main Page
Main Page
Main Page