Template:Infobox/optional separator/doc
Jump to navigation
Jump to search
|
This is a documentation subpage for Template:Infobox/optional separator. It contains usage information, categories, interlanguage links and other content that is not part of the original template page. |
This is the {{Infobox/optional separator}} template documentation.
Usage[edit source]
This template is used to build an infobox from bricks. The {{Infobox/optional separator}} is used to add a separator on condition inside an infobox.
Syntax[edit source]
Copy/paste the following inside the infobox template page.
{{Infobox/startbox}} {{Infobox/optional separator|condition parameter(s)|color|colspan value}} {{Infobox/endbox}}
Parameters[edit source]
- Parameter #1
- Used to set the separator appearance condition parameters as for an example <no
- Parameter #2
- Used to modify the separator line color as for an example {{Infobox/separator|FF0000}}. The default color is gray, #AAAAAA. It's better to leave this color as this.
- Parameter #3
- Used to set the colspan value as for an example {{Infobox/separator|FF0000|3}}. The default colspan value is 2.
Examples[edit source]
Simples examples[edit source]
- Example with a parameter
Title | |
{{Infobox/startbox}} {{Infobox/title|Title}} {{Infobox/image|No free image.svg}} {{Infobox/optional separator|USA}} {{Infobox/endbox}}
- Example without parameter
Title | |
{{Infobox/startbox}} {{Infobox/title|Title}} {{Infobox/image|No free image.svg}} {{Infobox/optional separator}} {{Infobox/endbox}}
Example inside a template[edit source]
{{Infobox/startbox}} {{Infobox/title | Title }} {{Infobox/image | {{{image|}}} }} {{Infobox/optional separator | {{{image|}}} }} {{Infobox/endbox}}