Template:WikiButton/doc: 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
No edit summary
m (8 revisions imported: Import from https://sims.wikia.com)
 
(4 intermediate revisions by 3 users not shown)
Line 8: Line 8:
|articlename={{{Name of page to link to}}}
|articlename={{{Name of page to link to}}}
|name={{{Alternate name, if different from articlename}}}
|name={{{Alternate name, if different from articlename}}}
|color={{{background color (will default to blue - #99BBEE - if nothing is entered)
|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)}}}
}}
}}
</pre>
</pre>


For example, <pre>{{WikiButton|image=Balloon_policar.png|articlename=:Category:Vehicles|name=Cars|color=green}}</pre>
For example, <pre>{{WikiButton|image=Balloon_policar.png|articlename=:Category:Vehicles|name=Cars|bgcolor=green|boxcolor=blue|fontcolor=white}}</pre>
will produce {{WikiButton|image=Balloon_policar.png|articlename=:Category:Vehicles|name=Cars|color=green}}.
will produce {{WikiButton|image=Balloon_policar.png|articlename=:Category:Vehicles|name=Cars|bgcolor=green|boxcolor=blue|fontcolor=white}}.
<includeonly>[[Category:Main Page buttons|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Latest revision as of 00:57, 10 March 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

.