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

羽井出 (トーク | 投稿記録)
編集の要約なし
銀河連邦 (トーク | 投稿記録)
編集の要約なし
 
(2人の利用者による、間の6版が非表示)
1行目: 1行目:
<div style="
<span class="desktop-only"><div style="
     display: grid;
     display: grid;
     grid-template-columns: {{#nomobile |1fr }} 1fr 1fr;
     grid-template-columns: {{{Desktop-columns|1fr 1fr 1fr}}};
    width: auto;
    margin: 3px;
">{{{Boxmenu|}}}</div></span>
<span class="mobile-only"><div style="
    display: grid;
    grid-template-columns: {{{Mobile-columns|1fr 1fr}}};
     width: 100%;
     width: 100%;
     margin: 5px;
     margin: 3px;
">{{{Boxmenu|}}}</div>
">{{{Boxmenu|}}}</div></span>
<noinclude>
<noinclude>
<templatedata>
<templatedata>
10行目: 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"
22行目: 28行目:
],
],
"description": "列の数だけスペース区切りで\"fr1\"を並べる(デスクトップ版のみ適用)。省略時は3列",
"description": "列の数だけスペース区切りで\"fr1\"を並べる(デスクトップ版のみ適用)。省略時は3列",
"example": "fr1 fr1 fr1",
"example": "1fr 1fr 1fr",
"type": "string"
"type": "string"
},
},
30行目: 36行目:
],
],
"description": "列の数だけスペース区切りで\"fr1\"を並べる(モバイル版のみ適用)。省略時は2列",
"description": "列の数だけスペース区切りで\"fr1\"を並べる(モバイル版のみ適用)。省略時は2列",
"example": "fr1 fr1",
"example": "1fr 1fr",
"type": "string"
"type": "string"
}
}