User:Cesdeva/sandbox

str = "" if string.find(str, "px") then print "Syntax error. Replace px with %" end



Documentation
 The Portal Button template is designed to provide a rounded-edged wrapper for intra-wiki linked images; giving the appearance and function of a 'button' to users. Utilisation of purpose-made graphics, released under CC-Zero, can add further semantic meaning. The wrapper incorporates the CSS overflow:hidden attribute, which in combination with the width attribute provides a crude way of 'cropping' images.

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 PortButton.jpg) |Link= (Target, default Portal:Contents/) |Image-s= (Image size; pair with |Width) |Text= (Add text below image, centered)

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

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

 This template was created by Cesdeva (talk) 01:10, 17 May 2018 (UTC)





Documentation
 The Portal Button template is designed to provide a rounded-edged 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 PBTN.jpg) |Link= (Target, default Portal:Contents/) |Image-s= (Image size; pair with |Width) |Text= (Add text below image, centered)

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

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

This template was created by Cesdeva (talk) 11:27, 17 May 2018 (UTC)



Documentation
 The Portal Button template is designed to provide a rounded-edged 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 PBTN.jpg) |Image-t= (Type, default frameless) |Link= (Target, default Portal:Contents/) |Image-s= (Image size; pair with |Width) |Text= (Add text below image, centered)

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

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

Rendered examples
&nbspWith purpose-made graphics: 

  Using only text and text-c:

This template was created by Cesdeva (talk) 11:54, 17 May 2018 (UTC)