不詳 | |
---|---|
主要特徵
| |
第一 | 不詳 |
第二 | 不詳 |
第三 | 不詳 |
其它特徵
| |
以下是本模板的使用說明 |
---|
注意:以上模板可能有時會局部或完全不可見。 |
請到 Template:Infobox/doc 以對說明文件作出編輯。(如何運作?) |
簡介
本模板是個範例 Infobox ,旨於協助建立新的 Infobox 。
建議用法:複製代碼到新的模板頁,在該處進行編輯。
關於 Infobox 及模板
可參見 Help:Templates 、 Help:Infobox 及 Help:Tables 取得相關背景資料。
構成部分
Infobox是由以下部分組成:
- Overall table class:
class="wikia-infobox"
- Table heading cell class:
class="wikia-infobox-header"
- Use row header marks ("
!
") for row title cells (and "|
" for normal cells) - Section separator line: give the header below it a wrapping
div
withclass="wikia-infobox-section-header"
- Image cell class:
class="wikia-infobox-image"
- Image caption cell class:
class="wikia-infobox-caption"
其它事項
- 在這個範例infobox中,標題及第一至三行在沒有輸入資料下會顯示"不詳"。
- 圖片、圖片資訊、第四至六行在沒有輸入資料的情況下將不會顯示,因為它們包含在 'if' 。
代碼
{{infobox | title = | image = [例: "Example.jpg"] | imagewidth = [例: "150"] [預設值: 210 pixels] | imagecaption = | first = | second = | third = | fourth = | fifth = | sixth = }}
範例
{{infobox | title = A pretty flower | image = Example.jpg | imagewidth = 100 | imagecaption = Floweris flowerum | first = Pink and green | second = Outdoors | fourth = Annual }}
將顯示為...
A pretty flower | |
---|---|
![]() | |
Floweris flowerum | |
主要特徵
| |
第一 | Pink and green |
第二 | Outdoors |
第三 | 不詳 |
其它特徵
| |
第四 | Annual |