Template:Infobox: Difference between revisions

From Crazy Noisy Remix Tree Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 4: Line 4:
; <nowiki>{{{2}}}</nowiki>: insert
; <nowiki>{{{2}}}</nowiki>: insert
* [[Template:ib]] for new line
* [[Template:ib]] for new line
* [[polfal:ibs]] for infobox section name
* [[Template:ibs]] for infobox section name
* [[polfal:ibw]] use a whole line for one name (like sbt but unbolded)
* [[Template:ibw]] use a whole line for one name (like ibs but unbolded)
* [[Template:ibhalf]] like sb but the size of halves is 50%–50%, and unbolded
* [[Template:ibhalf]] like ib but unbolded, and parts cover half the box
; <nowiki>{{{3}}}</nowiki>: infobox size (li uten, 270px je)
; <nowiki>{{{3}}}</nowiki>: infobox size (if unspecified, 270px)
=== Example ===
=== Example ===
<pre style="width: fit-content; display: inline-block;">
<pre style="width: fit-content; display: inline-block;">
{{infobox|Example|
{{Infobox|Example|
{{ib|1st section|1s value}}
{{ib|1st section|1st value}}
{{ib|2nd section|2s value}}
{{ib|2nd section|2nd value}}
{{ibw|Info}}
{{ibw|Info}}
{{ibs|Part 2}}
{{ibs|Part 2}}
Line 20: Line 20:
|300px}}
|300px}}
</pre>
</pre>
{{infobox|Example|
{{Infobox|Example|
{{ib|1st section|1s value}}
{{ib|1st section|1st value}}
{{ib|2nd section|2s value}}
{{ib|2nd section|2nd value}}
{{ibw|Info}}
{{ibw|Info}}
{{ibs|Part 2}}
{{ibs|Part 2}}
{{ib|3rd section|3rd value}}
{{ib|3rd section|3rd value}}
{{ibt|Part 3}}
{{ibs|Part 3}}
{{ibhalf|Info 1a|Info 1b}}
{{ibhalf|Info 1a|Info 1b}}
|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
{{{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