Difference between revisions of "Template:EBox"

From eRepublik Official Wiki
Jump to: navigation, search
m
m (small corrections)
 
Line 1: Line 1:
 
<div class="ebox" style="float: {{{float|center}}}; align: {{{align|center}}}; clear: {{{clear|none}}}; opacity: {{{opacity|1}}}; width: {{{width|auto}}}; border:2px solid {{{border|#C6E4F2}}}; -moz-border-radius: {{{radius|5px}}}; border-radius: {{{radius|5px}}}; -webkit-border-radius: {{{radius|5px}}}; background-color:{{{background|#F1FAFF}}}; margin:{{{margin|0% 10% 0% 10%}}}; padding: 0px 5px 5px 5px; text-align: left; margin-bottom:3px;">{{Edit|nobrackets=1|color={{{border|#C6E4F2}}}}}
 
<div class="ebox" style="float: {{{float|center}}}; align: {{{align|center}}}; clear: {{{clear|none}}}; opacity: {{{opacity|1}}}; width: {{{width|auto}}}; border:2px solid {{{border|#C6E4F2}}}; -moz-border-radius: {{{radius|5px}}}; border-radius: {{{radius|5px}}}; -webkit-border-radius: {{{radius|5px}}}; background-color:{{{background|#F1FAFF}}}; margin:{{{margin|0% 10% 0% 10%}}}; padding: 0px 5px 5px 5px; text-align: left; margin-bottom:3px;">{{Edit|nobrackets=1|color={{{border|#C6E4F2}}}}}
<big>[[File:{{{image|Speech_balloon.png{{!}}24px}}}]] <span style="color: {{{border|#C6E4F2}}}">'''{{{title|[[Template:eBox|New notice]]}}}'''</span></big>
+
<big>[[File:{{{image|Speech_balloon.png{{!}}24px}}}]] <span style="color: {{{border|#000000}}}">'''{{{title|[[Template:eBox|New notice]]}}}'''</span></big>
 
<div style="border:1px solid {{{border|#C6E4F2}}}; background-color:#fff; padding: 10px;">
 
<div style="border:1px solid {{{border|#C6E4F2}}}; background-color:#fff; padding: 10px;">
 
{{{text|This [[Template:eBox|'''box template''']] is finished.}}}</div>
 
{{{text|This [[Template:eBox|'''box template''']] is finished.}}}</div>

Latest revision as of 12:28, 20 May 2015

edit

Speech balloon.png New notice

This box template is finished.

[edit] [purge]

Documentation


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.

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 to 0px will remove the rounded corners.
  • |state= Changes the state of the template; 0 is "collapsed", 1 is "expanded". The default value is 1. Deprecated

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:

Exclamation.png Stub

This page is a stub.

You can help by extending, adding, or updating information.