Template:Infobox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (6 intermediate revisions by the same user not shown) | |||
| Line 5: | Line 5: | ||
* [[Template:ib]] for new line | * [[Template:ib]] for new line | ||
* [[Template:ibs]] for infobox section name | * [[Template:ibs]] for infobox section name | ||
* [[Template:ibw]] use a whole line for one name (like | * [[Template:ibw]] use a whole line for one name (like ibs but unbolded) | ||
* [[Template:ibhalf]] like ib but | * [[Template:ibhalf]] like ib but unbolded, and parts cover half the box | ||
; <nowiki>{{{3}}}</nowiki>: infobox size (if unspecified, 270px) | ; <nowiki>{{{3}}}</nowiki>: infobox size (if unspecified, 270px) | ||
=== Example === | === Example === | ||
| Line 30: | Line 30: | ||
|300px}} | |300px}} | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
<div class="Infobox" style="width:{{{3|270px}}}"> | <div class="Infobox" style="width:{{{3|270px}}}; word-wrap: break-word;"> | ||
<div class="ibname">{{{1}}}</div> | <div class="ibname">{{{1}}}</div> | ||
{{{2}}} | {{{2}}} | ||
</div> | </div> | ||
</includeonly> | </includeonly> | ||
Latest revision as of 23:20, 17 November 2023
Tutorial
- {{{1}}}
- name of infobox
- {{{2}}}
- insert
- Template:ib for new line
- Template:ibs for infobox section name
- Template:ibw use a whole line for one name (like ibs but unbolded)
- Template:ibhalf like ib but unbolded, and parts cover half the box
- {{{3}}}
- infobox size (if unspecified, 270px)
Example
{{Infobox|Example|
{{ib|1st section|1st value}}
{{ib|2nd section|2nd value}}
{{ibw|Info}}
{{ibs|Part 2}}
{{ib|3rd section|3rd value}}
{{ibs|Part 3}}
{{ibhalf|Info 1a|Info 1b}}
|300px}}
Example
1st section
1st value
2nd section
2nd value
Info
Part 2
3rd section
3rd value
Part 3
Info 1a
Info 1b