틀:Navbox: 두 판 사이의 차이

편집 요약 없음
편집 요약 없음
 
(사용자 2명의 중간 판 4개는 보이지 않습니다)
1번째 줄: 1번째 줄:
<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|}}}"
<includeonly>{{#invoke:Navbox/former|navbox}}</includeonly><noinclude>
|-
{{Documentation}}
|<div style="font-size: 17px; font-weight: bold; text-align: center; margin-left: 56px;">{{{1}}}</div>
</noinclude>
|-
|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년 8월 8일 (일) 08:31 기준 최신판

틀 설명문서 [만들기]