Template:Box/doc: Difference between revisions

ldstech has been retired
(→‎Usage: add new 'header' parameter)
(ldstech has been retired)
 
(4 intermediate revisions by one other user not shown)
Line 10: Line 10:
| header || optional || Valid options: <tt>yes</tt> or <tt>no</tt>.<br />Default: yes.
| header || optional || Valid options: <tt>yes</tt> or <tt>no</tt>.<br />Default: yes.
|-
|-
| color || optional || Valid options: <tt>ldstech</tt>, <tt>pink</tt>, <tt>orange</tt>, <tt>yellow</tt>, <tt>green</tt>, <tt>blue</tt> and <tt>purple</tt>.<br />Default: Gray box title, white background for body, shades of gray for borders.
| body || optional || Valid options: <tt>yes</tt> or <tt>no</tt>.<br />Default: yes.
|-
| color || optional || Valid options: <tt>pink</tt>, <tt>orange</tt>, <tt>yellow</tt>, <tt>green</tt>, <tt>blue</tt> and <tt>purple</tt>.<br />Default: Gray box title, white background for body, shades of gray for borders.
|-
|-
| float || optional || Valid options: <tt>left</tt> or <tt>right</tt>.<br />Default: left.
| float || optional || Valid options: <tt>left</tt> or <tt>right</tt>.<br />Default: left.
Line 18: Line 20:
| width || optional || Values can be expressed in either % or px.<br />Default: adjusts to width of content.
| width || optional || Values can be expressed in either % or px.<br />Default: adjusts to width of content.
|-
|-
| title || mandatory || The title of the box.
| title || mandatory || The title of the box (unless <tt>header=no</tt>).
|-
|-
| content || mandatory || The content to be displayed in the box.
| content || mandatory || The content to be displayed in the box (unless <tt>body=no</tt>).
|-
|-
|}
|}
Line 85: Line 87:
dolore magna aliquam erat volutpat.  
dolore magna aliquam erat volutpat.  
}}
}}
</pre>
</pre>
</pre>
|-
|-
|{{Box  
|{{Box  
| color=ldstech
| header=no
| float=right
| color=orange
| width=240px
| content=This box is displayed with no header
| title=LDSTech Colors
| content=This box uses the default colors
for the LDSTech skin of the wiki.
}}
}}
|<pre>
|<pre>
{{Box  
{{Box  
| color=ldstech
| header=no
| float=right
| color=orange
| width=240px
| content=This box is displayed with no header
| title=LDSTech Colors
| content=This box uses the default colors
for the LDSTech skin of the wiki.
}}
}}
</pre>
</pre>
|-
|-
|{{Box  
|{{Box  
| header=no
| body=no
| color=orange
| color=pink
| content=This box is displayed with no header
| title=This box is displayed with no header with a darker background
}}
}}
|<pre>
|<pre>
{{Box  
{{Box  
| header=no
| body=no
| color=orange
| color=pink
| content=This box is displayed with no header
| title=This box is displayed with no header with a darker background
}}
}}
</pre>
</pre>
Approver, Batcheditor, Moderator, Patroller, Protector, Reviewer, Bots, Bureaucrats, editor, Interface administrators, pagecreator, pagedeleter, Page Ownership admin, Push subscription managers, smwadministrator, smwcurator, smweditor, Suppressors, Administrators, Upload Wizard campaign editors, Widget editors
795,753

edits