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)