Template:WikiButton: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
sims>LostInRiverview (Reverting to last working version - update on april 16th broke the template when color is given as a hexadecimal) |
imported>Syde BOT m (→top: clean up, replaced: [[Image: → [[File:) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{|class=wikibutton style="{{#if: {{{bgcolor|}}}|background: {{{bgcolor}}}|background: #99BBEE |
<includeonly>{|class=wikibutton style="{{#if: {{{bgcolor|}}}|background: {{{bgcolor}}}|background: #99BBEE}};" |
||
|- align="center" |
|- align="center" |
||
|<div style="position:relative; height: 90px; width: 90px;"> |
|<div style="position:relative; height: 90px; width: 90px;"> |
||
Line 9: | Line 9: | ||
<div style="position: absolute; top: 0px; left: 0px; font-size: 252px; overflow: hidden; line-height: 60px; z-index: 3">[[{{{articlename}}}| ]]</div> |
<div style="position: absolute; top: 0px; left: 0px; font-size: 252px; overflow: hidden; line-height: 60px; z-index: 3">[[{{{articlename}}}| ]]</div> |
||
<div style="position: absolute; top: 0px; left: 0px; z-index: 2">[[ |
<div style="position: absolute; top: 0px; left: 0px; z-index: 2">[[File:{{{image}}}|90px|{{{articlename}}}]]</div> |
||
</div></div> |
</div></div> |
Latest revision as of 08:03, 5 December 2019
- Uses
Used to create image-based buttons which contain links to other pages. Example of usage can be seen here.
- Syntax
{{WikiButton |image={{{Image to be used}}} |articlename={{{Name of page to link to}}} |name={{{Alternate name, if different from articlename}}} |bgcolor={{{Optional - Background color (will default to blue - #99BBEE - if nothing is entered)}}} |boxcolor={{{Optional - Text box color (defaults to #99BBEE)}}} |fontcolor={{{Optional - Text color {defaults to #000000)}}} }}For example,
{{WikiButton|image=Balloon_policar.png|articlename=:Category:Vehicles|name=Cars|bgcolor=green|boxcolor=blue|fontcolor=white}}
will produce
Visit Template:WikiButton/doc to edit this text! (How does this work?) (Refresh this text - why?)
__NOWYSIWYG__