Difference between revisions of "Template:Portal tile"

From Wayne County, Ohio Online Resource Center
Jump to navigation Jump to search
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
+
|color=    # Tile flavour, one of the following: [ primary, info, dark, default ]. Default: default
 
}}
 
}}
 
</pre>
 
</pre>

Revision as of 12:10, 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, dark, 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


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