Difference between revisions of "Template:PortalButton/Documentation"
test>Cesdeva (→ Rendered examples: updating link) |
test>JLJ001 |
||
| Line 37: | Line 37: | ||
'''|Text-c=''' (Font color, default #FFFF) | '''|Text-c=''' (Font color, default #FFFF) | ||
</br> | </br> | ||
| − | '''|Font-wt=''' (Font weight, default bold) | + | '''|Font-wt=''' (Font weight, default none, options are <code>bold</code> and <code>italics</code>.) |
</br> | </br> | ||
'''|Text=''' (Add text below image, centered) | '''|Text=''' (Add text below image, centered) | ||
| Line 70: | Line 70: | ||
</p> | </p> | ||
</div> | </div> | ||
| + | |||
=== <u>Rendered examples</u>=== | === <u>Rendered examples</u>=== | ||
<!-- No templates to avoid local loop--> | <!-- No templates to avoid local loop--> | ||
Revision as of 15:25, 23 May 2018
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



