Difference between revisions of "Template:EBox/doc"
From eRepublik Official Wiki
m |
(No difference)
|
Latest revision as of 10:30, 6 May 2011
This documentation subpage contains instructions, categories, or other information for technical reasons.
To view the Template page itself, see Template:EBox.
To view the Template page itself, see Template:EBox.
This is the eBox (eRepublik Ambox) meta-template, used for making box templates that match the eRepublik V1 style.
This meta-template is a more stylized and advanced version of {{Ambox}}, the article message box meta-template. Any template made with {{Ambox}} can be changed to use this template instead, which offers more options for styling and customization.
When no parameters are indicated, the template will default to a brief template tutorial, which includes links to full tutorials and common templates for editors to use.
Contents
Usage
{{eBox |border= |background= |image= |title= |text= }}
Basic
|border=
Changes the color of the border, as well as the title and edit link. The default value is#C6E4F2
.|background=
Changes the background color of the template, not including the text box. The default value is#F1FAFF
.|image=
Indicates the image used in the upper right. The default is "Speech_balloon.png".|title=
Indicates the title of the template. The default title is "New notice".|text=
Indicates the text of the body of the template. The default text is a brief template tutorial, which includes links to full tutorials and common templates for editors to use.
Advanced
|float=
Indicates where the template "floats" on the page.|clear=
Indicates if or where the template "clears". The default setting is "both
", which means it clears all float to the left and to the right.|opacity=
Indicates the opacity of the template.|width=
Indicates the width of the template.|margin=
Indicates the size of the space around the template.|radius=
Changes the radius of the curvature of the corners. Setting this to0px
will remove the rounded corners.Deprecated|state=
Changes the state of the template;0
is "collapsed",1
is "expanded". The default value is1
.
Example
This code:
{{eBox |border=orange |background=#F2E4C6 |image= Exclamation.png{{!}}24px |title= [[:Category:Stub|<span style="color:orange;">Stub</span>]] |text=This page is a '''[[:Category:Stub|<span style="color:orange;">stub</span>]]'''. You can help by [{{fullurl:{{FULLPAGENAME}}|action=edit}} <span style="color:orange;">extending, adding, or updating information</span>]. }}
...will produce this box: