Template:DataBox/doc: Difference between revisions

m
13 revisions imported
fandomVB>Sovereign
(Created page with "{{Notice|title=Example|content=Test content}}")
 
m (13 revisions imported)
 
(12 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Notice|title=Example|content=Test content}}
==Description==
To use this template, copy the following code and fill in the appropriate fields.  The reason this exists is to enable a notice-style box which will show up on mobile devices, such as for [[Template:DetailsPageBox]].  "Notice"-class templates are automatically hidden by Fandom's mobile skin.
 
==Syntax==
<pre>
{{DataBox
  |image=|middle|75px]]
  |title=
  |content=
}}
</pre>
 
Note that the actual link to the image must be placed between the "=" after image and the "|" before middle in order to show up and retain expected formatting.
 
==Samples==
<pre>
{{DataBox
  |image=[[File:Example.jpg|middle|75px]]
  |title=Example Title
  |content=Example content
}}
</pre>
 
Results in...
{{DataBox
  |image=[[File:Example.jpg|middle|75px]]
  |title=Example Title
  |content=Example content
}}
 
<noinclude>
[[Category:Template documentation]]
</noinclude>