Difference between revisions of "Template:InfoBox"

From Detective Conan Wiki
(Add header-text-color variable)
(Added an example of Template:InfoBox usage that uses all of the subtemplates)
Line 7: Line 7:
 
}}
 
}}
 
</includeonly><noinclude>
 
</includeonly><noinclude>
This template and its subtemplates are used to simplify the backends of various other InfoBox templates and can also be used to easily create custom InfoBoxes if needed.
+
This template and its subtemplates are used to simplify the backends of various other InfoBox templates and can also be used to easily create custom InfoBoxes if needed.  
 +
 
 +
For detailed documentation on each of the sub-templates, follow their respective links under the [[#See also|See also]] section at the bottom of this page
 +
 
 +
'''Example:'''
 +
<pre>{{InfoBox|header-color = #ececec|header-text-color = black
 +
| chronology = {{InfoBox/Chronology| Previous | [[The links of this chronology table are intentionally broken|Link]] | Next }}
 +
| main =
 +
{{InfoBox/MainHeader| Main Header }}
 +
{{InfoBox/Image| Detective Conan Anime Logo.png }}
 +
{{InfoBox/Section| Section 1 |content =
 +
{{InfoBox/LabeledRow| Label | Some information |border-top = none}}
 +
{{InfoBox/Item| Some more information }}
 +
}} <!-- End of Section 1 -->
 +
}}</pre>
 +
'''Results in:'''
 +
{{BeginBox}} <!-- For aesthetic purposes, Template:BeginBox is being used to push the See also section down and is unrelated to Template:InfoBox. -->
 +
{{InfoBox|header-color = #ececec|header-text-color = black
 +
| chronology = {{InfoBox/Chronology| Previous | [[The links of this chronology table are intentionally broken|Link]] | Next }}
 +
| main =
 +
{{InfoBox/MainHeader| Main Header }}
 +
{{InfoBox/Image| Detective Conan Anime Logo.png }}
 +
{{InfoBox/Section| Section 1 |content =
 +
{{InfoBox/LabeledRow| Label | Some information |border-top = none}}
 +
{{InfoBox/Item| Some more information }}
 +
}} <!-- End of Section 1 -->
 +
}}
 +
{{EndBox}} <!-- Template:EndBox pairs with Template:BeginBox above and is also unrelated to Template:InfoBox. -->
  
 
== See also ==
 
== See also ==

Revision as of 04:26, 21 August 2025

This template and its subtemplates are used to simplify the backends of various other InfoBox templates and can also be used to easily create custom InfoBoxes if needed.

For detailed documentation on each of the sub-templates, follow their respective links under the See also section at the bottom of this page

Example:

{{InfoBox|header-color = #ececec|header-text-color = black
| chronology = {{InfoBox/Chronology| Previous | [[The links of this chronology table are intentionally broken|Link]] | Next }}
| main =
{{InfoBox/MainHeader| Main Header }}
{{InfoBox/Image| Detective Conan Anime Logo.png }}
{{InfoBox/Section| Section 1 |content =
{{InfoBox/LabeledRow| Label | Some information |border-top = none}}
{{InfoBox/Item| Some more information }}
}} <!-- End of Section 1 -->
}}

Results in:

Chronology
Main Header
Detective Conan Anime Logo.png
Section 1
Label
Some information
Some more information

See also