Welcome to the DFO World Wiki. With many major updates since the release of DFO, many items are missing. Visit Item Database Project to learn more.
Please remember to click "show preview" before saving the page.
Thanks for the updated logo snafuPop!

Difference between revisions of "Template:DFOBox"

From DFO World Wiki
Jump to: navigation, search
m
m
 
(7 intermediate revisions by the same user not shown)
Line 7: Line 7:
 
         color:#f8d8a8;
 
         color:#f8d8a8;
  
         float:{{#if:{{{align|}}}|{{{align}}}|left}};
+
         margin-bottom: 10px;
        margin:left;
+
        margin-right: 10px;
         padding-top:5px;
+
        margin:{{#switch:{{{margin}}}|left=left|center=auto|right=right|left}};
 +
         padding-top:0px;
 
         padding-bottom:0px;
 
         padding-bottom:0px;
  
Line 26: Line 27:
 
       line-height:16px;
 
       line-height:16px;
 
     "
 
     "
  ><span>{{{1}}}</span></td>
+
  ><span>{{{1}}}</span></td></table></includeonly><noinclude>
 
 
</includeonly><noinclude>
 
  
 
== Description ==
 
== Description ==
Line 35: Line 34:
 
== Usage ==
 
== Usage ==
 
;width : Sets the width to a percentage value (100 = 100%). Set to 30% by default.
 
;width : Sets the width to a percentage value (100 = 100%). Set to 30% by default.
;align : Sets the alignment of the text box to the page. Allowable values: '''left''' (default) or '''right'''.
+
;margin : Sets the margins of the text box. Sets to "left" by default.
  
 
== Example ==
 
== Example ==
Line 56: Line 55:
 
* {{IconLink|Basic Training}}}}
 
* {{IconLink|Basic Training}}}}
  
[[Category:Formatting Templates]]
+
[[Category:Formatting_Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 01:46, 22 June 2023


Description

Renders a text box in the style of in-game tool-tips. Use in conjunction with Template:DFOColor to use standardized colors from in-game.

Usage

width 
Sets the width to a percentage value (100 = 100%). Set to 30% by default.
margin 
Sets the margins of the text box. Sets to "left" by default.

Example

{{DFObox|width=50%|Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
----
As you can see, you can also format text and use templates:
* '''Bold Text'''
* ''Italicized Text''
* [[Main_Page|Page links]]
* {{Item|Clear Cube Fragment}}s
* {{IconLink|Basic Training}}}}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

As you can see, you can also format text and use templates: