コンテンツにスキップ

「Template:Physics navigation/sandbox」の版間の差分

削除された内容 追加された内容
m編集の要約なし
タグ: 2017年版ソースエディター
Cewbot (会話 | 投稿記録)
 
12行目: 12行目:
|-
|-
|
|
{| class="collapsible {{#ifeq: {{{Topic1|}}}|{{{cTopic}}}| | collapsed}}" style="width:100%; transition: all 600ms 0s ease;"
{| class="mw-collapsible {{#ifeq: {{{Topic1|}}}|{{{cTopic}}}| | collapsed}}" style="width:100%; transition: all 600ms 0s ease;"
!scope="col" style="position:sticky; top:0; text-align: left; background-color: #87cefa;"|{{{Topic1}}}
!scope="col" style="position:sticky; top:0; text-align: left; background-color: #87cefa;"|{{{Topic1}}}
|-style="line-height: 150%;"
|-style="line-height: 150%;"
|{{{Items1}}}
|{{{Items1}}}
|}{{#if:{{{Topic2|}}}|{{{!}} class="collapsible {{#ifeq: {{{Topic2|}}}|{{{cTopic}}}| | collapsed}}" style="width:100%"
|}{{#if:{{{Topic2|}}}|{{{!}} class="mw-collapsible {{#ifeq: {{{Topic2|}}}|{{{cTopic}}}| | collapsed}}" style="width:100%"
!scope="col" style="position:sticky; top:0; text-align: left; background-color: #87cefa;"{{!}}{{{Topic2}}}
!scope="col" style="position:sticky; top:0; text-align: left; background-color: #87cefa;"{{!}}{{{Topic2}}}
{{!}}-style="line-height: 150%;"
{{!}}-style="line-height: 150%;"
{{!}}{{{Items2}}}
{{!}}{{{Items2}}}
{{!}}}|}}{{#if:{{{Topic3|}}}|{{{!}} class="collapsible {{#ifeq: {{{Topic3|}}}|{{{cTopic}}}| | collapsed}}" style="width:100%"
{{!}}}|}}{{#if:{{{Topic3|}}}|{{{!}} class="mw-collapsible {{#ifeq: {{{Topic3|}}}|{{{cTopic}}}| | collapsed}}" style="width:100%"
!scope="col" style="position:sticky; top:0; text-align: left; background-color: #87cefa;"{{!}}{{{Topic3}}}
!scope="col" style="position:sticky; top:0; text-align: left; background-color: #87cefa;"{{!}}{{{Topic3}}}
{{!}}-style="line-height: 150%;"
{{!}}-style="line-height: 150%;"
{{!}}{{{Items3}}}
{{!}}{{{Items3}}}
{{!}}}|}}{{#if:{{{Topic4|}}}|{{{!}} class="collapsible {{#ifeq: {{{Topic4|}}}|{{{cTopic}}}| | collapsed}}" style="width:100%"
{{!}}}|}}{{#if:{{{Topic4|}}}|{{{!}} class="mw-collapsible {{#ifeq: {{{Topic4|}}}|{{{cTopic}}}| | collapsed}}" style="width:100%"
!scope="col" style="position:sticky; top:0; text-align: left; background-color: #87cefa;"{{!}}{{{Topic4}}}
!scope="col" style="position:sticky; top:0; text-align: left; background-color: #87cefa;"{{!}}{{{Topic4}}}
{{!}}-style="line-height: 150%;"
{{!}}-style="line-height: 150%;"
{{!}}{{{Items4}}}
{{!}}{{{Items4}}}
{{!}}}|}}{{#if:{{{Topic5|}}}|{{{!}} class="collapsible {{#ifeq: {{{Topic5|}}}|{{{cTopic}}}| | collapsed}}" style="width:100%"
{{!}}}|}}{{#if:{{{Topic5|}}}|{{{!}} class="mw-collapsible {{#ifeq: {{{Topic5|}}}|{{{cTopic}}}| | collapsed}}" style="width:100%"
!scope="col" style="position:sticky; top:0; text-align: left; background-color: #87cefa;"{{!}}{{{Topic5}}}
!scope="col" style="position:sticky; top:0; text-align: left; background-color: #87cefa;"{{!}}{{{Topic5}}}
{{!}}-style="line-height: 150%;"
{{!}}-style="line-height: 150%;"
{{!}}{{{Items5}}}
{{!}}{{{Items5}}}
{{!}}}|}}{{#if:{{{Topic6|}}}|{{{!}} class="collapsible {{#ifeq: {{{Topic6|}}}|{{{cTopic}}}| | collapsed}}" style="width:100%"
{{!}}}|}}{{#if:{{{Topic6|}}}|{{{!}} class="mw-collapsible {{#ifeq: {{{Topic6|}}}|{{{cTopic}}}| | collapsed}}" style="width:100%"
!scope="col" style="position:sticky; top:0; text-align: left; background-color: #87cefa;"{{!}}{{{Topic6}}}
!scope="col" style="position:sticky; top:0; text-align: left; background-color: #87cefa;"{{!}}{{{Topic6}}}
{{!}}-style="line-height: 150%;"
{{!}}-style="line-height: 150%;"
{{!}}{{{Items6}}}
{{!}}{{{Items6}}}
{{!}}}|}}{{#if:{{{Topic7|}}}|{{{!}} class="collapsible {{#ifeq: {{{Topic7|}}}|{{{cTopic}}}| | collapsed}}" style="width:100%"
{{!}}}|}}{{#if:{{{Topic7|}}}|{{{!}} class="mw-collapsible {{#ifeq: {{{Topic7|}}}|{{{cTopic}}}| | collapsed}}" style="width:100%"
!scope="col" style="position:sticky; top:0; text-align: left; background-color: #87cefa;"{{!}}{{{Topic7}}}
!scope="col" style="position:sticky; top:0; text-align: left; background-color: #87cefa;"{{!}}{{{Topic7}}}
{{!}}-style="line-height: 150%;"
{{!}}-style="line-height: 150%;"
{{!}}{{{Items7}}}
{{!}}{{{Items7}}}
{{!}}}|}}{{#if:{{{Topic8|}}}|{{{!}} class="collapsible {{#ifeq: {{{Topic8|}}}|{{{cTopic}}}| | collapsed}}" style="width:100%"
{{!}}}|}}{{#if:{{{Topic8|}}}|{{{!}} class="mw-collapsible {{#ifeq: {{{Topic8|}}}|{{{cTopic}}}| | collapsed}}" style="width:100%"
!scope="col" style="position:sticky; top:0; text-align: left; background-color: #87cefa;"{{!}}{{{Topic8}}}
!scope="col" style="position:sticky; top:0; text-align: left; background-color: #87cefa;"{{!}}{{{Topic8}}}
{{!}}-style="line-height: 150%;"
{{!}}-style="line-height: 150%;"
{{!}}{{{Items8}}}
{{!}}{{{Items8}}}
{{!}}}|}}{{#if:{{{Scientists|}}}|{{{!}} class="collapsible {{#if: {{{scientists|}}}| | collapsed}}" style="width:100%"
{{!}}}|}}{{#if:{{{Scientists|}}}|{{{!}} class="mw-collapsible {{#if: {{{scientists|}}}| | collapsed}}" style="width:100%"
!scope="col" style="position:sticky; top:0; text-align: left; background-color: #87cefa;"{{!}}科学者
!scope="col" style="position:sticky; top:0; text-align: left; background-color: #87cefa;"{{!}}科学者
{{!}}-style="line-height: 150%;"
{{!}}-style="line-height: 150%;"

2021年8月8日 (日) 22:54時点における最新版

[[{{{Name}}}]]
テンプレートの解説[表示] [編集] [履歴] [キャッシュを破棄]

物理学関係のサイドバーナビゲーションテンプレートを作成するためのメタテンプレートです。

{{Physics navigation
|Name       =
|Title      =
|Image      =
|Label      =
|KeyItems   =
|Topic1     =
|Items1     =
|Topic2     =
|Items2     =
  ...
|Topic8     =
|Items8     =
|Scientists =
}}

引数[編集]

必須[編集]

Name
テンプレートの名前を入力。テンプレートが使われている全てのページで「表・話・編・歴」("表示・会話・編集・履歴")リンクが正しく機能するために必須。値にはPhysics navigation/docを用いると便利。
Title
ボックス内の最上部に表示されるタイトルを入力。指定無き場合は"Name"の値が割り当てられる。
Topic1
1つ目のヘッダのタイトルを入力。
Items1
1つ目のリストに入れる内部リンク月記事名を入力。幅が大きくならないように<br \>で改行して調整し、記事名の間は{{·}}で区切る。

任意[編集]

Image
Titleの下に表示する画像をファイル名のみ入力。
Label
数式などを画像以外のを表示したい場合に使用。ImageとLabelは併用不可。
LabelId
ImageもしくはLabelの説明文。
KeyItems
最主要記事を内部リンク付きで入力。折りたたまれるリストではなく常に表示される。
Topic2
2つ目のヘッダのタイトルを入力。8つ(Topic2からTopic8まで)入力可能。
Items2
2つ目のリストに入れる内部リンク月記事名を入力。幅が大きくならないように<br \>で改行して調整し、記事名の間は{{·}}で区切る。
Scientists
この分野で最も貢献した科学者の記事名を内部リンク付きで入力。