Template:Image array/doc

本模板使用之后能生成一个矩形图像阵列,通常放置在族群模板“{{Infobox ethnic group}}”中使用。

说明

  • “perrow”表示每一横排要显示的图像数量,如“perrow=4”,则会每一横排显示“4张图像”。
  • “width”表示图像的“宽度”,“height”表示图像的“高度”,系统自动添加单位“px”,无须再自行添加单位。

详细使用方法请参看下面的“示例”——“湖南人”。

基本参数

A 4x4 图像

{{image array|perrow = 4 |width=  |height= 
| image1 =   | caption1 =
| image2 =   | caption2 =
| image3 =   | caption3 =
| image4 =   | caption4 =
| image5 =   | caption5 =
| image6 =   | caption6 =
| image7 =   | caption7 =
| image8 =   | caption8 =
| image9 =   | caption9 =
| image10 =  | caption10 =
| image11 =  | caption11 =
| image12 =  | caption12 =
| image13 =  | caption13 =
| image14 =  | caption14 =
| image15 =  | caption15 =
| image16 =  | caption16 =
}}

A 5x5 图像

{{image array|perrow = 5 |width=  |height= 
| image1 =   | caption1 =
| image2 =   | caption2 =
| image3 =   | caption3 =
| image4 =   | caption4 =
| image5 =   | caption5 =
| image6 =   | caption6 =
| image7 =   | caption7 =
| image8 =   | caption8 =
| image9 =   | caption9 =
| image10 =  | caption10 =
| image11 =  | caption11 =
| image12 =  | caption12 =
| image13 =  | caption13 =
| image14 =  | caption14 =
| image15 =  | caption15 =
| image16 =  | caption16 =
| image17 =  | caption17 =
| image18 =  | caption18 =
| image19 =  | caption19 =
| image20 =  | caption20 =
| image21 =  | caption21 =
| image22 =  | caption22 =
| image23 =  | caption23 =
| image24 =  | caption24 =
| image25 =  | caption25 =
}}

A 5x6 图像

{{image array|perrow = 5 |width=  |height= 
| image1 =   | caption1 =
| image2 =   | caption2 =
| image3 =   | caption3 =
| image4 =   | caption4 =
| image5 =   | caption5 =
| image6 =   | caption6 =
| image7 =   | caption7 =
| image8 =   | caption8 =
| image9 =   | caption9 =
| image10 =  | caption10 =
| image11 =  | caption11 =
| image12 =  | caption12 =
| image13 =  | caption13 =
| image14 =  | caption14 =
| image15 =  | caption15 =
| image16 =  | caption16 =
| image17 =  | caption17 =
| image18 =  | caption18 =
| image19 =  | caption19 =
| image20 =  | caption20 =
| image21 =  | caption21 =
| image22 =  | caption22 =
| image23 =  | caption23 =
| image24 =  | caption24 =
| image25 =  | caption25 =
| image26 =  | caption26 =
| image27 =  | caption27 =
| image28 =  | caption28 =
| image29 =  | caption29 =
| image30 =  | caption30 =
}}

Embedding

要使页面显示简单的图像矩阵,请使用模板“{{Image frame}}”。

{{Image frame
| content = {{image array|perrow = 4
| image1 =   | caption1 =
| image2 =   | caption2 =
| image3 =   | caption3 =
| image4 =   | caption4 =
| image5 =   | caption5 =
| image6 =   | caption6 =
| image7 =   | caption7 =
| image8 =   | caption8 =
| image9 =   | caption9 =
| image10 =  | caption10 =
| image11 =  | caption11 =
| image12 =  | caption12 =
| image13 =  | caption13 =
| image14 =  | caption14 =
| image15 =  | caption15 =
| image16 =  | caption16 =
}}
}}

示例

  • 注:部分人物的图像没有显示,是因为没有“自由版权的图像”,故而使用“空缺图像”替代。
湖南人
總人口
湖南人
7119.34万
全国人口的5.15%
分佈地區
湖南省广东省(外出务工)
語言
普通话湘语
宗教信仰
汉传佛教道教基督教
相关族群
中国人·江西人·湖北人·广东人·重庆人
{{Infobox ethnic group
| group = 湖南人
| image =
{{image array|perrow=4|width=85|height=105
| image1  =| caption1 = [[毛泽东]]
| image2  = LiuShaoqi Colour.jpg| caption2 = [[刘少奇]]
| image3  = Huang xing.jpg| caption3 = [[黄兴]]
| image4  = Zeng Guofan.png| caption4 = [[曾国藩]]
| image5  = 李善蘭 黑白.jpg| caption5 = [[左宗棠]]
| image6  = GeneralQaoAoCampañaDeYunnan.jpg| caption6 = [[蔡锷]]
| image7  = He Long.jpg| caption7 = [[贺龙]]
| image8  = General Peng Dehuai.jpg| caption8 = [[彭德怀]]
| image9  = QuYuan.jpg| caption9 = [[屈原]]
| image10 = Wang Fuzhi.jpg| caption10 = [[王夫之]]
| image11 =| caption11 = [[沈从文]]
| image12 = The Soviet Union 1958 CPA 2116 stamp (Qi Baishi) cancelled.jpg| caption12 = [[齐白石]]
| image13 = Song Zuying East Meets West.jpg| caption13 = [[宋祖英]]
| image14 = Liao Fan Berlinale 2014.jpg| caption14 = [[廖凡]]
| image15 =| caption15 = [[周笔畅]]
| image16 = Li Guyi.jpg| caption16 = [[李谷一]]
| image17 = Replace this image male.svg| caption17 = [[熊倪]]
| image18 = Replace this image female.svg| caption18 = [[陆莉]]
| image19 = Replace this image male.svg| caption19 = [[周光召]]
| image20 = Replace this image male.svg| caption20 = [[袁隆平]]
}}
| poptime = '''湖南人''' <br/>7119.34万<br/> <small>全国人口的'''5.15%'''</small>
|-
|popplace = [[湖南省]]、[[广东省]](外出务工)
|langs    = [[普通话]]、[[湘语]]
|rels     = [[汉传佛教]]、[[道教]]、[[基督教]]
|related  = [[中国人]]{{·}}[[江西人]]{{·}}[[湖北人]]{{·}}[[广东人]]{{·}}[[重庆人]]
}}


参見