Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::open($save_path, $session_name) should either be compatible with SessionHandlerInterface::open(string $path, string $name): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/lfg/itchan.official.jp/public_html/wiki/includes/session/PHPSessionHandler.php on line 205

Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::close() should either be compatible with SessionHandlerInterface::close(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/lfg/itchan.official.jp/public_html/wiki/includes/session/PHPSessionHandler.php on line 220

Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::read($id) should either be compatible with SessionHandlerInterface::read(string $id): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/lfg/itchan.official.jp/public_html/wiki/includes/session/PHPSessionHandler.php on line 234

Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::write($id, $dataStr) should either be compatible with SessionHandlerInterface::write(string $id, string $data): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/lfg/itchan.official.jp/public_html/wiki/includes/session/PHPSessionHandler.php on line 262

Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::destroy($id) should either be compatible with SessionHandlerInterface::destroy(string $id): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/lfg/itchan.official.jp/public_html/wiki/includes/session/PHPSessionHandler.php on line 368

Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::gc($maxlifetime) should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/lfg/itchan.official.jp/public_html/wiki/includes/session/PHPSessionHandler.php on line 389

Deprecated: Return type of Wikimedia\Rdbms\IResultWrapper::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/lfg/itchan.official.jp/public_html/wiki/includes/libs/rdbms/database/resultwrapper/IResultWrapper.php on line 70

Deprecated: Return type of Wikimedia\Rdbms\IResultWrapper::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/lfg/itchan.official.jp/public_html/wiki/includes/libs/rdbms/database/resultwrapper/IResultWrapper.php on line 80

Deprecated: Return type of Wikimedia\Rdbms\IResultWrapper::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/lfg/itchan.official.jp/public_html/wiki/includes/libs/rdbms/database/resultwrapper/IResultWrapper.php on line 75

Deprecated: Return type of Wikimedia\Rdbms\ResultWrapper::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/lfg/itchan.official.jp/public_html/wiki/includes/libs/rdbms/database/resultwrapper/ResultWrapper.php on line 117

Deprecated: Return type of Wikimedia\Rdbms\ResultWrapper::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/lfg/itchan.official.jp/public_html/wiki/includes/libs/rdbms/database/resultwrapper/ResultWrapper.php on line 90

Deprecated: Return type of MediaWiki\Session\Session::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/lfg/itchan.official.jp/public_html/wiki/includes/session/Session.php on line 625

Deprecated: Return type of MediaWiki\Session\Session::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/lfg/itchan.official.jp/public_html/wiki/includes/session/Session.php on line 631

Deprecated: Return type of MediaWiki\Session\Session::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/lfg/itchan.official.jp/public_html/wiki/includes/session/Session.php on line 643

Deprecated: Return type of MediaWiki\Session\Session::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/lfg/itchan.official.jp/public_html/wiki/includes/session/Session.php on line 637

Deprecated: Return type of MediaWiki\Session\Session::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/lfg/itchan.official.jp/public_html/wiki/includes/session/Session.php on line 655

Deprecated: Return type of MediaWiki\Session\Session::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/lfg/itchan.official.jp/public_html/wiki/includes/session/Session.php on line 649

Deprecated: Return type of MediaWiki\Session\Session::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/lfg/itchan.official.jp/public_html/wiki/includes/session/Session.php on line 665

Deprecated: Return type of & MediaWiki\Session\Session::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/lfg/itchan.official.jp/public_html/wiki/includes/session/Session.php on line 678

Deprecated: Return type of MediaWiki\Session\Session::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/lfg/itchan.official.jp/public_html/wiki/includes/session/Session.php on line 688

Deprecated: Return type of MediaWiki\Session\Session::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/lfg/itchan.official.jp/public_html/wiki/includes/session/Session.php on line 693

Deprecated: Message implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /home/lfg/itchan.official.jp/public_html/wiki/includes/Message.php on line 159

Deprecated: RawMessage implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /home/lfg/itchan.official.jp/public_html/wiki/includes/RawMessage.php on line 34

Deprecated: Creation of dynamic property RequestContext::$recursion is deprecated in /home/lfg/itchan.official.jp/public_html/wiki/includes/context/RequestContext.php on line 326

Deprecated: Creation of dynamic property Parser::$mPreprocessorClass is deprecated in /home/lfg/itchan.official.jp/public_html/wiki/includes/parser/Parser.php on line 279

Deprecated: Creation of dynamic property Parser::$extCite is deprecated in /home/lfg/itchan.official.jp/public_html/wiki/extensions/Cite/includes/Cite.php on line 1296

Deprecated: Creation of dynamic property Parser::$scribunto_engine is deprecated in /home/lfg/itchan.official.jp/public_html/wiki/extensions/Scribunto/includes/common/Hooks.php on line 81

Deprecated: Creation of dynamic property PPDStack::$accum is deprecated in /home/lfg/itchan.official.jp/public_html/wiki/includes/parser/Preprocessor_DOM.php on line 845

Warning: Cannot modify header information - headers already sent by (output started at /home/lfg/itchan.official.jp/public_html/wiki/includes/libs/rdbms/database/resultwrapper/ResultWrapper.php:24) in /home/lfg/itchan.official.jp/public_html/wiki/includes/Feed.php on line 294

Warning: Cannot modify header information - headers already sent by (output started at /home/lfg/itchan.official.jp/public_html/wiki/includes/libs/rdbms/database/resultwrapper/ResultWrapper.php:24) in /home/lfg/itchan.official.jp/public_html/wiki/includes/Feed.php on line 300

Warning: Cannot modify header information - headers already sent by (output started at /home/lfg/itchan.official.jp/public_html/wiki/includes/libs/rdbms/database/resultwrapper/ResultWrapper.php:24) in /home/lfg/itchan.official.jp/public_html/wiki/includes/WebResponse.php on line 46

Warning: Cannot modify header information - headers already sent by (output started at /home/lfg/itchan.official.jp/public_html/wiki/includes/libs/rdbms/database/resultwrapper/ResultWrapper.php:24) in /home/lfg/itchan.official.jp/public_html/wiki/includes/WebResponse.php on line 46

Warning: Cannot modify header information - headers already sent by (output started at /home/lfg/itchan.official.jp/public_html/wiki/includes/libs/rdbms/database/resultwrapper/ResultWrapper.php:24) in /home/lfg/itchan.official.jp/public_html/wiki/includes/WebResponse.php on line 46

Warning: Cannot modify header information - headers already sent by (output started at /home/lfg/itchan.official.jp/public_html/wiki/includes/libs/rdbms/database/resultwrapper/ResultWrapper.php:24) in /home/lfg/itchan.official.jp/public_html/wiki/includes/WebResponse.php on line 46
http://itchan.official.jp/wiki/index.php?action=history&feed=atom&title=%E3%83%86%E3%83%B3%E3%83%97%E3%83%AC%E3%83%BC%E3%83%88%3ANavbox%2Fdoc テンプレート:Navbox/doc - 版の履歴 2026-03-25T12:27:12Z このウィキのこのページに関する変更履歴 MediaWiki 1.31.1
Deprecated: Creation of dynamic property PoolCounterWorkViaCallback::$poolCounter is deprecated in /home/lfg/itchan.official.jp/public_html/wiki/includes/poolcounter/PoolCounterWork.php on line 39

Deprecated: Creation of dynamic property PPDStack::$accum is deprecated in /home/lfg/itchan.official.jp/public_html/wiki/includes/parser/Preprocessor_DOM.php on line 845

Deprecated: Creation of dynamic property PPDStack::$accum is deprecated in /home/lfg/itchan.official.jp/public_html/wiki/includes/parser/Preprocessor_DOM.php on line 845
http://itchan.official.jp/wiki/index.php?title=%E3%83%86%E3%83%B3%E3%83%97%E3%83%AC%E3%83%BC%E3%83%88:Navbox/doc&diff=805&oldid=prev いんふぉ™: 1版 2014-03-17T00:06:51Z <p>1版</p> <table class="diff diff-contentalign-left" data-mw="interface"> <tr class="diff-title" lang="ja"> <td colspan="1" style="background-color: #fff; color: #222; text-align: center;">← 古い版</td> <td colspan="1" style="background-color: #fff; color: #222; text-align: center;">2014年3月17日 (月) 00:06時点における版</td> </tr><tr><td colspan="2" class="diff-notice" lang="ja"><div class="mw-diff-empty">(相違点なし)</div> </td></tr></table> いんふぉ™ http://itchan.official.jp/wiki/index.php?title=%E3%83%86%E3%83%B3%E3%83%97%E3%83%AC%E3%83%BC%E3%83%88:Navbox/doc&diff=804&oldid=prev Dr jimmy: 議論停止・終了のためテンプレート除去 2014-02-14T08:01:17Z <p>議論停止・終了のためテンプレート除去</p> <p><b>新規ページ</b></p><div>&lt;noinclude&gt;{{Documentation subpage}}&lt;/noinclude&gt;&lt;includeonly&gt;<br /> {{使用箇所の多いテンプレート|280,000以上}}<br /> {{複雑なテンプレート}}<br /> &lt;/includeonly&gt;<br /> {{Navbox suite}}<br /> <br /> このテンプレートを使えば、リンク先リストをつくるだけで[[Wikipedia:ナビゲーションテンプレート|ナビゲーション用テンプレート]]をかなり素早く作ることができるようになります。多くのナビゲーションテンプレートでそのまま使えるスタイルがデフォルトで提供されています。[[#スタイル(推奨しない)|デフォルトスタイルを変更する]]ことは可能ですが、推奨されていません。このテンプレートあるいは右の“&#039;&#039;&#039;Navbox一式&#039;&#039;&#039;”の姉妹テンプレートのいずれかを使うことが、ナビゲーション用テンプレートを標準化したり使いやすくしたりするために強く推奨されています。また、&lt;code&gt;|bodyclass=hlist&lt;/code&gt;を指定することにより、リストを&lt;nowiki&gt;*&lt;/nowiki&gt;(アスタリスク)を使っての[[Help:箇条書き|箇条書き]]で列挙することができます。<br /> <br /> == 使用法 ==<br /> グループ数が少ない場合など、使わないパラメータは消去してください。<br /> <br /> &lt;pre&gt;{{Navbox<br /> |name = {{subst:PAGENAME}}<br /> |listclass = hlist<br /> |state = <br /> |title = <br /> |image = <br /> |above = <br /> <br /> |group1 = <br /> |list1 = <br /> <br /> |group2 = <br /> |list2 = <br /> <br /> ...<br /> <br /> |group20 = <br /> |list20 = <br /> <br /> |below = <br /> }}&lt;/pre&gt;<br /> <br /> == パラメータ ==<br /> === 必須 ===<br /> :; &#039;&#039;name&#039;&#039;<br /> :: テンプレートの名前は、テンプレートが使われている全てのページで「表・話・編・歴」(&quot;表示・会話・編集・履歴&quot;)リンクが正しく機能するために必須です。値には&lt;code&gt;&lt;nowiki&gt;{{subst:PAGENAME}}&lt;/nowiki&gt;&lt;/code&gt;を用いると便利です。<br /> :; &#039;&#039;title&#039;&#039;<br /> :: 表の最上部中央に表示されるテキストです。通常はテンプレートの主題、つまり表本体の簡潔な説明です。これは一行でなければなりませんが、二行目が必要な場合は、センタリングが正しく行われる様、&lt;code&gt;&lt;nowiki&gt;{{-}}&lt;/nowiki&gt;&lt;/code&gt;を使ってください。<br /> : &#039;&#039;&#039;&#039;&#039;list&lt;sub&gt;n&lt;/sub&gt;&#039;&#039;&#039;&#039;&#039; (&#039;&#039;&#039;&#039;&#039;body&#039;&#039;&#039;&#039;&#039; may be used in place of &#039;&#039;&#039;&#039;&#039;list1&#039;&#039;&#039;&#039;&#039;)<br /> :: (&#039;&#039;list1&#039;&#039;、&#039;&#039;list2&#039;&#039;、など)テンプレート本体、通常はリンク先のリストです。書式はインラインですが、&lt;code&gt;&lt;nowiki&gt;&lt;div&gt; &lt;/div&gt;&lt;/nowiki&gt;&lt;/code&gt;でリスト全体を囲めば複数行での入力もできます。最低でも&#039;&#039;list&#039;&#039;パラメータは一つ必要です。以降の&#039;&#039;list&#039;&#039;は、それぞれ表の別の行に表示されます。 &#039;&#039;group&lt;sub&gt;n&lt;/sub&gt;&#039;&#039;パラメータが指定されていると、個々の &#039;&#039;list&lt;sub&gt;n&lt;/sub&gt;&#039;&#039; の前にそのグループが表示されます (下記参照)。<br /> <br /> === 任意 ===<br /> ==== セル ====<br /> :; &#039;&#039;group&lt;sub&gt;n&lt;/sub&gt;&#039;&#039;<br /> :: (&#039;&#039;group1&#039;&#039;、&#039;&#039;group2&#039;&#039;、など)指定されたテキストが&#039;&#039;list&lt;sub&gt;n&lt;/sub&gt;&#039;&#039;の左、ヘッダセルに表示されます。指定がなければ、&#039;&#039;list&lt;sub&gt;n&lt;/sub&gt;&#039;&#039;は表の全幅を使います。<br /> :; &#039;&#039;image&#039;&#039;<br /> :: タイトルバーの下、本体 (group/list) の右に指定された画像を表示します。&#039;&#039;list1&#039;&#039;の指定は適切な表示に必須です。画像の指定には、<br /> ::: &lt;code&gt;&lt;nowiki&gt;[[ファイル:Example.jpg|100px]]&lt;/nowiki&gt;&lt;code&gt;<br /> :: といった、画像表示に用いられる標準的ウィキコードを用います。<br /> :; &#039;&#039;imageleft&#039;&#039;<br /> :: タイトルバーの下、本体 (group/list) の左に指定された画像を表示します。&#039;&#039;list1&#039;&#039;の指定は適切な表示に必須です。画像の指定には、<br /> ::: &lt;code&gt;&lt;nowiki&gt;[[ファイル:Example.jpg|100px]]&lt;/nowiki&gt;&lt;code&gt;<br /> :: といった、画像表示に用いられる標準的ウィキコードを用います。<br /> :; &#039;&#039;above&#039;&#039;<br /> :: タイトルバーと最初の group/list との間、すなわちテンプレート本体(group、list または image)の &#039;&#039;above&#039;&#039; (上)に表示される全幅セルです。画像のないテンプレートの場合、&#039;&#039;above&#039;&#039;は&#039;&#039;group1&#039;&#039;パラメータなしの&#039;&#039;list1&#039;&#039;と同様に表示されます。&#039;&#039;above&#039;&#039; パラメータの使用例としては、{{tl|Navbox Musical artist}}による {{tl|ビートルズ}}、{{tl|サザンオールスターズ}} 、 {{tl|Navbox with columns}} による {{tl|アメリカ合衆国大統領}} 、{{tl|Navbox}}による {{tl|日本国憲法}} などがあります(2013年9月現在)。<br /> :; &#039;&#039;below&#039;&#039;<br /> :: テンプレート本体(group、list または image)の &#039;&#039;below&#039;&#039; (下)に表示される全幅セルです。画像のないテンプレートの場合、&#039;&#039;below&#039;&#039;は&#039;&#039;group&lt;sub&gt;n&lt;/sub&gt;&#039;&#039;パラメータなしの最後の&#039;&#039;list&lt;sub&gt;n&lt;/sub&gt;&#039;&#039;と同様に表示されます。&#039;&#039;below&#039;&#039; パラメータの使用例としては、{{tl|Navbox Musical artist}} による {{tl|ベートーヴェンの交響曲}} 、{{tl|Navbox}} による {{tl|イギリス国鉄の蒸気機関車}} 、 {{tl|日本国歴代内閣総理大臣}} などがあります(2013年9月現在)。<br /> <br /> ==== スタイル(推奨しない) ====<br /> ウィキペディア全体でテンプレートとページの一貫性を保つため、デフォルト以外のスタイルの使用は推奨できません。しかし、必要がある場合に備えスタイルを変更するオプションが用意されています。<br /> <br /> ===== デフォルトスタイル =====<br /> {{Seealso|MediaWiki:Common.css}}<br /> Navbox を使う際によく変更されるスタイルを示します。他の、よりこみいったスタイルは一覧を単純にするため示していません。<br /> <br /> : &lt;code&gt;bodystyle = background-color:#fdfdfd; width:100%; vertical-align:middle;&lt;/code&gt;<br /> : &lt;code&gt;titlestyle = background-color:#ccccff; padding-left:1em; padding-right:1em; text-align:center;&lt;/code&gt;<br /> : &lt;code&gt;abovestyle = background-color:#ddddff; padding-left:1em; padding-right:1em; text-align:center;&lt;/code&gt;<br /> : &lt;code&gt;belowstyle = background-color:#ddddff; padding-left:1em; padding-right:1em; text-align:center;&lt;/code&gt;<br /> : &lt;code&gt;groupstyle = background-color:#ddddff; padding-left:1em; padding-right:1em; text-align:right;&lt;/code&gt;<br /> : &lt;code&gt;liststyle = background:transparent; text-align:left/center;&lt;/code&gt;<br /> : &lt;code&gt;oddstyle = background:transparent;&lt;/code&gt;<br /> : &lt;code&gt;evenstyle = background-color:#f7f7f7;&lt;/code&gt;<br /> <br /> &#039;&#039;liststyle&#039;&#039; と &#039;&#039;oddstyle&#039;&#039; は透明なので、偶数行は &#039;&#039;bodystyle&#039;&#039; と同色、デフォルトでは白です。グループがなく、&lt;code&gt;text-align: center;&lt;/code&gt;が指定されていないリストは &lt;code&gt;text-align: left;&lt;/code&gt; です。&#039;&#039;bodystyle&#039;&#039; だけに垂直アライメントがあるので、他の要素は&lt;code&gt;vertical-align: middle;&lt;/code&gt;を継承します。<br /> <br /> ==== その他 ====<br /> :; &#039;&#039;state&#039;&#039; &lt;span style=&quot;font-weight: normal;&quot;&gt;[&lt;code&gt;autocollapse, collapsed, plain, off, uncollapsed&lt;/code&gt;]&lt;/span&gt;<br /> :* デフォルトは &lt;code&gt;autocollapse&lt;/code&gt; です。&lt;code&gt;autocollapse&lt;/code&gt; を設定すると、同一ページに折り畳み可能な表 ([隠す] リンクありの表、すなわち後述の &lt;code&gt;plain&lt;/code&gt;指定でも &lt;code&gt;off&lt;/code&gt;指定でもない表) が複数ある場合には折り畳んで初期表示されますが、それ以外の場合は展開した状態で初期表示されます。技術的詳細は[[MediaWiki:Common.js]]を御覧ください。<br /> :** 設定時に &lt;code&gt;autocollapse&#039;&#039;&#039;d&#039;&#039;&#039;&lt;/code&gt; と入力しないように注意してください。&lt;code&gt;autocollapse&#039;&#039;&#039;d&#039;&#039;&#039;&lt;/code&gt; とすると「&lt;code&gt;autocollapse&lt;/code&gt;, &lt;code&gt;collapsed&lt;/code&gt;, &lt;code&gt;plain&lt;/code&gt;, &lt;code&gt;off&lt;/code&gt; 以外の値」になってしまいます。<br /> :* &lt;code&gt;collapsed&lt;/code&gt; を設定すると、Navbox は折り畳んだ状態で初期表示されます。<br /> :* &lt;code&gt;plain&lt;/code&gt; を設定すると、Navbox は右端に [隠す] リンクなしで展開された状態で表示され、タイトルはセンタリングされます。<br /> :* &lt;code&gt;off&lt;/code&gt; を設定すると、Navbox は右端に [隠す] リンクなしで展開された状態で表示されますが、タイトルはセンタリングされません。これは上級者向けのオプションで、多くの場合 &lt;code&gt;plain&lt;/code&gt; の使用で十分です。<br /> :* &lt;code&gt;autocollapse&lt;/code&gt;, &lt;code&gt;collapsed&lt;/code&gt;, &lt;code&gt;plain&lt;/code&gt;, &lt;code&gt;off&lt;/code&gt; 以外の値(例: &lt;code&gt;uncollapsed&lt;/code&gt;)を設定すると、Navbox は [隠す] リンクありで展開された状態で初期表示されます。<br /> <br /> ::* 例: {{tl|建築}} のデフォルト状態は autocollapse です。 [[建築家]]には Navbox が1つしかないので、展開表示されます。一方、 [[都市計画]] では autocollapse な Navbox が複数使われているので、閉じた状態で表示されます。&lt;!-- テンプレートの使用状況が変わると例にならなくなるので時々チェックと差し替えが必要そうです。--&gt;<br /> ::* 初期状態をテンプレート作者の期待する Navbox の初期状態を記事で上書きできる様にする場合は、テンプレートに &quot;state&quot; という名前のパラメータを作成し、次の様にパススルーにします。<br /> ::* &lt;tt&gt;&lt;nowiki&gt;| state = {{{state&lt;includeonly&gt;|希望する初期状態&lt;/includeonly&gt;}}}&lt;/nowiki&gt;&lt;/tt&gt;<br /> &lt;!-- 対応するテンプレート及び記事が存在しないので訳出せず --&gt;<br /> &lt;!--<br /> ::* Example: {{tl|Historical currencies of Hungary}} with expanded as the default initial state. All transcluding articles shows the content by default, unless there were an hypothetical article that specifies state = collapsed when transcluding.<br /> --&gt;<br /> ::* &lt;nowiki&gt;&lt;includeonly&gt;|&lt;/nowiki&gt; により、テンプレート自身を表示する際には展開される様にできます。<br /> <br /> :; &#039;&#039;navbar&#039;&#039;<br /> :: デフォルトは &lt;code&gt;Tnavbar&lt;/code&gt; です。&lt;code&gt;plain&lt;/code&gt; を設定すると、タイトルバー左の {{Tnavbar|Navbox|mini=1|nodiv=1}} リンクは表示されません。<br /> <br /> :; &#039;&#039;border&#039;&#039;<br /> :: 指定可能な値には&lt;code&gt;child&lt;/code&gt;と&lt;code&gt;none&lt;/code&gt;があります。既定値は空白です。&lt;code&gt;child&lt;/code&gt;と指定するとテンプレート全体の罫線が非表示になります。任意のNavboxテンプレートを{{tl|Navbox subgroup}}のように別のNavboxテンプレート(親Navbox)の中におけるリストの一つをしてネストしたい場合に&lt;code&gt;child&lt;/code&gt;と指定し、親Navboxの&lt;code&gt;list&lt;/code&gt;の部分にテンプレートを置きます。{{tld|Navbox|child|...}}のように引数1に設定しても良い。<br /> <br /> :; &#039;&#039;titlegroup&#039;&#039;<br /> :: &#039;&#039;group&lt;sub&gt;n&lt;/sub&gt;&#039;&#039;セルと同じデフォルトスタイルのグループセルをタイトルの領域に挿入します。これは発展的なメタテンプレートのような例外的な状況でのみ使われるべきで、これを使う際には {{Tl|Navbox}} 内部のコードに関するいくつかの知識が必要ですが、もし使いたい場合は、全てにおいて正確に機能するために手動でCSSスタイルを設定するべきです。このパラメータの利用を考える場合は、あなた自身で変更するか、ノートページで始めに話し合ってください。<br /> <br /> == テーブルのレイアウト ==<br /> {{tl|Navbox}}を使い、&#039;&#039;image&#039;&#039;, &#039;&#039;above&#039;&#039; and &#039;&#039;below&#039;&#039; パラメータを&#039;&#039;&#039;指定せずに&#039;&#039;&#039;作成された表(境界は説明のために追加):<br /> {{Navbox<br /> |name = Navbox/doc<br /> |state = uncollapsed<br /> |groupstyle = border-style: inset; border-width: 2px;<br /> |liststyle = border-style: inset; border-width: 2px;<br /> |titlestyle = border-style: inset; border-width: 2px;<br /> |title = {{{title}}}<br /> |group1 = {{{group1}}}<br /> |list1 = {{{list1}}}<br /> |group2 = {{{group2}}}<br /> |list2 = {{{list2}}}<br /> |list3 = {{{list3}}} &#039;&#039;without {{{group3}}}&#039;&#039;<br /> |group4 = {{{group4}}}<br /> |list4 = {{{list4}}}<br /> }}<br /> <br /> {{tl|Navbox}}を使い、&#039;&#039;image&#039;&#039;, &#039;&#039;above&#039;&#039; and &#039;&#039;below&#039;&#039; パラメータを&#039;&#039;&#039;指定して&#039;&#039;&#039;作成された表(境界は説明のために追加):<br /> {{Navbox<br /> |name = Navbox/doc<br /> |state = uncollapsed<br /> |groupstyle = border-style: inset; border-width: 2px;<br /> |liststyle = border-style: inset; border-width: 2px;<br /> |titlestyle = border-style: inset; border-width: 2px;<br /> |abovestyle = border-style: inset; border-width: 2px;<br /> |belowstyle = border-style: inset; border-width: 2px;<br /> |image = {{{image}}}<br /> |title = {{{title}}}<br /> |above = {{{above}}}<br /> |group1 = {{{group1}}}<br /> |list1 = {{{list1}}}<br /> |group2 = {{{group2}}}<br /> |list2 = {{{list2}}}<br /> |list3 = {{{list3}}} &#039;&#039;without {{{group3}}}&#039;&#039;<br /> |group4 = {{{group4}}}<br /> |list4 = {{{list4}}}<br /> |below = {{{below}}}<br /> }}<br /> <br /> {{tl|Navbox}}を使い、&#039;&#039;image&#039;&#039;, &#039;&#039;imageleft&#039;&#039;, &#039;&#039;lists&#039;&#039;, and &#039;&#039;&#039;without&#039;&#039;&#039; &#039;&#039;groups&#039;&#039;, &#039;&#039;above&#039;&#039;, &#039;&#039;below&#039;&#039; パラメータを&#039;&#039;&#039;指定して&#039;&#039;&#039;作成された表:<br /> {{Navbox<br /> |name = Navbox/doc<br /> |state = uncollapsed<br /> |liststyle = border-style: inset; border-width: 2px;<br /> |titlestyle = border-style: inset; border-width: 2px;<br /> |image = {{{image}}}<br /> |imageleft = {{{imageleft}}}<br /> |title = {{{title}}}<br /> |list1 = {{{list1}}}<br /> |list2 = {{{list2}}}<br /> |list3 = {{{list3}}}<br /> |list4 = {{{list4}}}<br /> }}<br /> <br /> == 使用例 ==<br /> === 画像なし ===<br /> &lt;pre style=&quot;overflow: auto;&quot;&gt;<br /> {{Navbox<br /> | name = Navbox/doc<br /> | title = [[Multimedia Super Corridor|MSC Malaysia]]<br /> | listclass = hlist<br /> <br /> | group1 = Centre<br /> | list1 =<br /> * [[Cyberjaya]]<br /> <br /> | group2 = Area<br /> | list2 =<br /> * [[Klang Valley]]<br /> <br /> | group3 = Major landmarks<br /> | list3 =<br /> * [[Petronas Twin Towers]]<br /> * [[Kuala Lumpur Tower]]<br /> * [[Kuala Lumpur Sentral]]<br /> * [[Technology Park Malaysia]]<br /> * [[Putrajaya]]<br /> * [[Cyberjaya]]<br /> * [[Kuala Lumpur International Airport]]<br /> <br /> | group4 = Infrastructure<br /> | list4 =<br /> * [[Express Rail Link]]<br /> * [[KL-KLIA Dedicated Expressway]]<br /> <br /> | group5 = Prime applications<br /> | list5 =<br /> * [[EGovernment]]<br /> * [[MyKad]]<br /> }}<br /> &lt;/pre&gt;<br /> <br /> {{Navbox<br /> | name = Navbox/doc<br /> | state = uncollapsed<br /> | title = [[Multimedia Super Corridor|MSC Malaysia]]<br /> | listclass = hlist<br /> | group1 = Centre<br /> | list1 =<br /> * [[Cyberjaya]]<br /> | group2 = Area<br /> | list2 =<br /> * [[Klang Valley]]<br /> | group3 = Major landmarks<br /> | list3 =<br /> * [[Petronas Twin Towers]]<br /> * [[Kuala Lumpur Tower]]<br /> * [[Kuala Lumpur Sentral]]<br /> * [[Technology Park Malaysia]]<br /> * [[Putrajaya]]<br /> * [[Cyberjaya]]<br /> * [[Kuala Lumpur International Airport]]<br /> | group4 = Infrastructure<br /> | list4 =<br /> * [[Express Rail Link]]<br /> * [[KL-KLIA Dedicated Expressway]]<br /> | group5 = Prime applications<br /> | list5 =<br /> * [[EGovernment]]<br /> * [[MyKad]]<br /> }}<br /> <br /> === 画像あり、グループなし ===<br /> &lt;pre style=&quot;overflow: auto;&quot;&gt;<br /> {{Navbox<br /> | name = Navbox/doc<br /> | title = [[Multimedia Super Corridor|MSC Malaysia]]<br /> | listclass = hlist<br /> | image = [[File:Flag of Malaysia.svg|80px|link=|alt=]]<br /> <br /> | list1 =<br /> * [[Petronas Twin Towers]]<br /> * [[Kuala Lumpur Tower]]<br /> * [[Kuala Lumpur Sentral]]<br /> * [[Technology Park Malaysia]]<br /> * [[Putrajaya]]<br /> * [[Cyberjaya]]<br /> * [[Kuala Lumpur International Airport]]<br /> }}<br /> &lt;/pre&gt;<br /> <br /> {{Navbox<br /> | name = Navbox/doc<br /> | title = [[Multimedia Super Corridor|MSC Malaysia]]<br /> | listclass = hlist<br /> | image = [[File:Flag of Malaysia.svg|80px|link=|alt=]]<br /> | list1 =<br /> * [[Petronas Twin Towers]]<br /> * [[Kuala Lumpur Tower]]<br /> * [[Kuala Lumpur Sentral]]<br /> * [[Technology Park Malaysia]]<br /> * [[Putrajaya]]<br /> * [[Cyberjaya]]<br /> * [[Kuala Lumpur International Airport]]<br /> }}<br /> <br /> === 二画像、グループなし、複数リスト ===<br /> &lt;pre style=&quot;overflow: auto;&quot;&gt;<br /> {{Navbox<br /> | name = Navbox/doc<br /> | title = [[Multimedia Super Corridor|MSC Malaysia]]<br /> | listclass = hlist<br /> | image = [[File:Flag of Malaysia.svg|80px|link=|alt=]]<br /> | imageleft = [[File:Flag of Malaysia.svg|80px]]<br /> <br /> | list1 =<br /> * [[Petronas Twin Towers]]<br /> * [[Kuala Lumpur Tower]]<br /> * [[Kuala Lumpur Sentral]]<br /> <br /> | list2 =<br /> * [[Express Rail Link]]<br /> * [[KL-KLIA Dedicated Expressway]]<br /> <br /> | list3 =<br /> * [[EGovernment]]<br /> * [[MyKad]]<br /> <br /> | list4 =<br /> * [[Klang Valley]]<br /> }}<br /> &lt;/pre&gt;<br /> <br /> {{Navbox<br /> | name = Navbox/doc<br /> | title = [[Multimedia Super Corridor|MSC Malaysia]]<br /> | listclass = hlist<br /> | image = [[File:Flag of Malaysia.svg|80px|link=|alt=]]<br /> | imageleft = [[File:Flag of Malaysia.svg|80px]]<br /> | list1 =<br /> * [[Petronas Twin Towers]]<br /> * [[Kuala Lumpur Tower]]<br /> * [[Kuala Lumpur Sentral]]<br /> | list2 =<br /> * [[Express Rail Link]]<br /> * [[KL-KLIA Dedicated Expressway]]<br /> | list3 =<br /> * [[EGovernment]]<br /> * [[MyKad]]<br /> | list4 =<br /> * [[Klang Valley]]<br /> }}<br /> <br /> === 画像、グループ、above, below あり ===<br /> &lt;pre style=&quot;overflow: auto;&quot;&gt;<br /> {{Navbox<br /> | name = Navbox/doc<br /> | title = [[Multimedia Super Corridor|MSC Malaysia]]<br /> | listclass = hlist<br /> | above = Above text goes here<br /> | image = [[File:Flag of Malaysia.svg|80px|link=|alt=]]<br /> <br /> | group1 = Centre<br /> | list1 =<br /> * [[Cyberjaya]]<br /> <br /> | group2 = Area<br /> | list2 =<br /> * [[Klang Valley]]<br /> <br /> | group3 = Major landmarks<br /> | list3 =<br /> * [[Petronas Twin Towers]]<br /> * [[Kuala Lumpur Tower]]<br /> * [[Kuala Lumpur Sentral]]<br /> * [[Technology Park Malaysia]]<br /> * [[Putrajaya]]<br /> * [[Cyberjaya]]<br /> <br /> | group4 = Infrastructure<br /> | list4 =<br /> * [[Express Rail Link]]<br /> * [[KL-KLIA Dedicated Expressway]]<br /> <br /> | group5 = Prime applications<br /> | list5 =<br /> * [[EGovernment]]<br /> * [[MyKad]]<br /> <br /> | below = Website: {{URL|http://www.msc.com.my/}}<br /> }}<br /> &lt;/pre&gt;<br /> <br /> {{Navbox<br /> | name = Navbox/doc<br /> | title = [[Multimedia Super Corridor|MSC Malaysia]]<br /> | listclass = hlist<br /> | above = Above text goes here<br /> | image = [[File:Flag of Malaysia.svg|80px|link=|alt=]]<br /> | group1 = Centre<br /> | list1 =<br /> * [[Cyberjaya]]<br /> | group2 = Area<br /> | list2 =<br /> * [[Klang Valley]]<br /> | group3 = Major landmarks<br /> | list3 =<br /> * [[Petronas Twin Towers]]<br /> * [[Kuala Lumpur Tower]]<br /> * [[Kuala Lumpur Sentral]]<br /> * [[Technology Park Malaysia]]<br /> * [[Putrajaya]]<br /> * [[Cyberjaya]]<br /> | group4 = Infrastructure<br /> | list4 =<br /> * [[Express Rail Link]]<br /> * [[KL-KLIA Dedicated Expressway]]<br /> | group5 = Prime applications<br /> | list5 =<br /> * [[EGovernment]]<br /> * [[MyKad]]<br /> | below = Website: {{URL|http://www.msc.com.my/}}<br /> }}<br /> <br /> == 関連項目 ==<br /> * [[Wikipedia:ナビゲーションテンプレート]]<br /> * [[:Category:ナビゲーションテンプレート]]<br /> * [[:Category:メタテンプレート]]<br /> * [[WP:HLIST]]<br /> * [[Help:ダイナミック・ナビゲーション・ボックス]]<br /> <br /> {{Navigational templates}}<br /> &lt;includeonly&gt;<br /> {{pp-template}}<br /> <br /> [[Category:ナビゲーションテンプレート|*]]<br /> [[Category:メタテンプレート]]<br /> [[Category:Luaを利用するテンプレート]]<br /> &lt;/includeonly&gt;</div> Dr jimmy