Template:DataBox/doc: Difference between revisions

fandomVB>Sovereign
m (13 revisions imported)
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
==Description==
==Description==
To use this template, copy the following code and fill in the appropriate fields.
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==
==Syntax==
Line 6: Line 6:
{{DataBox
{{DataBox
   |image=|middle|75px]]
   |image=|middle|75px]]
   |title=Example Title
   |title=
   |content=Example content
   |content=
}}
}}
</pre>
</pre>
Line 24: Line 24:
Results in...
Results in...
{{DataBox
{{DataBox
   |image='''[[File:Example.jpg'''|middle|75px]]
   |image=[[File:Example.jpg|middle|75px]]
   |title=Example Title
   |title=Example Title
   |content=Example content
   |content=Example content
}}
}}


<noinclude>
[[Category:Template documentation]]
[[Category:Template documentation]]
</noinclude>

Latest revision as of 19:28, 20 March 2023

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

{{DataBox
  |image=|middle|75px]]
  |title=
  |content=
}}

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

{{DataBox
  |image=[[File:Example.jpg|middle|75px]]
  |title=Example Title
  |content=Example content
}}

Results in...

File:Example.jpg

Example Title

Example content