틀:Navbox: 두 판 사이의 차이

편집 요약 없음
편집 요약 없음
1번째 줄: 1번째 줄:
{{#invoke:navbox/former|navbox}}<noinclude>{{documentation}}</noinclude>
<includeonly>{| class="mw-collapsible mw-collapsed navbox" style="margin: auto; width: 80%; background-color: rgb({{#if:{{{color|}}}|{{Trim|{{{color}}}}}|{{SiteColor|Generic}}}}); border-radius: 20px; border-spacing: 2px; {{{style|}}}"
|-
|<div style="font-size: 17px; font-weight: bold; text-align: center; margin-left: 56px;">{{{1}}}</div>
|-
|style="background-color: #ffffff; border-radius: 18px; padding: 0px;"|<div style="box-shadow: 0px 0px 15px #ffffff inset; background-color: rgba({{#if:{{{color|}}}|{{Trim|{{{color}}}}}|{{SiteColor|Generic}}}}, 0.2); border-radius: 18px; padding: 4px 4px 0px 4px;"></includeonly><noinclude>__NOTOC__
Opens an expandable navigation box. The resulting DOM construct must be terminated with the following wiki markup:
<nowiki></div>
|}</nowiki>
 
== Arguments ==
{| class="wikitable"
|- style="vertical-align: top;"
|<code>title</code>
|Unnamed
|The text to display at the top of the navbox, even when collapsed.
|- style="vertical-align: top;"
|<code>color</code>
|Optional
|An RGB triplet to use as the base color for formatting. The default value is {{SiteColor|Generic}}, which is defined as "Generic" in [[Template:SiteColor|SiteColor]].
|- style="vertical-align: top;"
|<code>style</code>
|Optional
|A list of CSS rules to apply to the top-level container.
|}
 
== Example ==
=== Markup ===
<nowiki>{{Navbox
|color = {{SiteColor|Splatoon 2}}
|Demonstration
}}
{{NavboxGroup
|color = {{SiteColor|Splatoon 2}}
|style = width: 150px;
|Group
}}
|Content
|}
</div>
|}</nowiki>
 
=== Output ===
{{Navbox
|color = {{SiteColor|Splatoon 2}}
|Demonstration
}}
{{NavboxGroup
|color = {{SiteColor|Splatoon 2}}
|style = width: 150px;
|Group
}}
|Content
|}
</div>
|}</noinclude>

2021년 2월 21일 (일) 06:04 판

Opens an expandable navigation box. The resulting DOM construct must be terminated with the following wiki markup:

</div>
|}

Arguments

title Unnamed The text to display at the top of the navbox, even when collapsed.
color Optional An RGB triplet to use as the base color for formatting. The default value is 0, 153, 255, which is defined as "Generic" in SiteColor.
style Optional A list of CSS rules to apply to the top-level container.

Example

Markup

{{Navbox
|color = {{SiteColor|Splatoon 2}}
|Demonstration
}}
{{NavboxGroup
|color = {{SiteColor|Splatoon 2}}
|style = width: 150px;
|Group
}}
|Content
|}
</div>
|}

Output