Template:Sidebar/doc
右側に縦に表示するナビゲーションテンプレートを作成するためのメタテンプレートです。
| これはTemplate:Sidebarの解説サブページです。 使用方法、カテゴリ、およびその他テンプレートページ自体に含まれない情報を収容しています。 |
右側に縦に表示するナビゲーションテンプレートを作成するためのメタテンプレートです。
基本的な使用法
| {{{topimage}}} |
| {{{pretitle}}} |
| {{{title}}} |
|---|
| {{{image}}} |
| {{{above}}} |
| {{{heading1}}} |
| {{{content1}}} |
| {{{heading2}}} |
| {{{content2}}} |
| {{{heading3}}} |
| {{{content3}}} |
| ... |
| {{{below}}} |
あまり使われないパラメーターは除外
{{Sidebar
| name = {{subst:PAGENAME}}
| outertitle =
| topimage =
| pretitle =
| title =
| image =
| headingstyle =
| contentstyle =
| heading1 =
| content1 =
| heading2 =
| content2 =
| heading3 =
| content3 =
...
}}
パラメーター
{{navbar}}リンク(表・話・編)がサイドバー基底部に現れなければ、パラメーターは必要とされませんが、現れる場合、|name=パラメーターが必要です (すぐに以下のテーブルでエントリーを見てください)。
主要なもの
| パラメーター | 説明 |
|---|---|
|name=
|
サイドバー名、すなわちページ名においてTemplate:に続く名前。サイドバーの基底部に正確に機能する{{navbar}}のリンクのために必要。このフィールドには{{subst:PAGENAME}}を使用することがおすすめされます。 |
|outertitle=
|
サイドバーのすぐ上にサイドバーのタイトルを置くために使用。 |
|topimage=
|
サイドバーの上部に画像を置くために使用。すなわち含まれるどんな|title=よりも上部。完全なウィキ構文が予期されます(すなわち、 |
|pretitle=
|
タイトルの前に「Xシリーズの一部」などの行を置くのに使用。 |
|title=
|
サイドバー上部にサイドバーのタイトルを置くのに使用(使われる場合、|topimage=のすぐ下)。
|
|image=
|
(使われる場合)|title=と第一節の間に画像を置くのに使用。
|
|headingstyle=
|
節の見出しにセットされるデフォルトのCSSスタイルを修正するのに使用。 特定の節の見出しのCSSスタイルの修正には、 |
|contentstyle=
|
節の内容にセットされるデフォルトのCSSスタイルを修正するのに使用。 特定の節の内容のCSSスタイルの修正には, |
|heading1= |
最初の節の見出し (必要であれば)。 |
|content1= |
最初の節の内容 (必須)。 |
|heading2= |
第二節の見出し (必要であれば)。 |
|content2= |
第二節の内容 (必要であれば)。 |
|heading3= |
第三節の見出し (必要であれば)。 |
|content3= |
第三節の内容 (必要であれば)。 |
| ...... 以下同様 ...... | |
諸パラメーター
| パラメーター | 説明 |
|---|---|
|above=
|
{{navbox}}が提供する|above=に対応する。
|
|
一致するパラメーターへのマイクロフォーマットのクラス |
|below=
|
例えば、テンプレートの基底部に1つ以上のポータルリンクを追加するのに使用 (既定では太文字)。 |
|
一致するパラメーターのデフォルトのCSSスタイルを修正するのに使用。 |
|cellspacing=
|
サイドバーにビルドされたinfoboxクラスのテーブルにセットされたデフォルトのセルスペーシングを修正するのに使用。 |
|cellpadding=
|
Ditto the default cellpadding. |
|navbar=
|
(カギカッコ抜きで)「none」に設定すると、サイドバー基底部にあるナビゲーションバーのリンクを削除します。 |
|navbarfontstyle=
|
サイドバー基底部のnavbar が使用するフォントスタイルを明示するのに使用 (使用できるオプションは{{navbar}}を参照)。 |
長いリンクの制御
{{Normalwraplink}}はサイドバー内でラップするべき、さもなければサイドバーが幅広になりすぎないようにラップするようにする必要があるリンクを制御するために、使用できます。{{normalwraplink|longlinkname}}を使用します。|longlinknameは角括弧なしの長いリンクです。
|wraplinks=trueパラメーターを使用すると、テンプレート全体のためにリンクのラッピングをオフにします。
完全な構文
{{Sidebar
|name =
|class = <!--or bodyclass-->
|style = <!--or bodystyle-->
|cellspacing =
|cellpadding =
|sectdivider =
|outertitle =
|outertitleclass =
|outertitlestyle =
|topimage =
|topimageclass =
|topimagestyle =
|topcaption =
|topcaptionstyle =
|pretitle =
|pretitlestyle =
|title =
|titleclass =
|titlestyle =
|image =
|imageclass =
|imagestyle =
|caption =
|captionstyle =
|abovestyle =
|above =
|headingstyle =
|contentstyle =
|heading1style =
|heading1 =
|content1style =
|content1 =
|heading2style =
|heading2 =
|content2style =
|content2 =
|heading3style =
|heading3 =
|content3style =
|content3 =
<!--etc.-->
|belowstyle =
|below =
|navbar =
|navbarstyle =
|navbaroptions =
|wraplinks = true/false
}}
関連項目
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.