Template:PortalButton/Documentation

From blackwiki
< Template:PortalButton
Revision as of 16:42, 23 May 2018 by test>Cesdeva (Rem. signature)
Jump to navigation Jump to search

This is a documentation page, and not a template.

 Documentation

This template is in Alpha-testing
The Portal Button template is designed to provide a rounded-edge wrapper for intra-wiki linked images; giving the appearance of a 'button' to users. Utilisation of purpose-made graphics can add further semantic meaning. The wrapper incorporates the CSS overflow:hidden attribute, which in combination with the width attribute will crudely 'crop' images. Normal image sizing syntax is optional but will be overidden horizontally by the value in the |width parameter.

 Parameters

|Width= (Div width, default is 25%)
|Float= (left or right, default none) |Background-c= (color, default #efefef) |Border-w= (Border width, default 2px) |Border-t= (Border type, default solid) |Border-c= (Border color, default #efefef) |Border-r= (Border radius, default 20px) |Margin= (Margin around div, default 5px) |Image= (File name, default PButton2.jpg) |Image-t= (Type, default frameless)
|Link= (Target, default Portal:Contents/) |Image-s= (Image size; pair with |Width) |Text-c= (Font color, default #FFFF)
|Font-wt= (Font weight, default none, options are bold and italics.)
|Text= (Add text below image, centered)

To transclude the template, copy and paste the following text:

{{PortalButton
|Width=
|Float=
|Background-c
|Border-w=
|Border-t
|Border-c=
|Border-r=
|Margin=
|Image=
|Link=
|Image-s=
|Text-c=
|Font-wt=
|Text=
}}

Be sure to remove any parameters you don't fill, otherwise rendering will be affected.

 Rendered examples

Geogdivhills2.jpg

Churchdiv2.jpg

Overlookingcheshire2.jpg Geography

Brayheadcross.jpg Religion