コンテンツにスキップ

「テンプレート:Boxmenu grid」の版間の差分

提供:信号機Wiki
羽井出 (トーク | 投稿記録)
修正
銀河連邦 (トーク | 投稿記録)
編集の要約なし
 
(2人の利用者による、間の11版が非表示)
1行目: 1行目:
<nomobile>
<span class="desktop-only"><div style="
<div style="
     display: grid;
     display: grid;
     grid-template-columns: {{{Desktop-columns|1fr 1fr 1fr}}};
     grid-template-columns: {{{Desktop-columns|1fr 1fr 1fr}}};
     width: auto;
     width: auto;
     margin: 5px;
     margin: 3px;
">{{{Boxmenu|}}}</div>
">{{{Boxmenu|}}}</div></span>
</nomobile>
<span class="mobile-only"><div style="
<mobileonly>
<div style="
     display: grid;
     display: grid;
     grid-template-columns: {{{Mobile-columns|1fr 1fr}}};
     grid-template-columns: {{{Mobile-columns|1fr 1fr}}};
     width: 100%;
     width: 100%;
     margin: 5px;
     margin: 3px;
">{{{Boxmenu|}}}</div>
">{{{Boxmenu|}}}</div></span>
</mobileonly>
<noinclude>
<noinclude>
<templatedata>
<templatedata>
20行目: 16行目:
"params": {
"params": {
"Boxmenu": {
"Boxmenu": {
"description": "並べたい全てのBoxmenu要素",
"description": "並べたい全てのBoxmenu要素を{{Boxmenu|...}}の形式で入力してください。",
"example": "{{Boxmenu|画像=疑似点灯例.JPG|ヘッダー=[[:カテゴリ:灯器|灯器]]|説明=信号灯器に関するカテゴリです。}} {{Boxmenu...",
"example": "{{Boxmenu|画像=疑似点灯例.JPG|ヘッダー=[[:カテゴリ:灯器|灯器]]|説明=信号灯器に関するカテゴリです。}} {{Boxmenu|...}}",
"type": "unknown",
"type": "content",
"aliases": [
"aliases": [
"1"
"1"
32行目: 28行目:
],
],
"description": "列の数だけスペース区切りで\"fr1\"を並べる(デスクトップ版のみ適用)。省略時は3列",
"description": "列の数だけスペース区切りで\"fr1\"を並べる(デスクトップ版のみ適用)。省略時は3列",
"example": "fr1 fr1 fr1",
"example": "1fr 1fr 1fr",
"type": "string"
"type": "string"
},
},
40行目: 36行目:
],
],
"description": "列の数だけスペース区切りで\"fr1\"を並べる(モバイル版のみ適用)。省略時は2列",
"description": "列の数だけスペース区切りで\"fr1\"を並べる(モバイル版のみ適用)。省略時は2列",
"example": "fr1 fr1",
"example": "1fr 1fr",
"type": "string"
"type": "string"
}
}

2025年9月6日 (土) 15:37時点における最新版

Boxmenuをグリッドレイアウトで並べるテンプレート

テンプレートパラメーター[テンプレートデータを編集]

パラメーター説明状態
BoxmenuBoxmenu 1

並べたい全てのBoxmenu要素を{{Boxmenu|...}}の形式で入力してください。

{{Boxmenu|画像=疑似点灯例.JPG|ヘッダー=[[:カテゴリ:灯器|灯器]]|説明=信号灯器に関するカテゴリです。}} {{Boxmenu|...}}
内容省略可能
Desktop-columnsDesktop-columns 2

列の数だけスペース区切りで"fr1"を並べる(デスクトップ版のみ適用)。省略時は3列

1fr 1fr 1fr
文字列省略可能
Mobile-columnsMobile-columns 3

列の数だけスペース区切りで"fr1"を並べる(モバイル版のみ適用)。省略時は2列

1fr 1fr
文字列省略可能