Template:WikiButton: Difference between revisions

From The Sims Wiki, a collaborative database for The Sims series
Jump to navigation Jump to search
Content added Content deleted
sims>LostInRiverview
mNo edit summary
sims>LostInRiverview
No edit summary
Line 1: Line 1:
<includeonly>{|class=wikibutton style="{{#if: {{{bgcolor|}}}|background: {{{bgcolor}}}|background: #99BBEE}}; font-color: {{#if: {{{fontcolor|}}}|{{{fontcolor}}}|black}};"
<includeonly>{|class=wikibutton style="{{#if: {{{bgcolor|}}}|background: {{{bgcolor}}}|background: #99BBEE}}; font-color: {{#if:{{{fontcolor|}}}|{{{fontcolor}}}|black}};"
|- align="center"
|- align="center"
|<div style="position:relative; height: 90px; width: 90px;">
|<div style="position:relative; height: 90px; width: 90px;">


<div style="position: absolute; top: 75px; left: 0px; width: 90px; overflow: hidden; line-height: 12px; z-index: 4; text-align: right;"><table cellspacing="0" cellpadding="1" style="{{#if: {{{boxcolor|}}}|background: {{{boxcolor}}}|background: #99BBEE}};" align="right"><tr><td>&nbsp;[[{{{articlename}}}|<span style="{{#if: {{{fontcolor|}}}|color: {{{fontcolor}}}|color: black}};">{{{name}}}</span>]]</td></tr></table></div>
<div style="position: absolute; top: 75px; left: 0px; width: 90px; overflow: hidden; line-height: 12px; z-index: 4; text-align: right;"><table cellspacing="0" cellpadding="1" style="{{#if: {{{boxcolor|}}}|background: {{{boxcolor}}}|background: #99BBEE}};" align="right"><tr><td>&nbsp;[[{{{articlename}}}|<span style="color:{{#if:{{{fontcolor|}}}|{{{fontcolor}}}|black}};">{{{name}}}</span>]]</td></tr></table></div>


<div style="position: absolute; top: 0px; left: 0px; height: 90px; width: 90px; overflow: hidden">
<div style="position: absolute; top: 0px; left: 0px; height: 90px; width: 90px; overflow: hidden">

Revision as of 16:13, 17 April 2015

Template documentation (View · Edit · History · Purge)
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__