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 {{{color|default}}}"><!-- |
-->{{#if:{{{image|}}}|<div class="portal-tile-image">[[File:{{PAGENAME:{{{image|}}}}}|class=img-tiled|{{{iwidth|180px}}}]]</div>}} | -->{{#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"><!-- | ||
Line 18: | Line 18: | ||
|iwidth= # Image width in pixels. Default: 180px | |iwidth= # Image width in pixels. Default: 180px | ||
|content= # Instances of [[Template:Unilink]] | |content= # Instances of [[Template:Unilink]] | ||
+ | |color= # Tile flavour, one of the following: [ primary, info, default ]. Default: default | ||
}} | }} | ||
</pre> | </pre> | ||
Line 73: | Line 74: | ||
{{unilink|link=Resources}} | {{unilink|link=Resources}} | ||
{{unilink|link=Wayne County}} | {{unilink|link=Wayne County}} | ||
+ | |color=primary | ||
}} | }} | ||
{{Portal tile | {{Portal tile | ||
Line 89: | Line 91: | ||
{{unilink|link=Resources}} | {{unilink|link=Resources}} | ||
{{unilink|link=Wayne County}} | {{unilink|link=Wayne County}} | ||
+ | |color=info | ||
}} | }} | ||
</div> | </div> | ||
</div> | </div> | ||
</noinclude> | </noinclude> |
Revision as of 09:20, 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]] |color= # Tile flavour, one of the following: [ primary, info, default ]. Default: default }}
- 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"> {{Portal top |...}} <div class="portal-content"> ... {{Portal tile|...}} {{Portal tile|...}} {{Portal tile|...}} ... </div> </div>
Wayne County, Ohio Online Resource Center Portals
Portal Name
Collection Name
Main Page
Main Page
Main Page