[pmwiki-users] Making a button wikistyle

Carlos AB cabsec.pmwiki at gmail.com
Sun Mar 20 23:10:23 CDT 2011

You can use something like this:

SDVA($WikiStyle['linkbutton'], array(
        'background-color' => '#ccc',
        'color' => '#444',
        'border' => '4px #ccc outset',
        'padding' => '2px',
        'text-decoration' => 'none'

It doesn't look so good, but it is usable.

Then all you have to do is:

%linkbutton%[[Main/HomePage| Home Button]]

and voilà!

Good things,


On 3/20/11, Randy Brown <alongkiss at aprivatespot.com> wrote:
> I would like to create a wikistyle that makes the text or link to which it
> applies appear just like a form's button. For example, I would like to be
> able to use markup on my page like this:
> %button% [[Main.Mylink?action=myaction|Do my action]]
> I assumed there was a CSS file somewhere that defines the style used for
> input submission buttons - but I haven't found it. (Or maybe I haven't
> recognized what I found.)
> Once I find it, I'll need to either learn how to use it, or else use it as a
> model to create a new wikistyle. For example, maybe I can put something like
> this in a css file:
> .button {
>   some css code here...
> }
> And then in PHP:
> SDVA($WikiStyle['button'], array('class'=>'some code here...'));
> Since I know little about CSS, any pointers, tips, or help would be
> appreciated.
> Randy
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users

More information about the pmwiki-users mailing list