「テンプレート:Navbox subgroup」の版間の差分

提供: スーパーロボット大戦Wiki
ナビゲーションに移動 検索に移動
1行目: 1行目:
<includeonly>{{Navbox
+
<noinclude>
|name = {{{name|}}}
 
|state = {{{state|}}}
 
|navbar = {{{navbar|}}}
 
|border = {{#if:{{{border|}}}|{{{border}}}|child}}
 
|nowraplinks = {{{nowraplinks|}}}
 
 
 
|title = {{{title|}}}
 
|above = {{{above|}}}
 
|below = {{{below|}}}
 
|image = {{{image|}}}
 
|imageleft = {{{imageleft|}}}
 
|groupwidth = {{{groupwidth|}}}
 
 
 
|group1 = {{#if:{{{group1|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group1}}}</div>}}
 
|group2 = {{#if:{{{group2|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group2}}}</div>}}
 
|group3 = {{#if:{{{group3|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group3}}}</div>}}
 
|group4 = {{#if:{{{group4|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group4}}}</div>}}
 
|group5 = {{#if:{{{group5|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group5}}}</div>}}
 
|group6 = {{#if:{{{group6|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group6}}}</div>}}
 
|group7 = {{#if:{{{group7|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group7}}}</div>}}
 
|group8 = {{#if:{{{group8|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group8}}}</div>}}
 
|group9 = {{#if:{{{group9|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group9}}}</div>}}
 
|group10 = {{#if:{{{group10|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group10}}}</div>}}
 
|group11 = {{#if:{{{group11|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group11}}}</div>}}
 
|group12 = {{#if:{{{group12|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group12}}}</div>}}
 
|group13 = {{#if:{{{group13|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group13}}}</div>}}
 
|group14 = {{#if:{{{group14|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group14}}}</div>}}
 
|group15 = {{#if:{{{group15|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group15}}}</div>}}
 
|group16 = {{#if:{{{group16|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group16}}}</div>}}
 
|group17 = {{#if:{{{group17|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group17}}}</div>}}
 
|group18 = {{#if:{{{group18|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group18}}}</div>}}
 
|group19 = {{#if:{{{group19|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group19}}}</div>}}
 
|group20 = {{#if:{{{group20|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group20}}}</div>}}
 
|group21 = {{#if:{{{group21|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group21}}}</div>}}
 
|group22 = {{#if:{{{group22|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group22}}}</div>}}
 
|group23 = {{#if:{{{group23|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group23}}}</div>}}
 
|group24 = {{#if:{{{group24|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group24}}}</div>}}
 
|group25 = {{#if:{{{group25|}}}|<div style="padding:{{{grouppadding|0em 0.75em;}}}">{{{group25}}}</div>}}
 
 
 
|list1 = {{{list1|}}}
 
|list2 = {{{list2|}}}
 
|list3 = {{{list3|}}}
 
|list4 = {{{list4|}}}
 
|list5 = {{{list5|}}}
 
|list6 = {{{list6|}}}
 
|list7 = {{{list7|}}}
 
|list8 = {{{list8|}}}
 
|list9 = {{{list9|}}}
 
|list10 = {{{list10|}}}
 
|list11 = {{{list11|}}}
 
|list12 = {{{list12|}}}
 
|list13 = {{{list13|}}}
 
|list14 = {{{list14|}}}
 
|list15 = {{{list15|}}}
 
|list16 = {{{list16|}}}
 
|list17 = {{{list17|}}}
 
|list18 = {{{list18|}}}
 
|list19 = {{{list19|}}}
 
|list20 = {{{list20|}}}
 
|list21 = {{{list21|}}}
 
|list22 = {{{list22|}}}
 
|list23 = {{{list23|}}}
 
|list24 = {{{list24|}}}
 
|list25 = {{{list25|}}}
 
 
 
|bodyclass = {{{bodyclass|}}}
 
|titleclass = {{{titleclass|}}}
 
|aboveclass = {{{aboveclass|}}}
 
|belowclass = {{{belowclass|}}}
 
|groupclass = {{{groupclass|}}}
 
|listclass = {{{listclass|}}}
 
 
 
|style = {{{style|}}}{{{bodystyle|}}}
 
|imageleftstyle = {{{imageleftstyle|}}}
 
|imagestyle = {{{imagestyle|}}}
 
|titlestyle = {{{titlestyle|}}}
 
|basestyle = {{{basestyle|}}}
 
|abovestyle = {{{abovestyle|}}}
 
|belowstyle = {{{belowstyle|}}}
 
|groupstyle = padding-left:0em;padding-right:0em;{{{groupstyle|}}}
 
|liststyle = {{{liststyle|}}}
 
|evenstyle = {{{evenstyle|}}}
 
|oddstyle = {{{oddstyle|}}}
 
 
 
|group1style = {{{group1style|}}}
 
|group2style = {{{group2style|}}}
 
|group3style = {{{group3style|}}}
 
|group4style = {{{group4style|}}}
 
|group5style = {{{group5style|}}}
 
|group6style = {{{group6style|}}}
 
|group7style = {{{group7style|}}}
 
|group8style = {{{group8style|}}}
 
|group9style = {{{group9style|}}}
 
|group10style = {{{group10style|}}}
 
|group11style = {{{group11style|}}}
 
|group12style = {{{group12style|}}}
 
|group13style = {{{group13style|}}}
 
|group14style = {{{group14style|}}}
 
|group15style = {{{group15style|}}}
 
|group16style = {{{group16style|}}}
 
|group17style = {{{group17style|}}}
 
|group18style = {{{group18style|}}}
 
|group19style = {{{group19style|}}}
 
|group20style = {{{group20style|}}}
 
|group21style = {{{group21style|}}}
 
|group22style = {{{group22style|}}}
 
|group23style = {{{group23style|}}}
 
|group24style = {{{group24style|}}}
 
|group25style = {{{group25style|}}}
 
 
 
|list1style = {{{list1style|}}}
 
|list2style = {{{list2style|}}}
 
|list3style = {{{list3style|}}}
 
|list4style = {{{list4style|}}}
 
|list5style = {{{list5style|}}}
 
|list6style = {{{list6style|}}}
 
|list7style = {{{list7style|}}}
 
|list8style = {{{list8style|}}}
 
|list9style = {{{list9style|}}}
 
|list10style = {{{list10style|}}}
 
|list11style = {{{list11style|}}}
 
|list12style = {{{list12style|}}}
 
|list13style = {{{list13style|}}}
 
|list14style = {{{list14style|}}}
 
|list15style = {{{list15style|}}}
 
|list16style = {{{list16style|}}}
 
|list17style = {{{list17style|}}}
 
|list18style = {{{list18style|}}}
 
|list19style = {{{list19style|}}}
 
|list20style = {{{list20style|}}}
 
|list21style = {{{list21style|}}}
 
|list22style = {{{list22style|}}}
 
|list23style = {{{list23style|}}}
 
|list24style = {{{list24style|}}}
 
|list25style = {{{list25style|}}}
 
 
 
 
 
|{{#if:{{{evenodd|}}}|evenodd|void}} = {{{evenodd|}}}
 
|{{#if:{{{listpadding|}}}|listpadding|void}} = {{{listpadding|}}}
 
 
 
}}</includeonly><noinclude>
 
 
== 概要 ==
 
== 概要 ==
 
以下の図に示すように、
 
以下の図に示すように、

2016年2月20日 (土) 09:33時点における版

概要

以下の図に示すように、

  • 比較的短く単純なコードで、サブグループを持つナビゲーション用テンプレートを作ることができます。
  • 色などのデザインは、MediaWiki:Common.cssで一括して設定することができます。

図:navbox_subgroup_example.png

詳細はWikipedia「Template:Navbox subgroup」をご参照ください。

サンプル

{{Navbox
| name   = バンプレストオリジナル
| title  = [[バンプレストオリジナル]]
| group1 = 作品
| list1  = 
  {{Navbox subgroup
    |group1 = [[OGシリーズ]]
    |list1  =  [[スーパーロボット大戦 ORIGINAL GENERATION|ORIGINAL GENERATION]] - [[スーパーロボット大戦 ORIGINAL GENERATION2|ORIGINAL GENERATION2]] - [[スーパーロボット大戦 ORIGINAL GENERATIONS|ORIGINAL GENERATIONS]] - [[スーパーロボット大戦OG外伝|OG外伝]] - [[第2次スーパーロボット大戦OG|第2次OG]]
    |group2 = [[魔装機神シリーズ]]
    |list2  = [[スーパーロボット大戦外伝 魔装機神 THE LORD OF ELEMENTAL|魔装機神I]]([[スーパーロボット大戦OGサーガ 魔装機神 THE LORD OF ELEMENTAL|OGサーガ 魔装機神I]]) - [[スーパーロボット大戦OGサーガ 魔装機神II REVELATION OF EVIL GOD|魔装機神II]] - [[真・魔装機神 PANZER WARFARE|真・魔装機神]]
  }}
}}