Template:WikiButton: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
sims>Random Ranaun No edit summary |
sims>Random Ranaun m (Reverted edits by Random Ranaun (talk | block) to last version by Woganhemlock) |
||
Line 1: | Line 1: | ||
<includeonly>{| style="{{#if: {{{bgcolor|}}}|background: {{{bgcolor}}}|background: #99BBEE}}; font-color: {{{fontcolor}}}; -moz-border-radius:5px; -webkit-border-radius:5px; border-radius:5px; -khtml-border-radius:5px; display:inline-block;" |
|||
<includeonly><div style="background-color:{{#switch:{{{bgcolor}}}|#6EA027}}; border-radius: 5px; padding: 3px; width: 90px; position: relative;">{{side crop|height=90|width=90|position=0|left={{{left|0}}}|image={{{image}}}|size={{{width|90}}}|link={{{articlename}}}}}[[{{{articlename}}}|<span style="background-color: {{#switch:{{{bgcolor}}}|#6EA027}}; position: absolute; right: 0px; bottom: 0px; font-size: x-small; font-weight: bold; color: white; padding: 0 5px; border-radius: 5px 0; z-index: 3;">{{{name}}}</span>]]</div></includeonly><noinclude> |
|||
|- align="center" |
|||
|<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}};-moz-border-radius-topleft:8px; -webkit-border-top-left-radius:8px; border-top-left-radius:8px;-khtml-border-radius-topleft:8px;" align="right"><tr><td> [[{{{articlename}}}|<span style="{{#if: {{{fontcolor|}}}|color: {{{fontcolor}}}|color: black}};font-size:x-small;">'''{{{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; font-size: 252px; overflow: hidden; line-height: 60px; z-index: 3">[[{{{articlename}}}| ]]</div> |
|||
<div style="position: absolute; top: 0px; left: 0px; z-index: 2">[[Image:{{{image}}}|90px|{{{articlename}}}]]</div> |
|||
</div></div> |
|||
|}</includeonly><noinclude> |
|||
{{Documentation}} |
{{Documentation}} |
||
__NOWYSIWYG__ |
__NOWYSIWYG__ |
Revision as of 08:51, 7 April 2013
- 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__