模板:Gallery2
外观
概要
[编辑]本模板与 {{gallery}} 的不同在于,本模板可以提供更多参数来定制艺廊的显示效果。
使用方法
[编辑]{{Gallery2 | title = | align = | footer = | mode = | style = | state = | height = | width = | captionstyle = | File: | alt1= | 输入标题 | File: | alt2= | 输入标题 | File: | alt3= | 输入标题 | File: | alt4= | 输入标题 | File: | alt5= | 输入标题 }} |
参数
[编辑]用于每个图像
[编辑]|File:文件名
|altn=图像的替代文本
|标题
可选参数
[编辑]|title=
——艺廊标题|align=
——对齐方式:left(默认)、center、right,如果设置|state=
参数会被忽略|footer=
——注脚文字|style=
——CSS样式(参见帮助:层叠样式表)|state=
——设置折叠式艺廊的状态,可以是|state=expanded
或者|state=collapsed
|mode=
——设置显示模式,可以是|mode=packed
、|mode=nolines
下面参数用于所有图像
|height=
——设定图片显示高度的最大值,默认为180 px|width=
——设定图片显示宽度的最大值,默认为180 px|captionstyle=
——用于标题的CSS样式|noborder=
——用于取消图像周围的边框,输入 yes 即可
示例
[编辑]{{Gallery2 |title=Cultural depictions of George Washington |width=160 | height=170 |align=center |footer=Example 1 |File:Federal Hall NYC 27.JPG |alt1=Statue facing a city building with Greek columns and huge U.S. flag |Statue of Washington outside [[Federal Hall]] in [[New York City]], looking on [[Wall Street]] |File:Mount Rushmore2.jpg |alt2=Profile of stone face on mountainside, with 3 workers. |Construction of Washington portrait at [[Mount Rushmore]], c. 1932 |File:2006 Quarter Proof.png |alt3=Shiny silver coin with profile of Washington bust. |Washington is commemorated on a [[Quarter (United States coin)|quarter]]. |File:George Washington Presidential $1 Coin obverse.png |alt4=Gold coin with bust of Washington facing slightly left |Washington on a [[dollar coin (United States)|dollar coin]] }}
Cultural depictions of George Washington
-
Construction of Washington portrait at Mount Rushmore, c. 1932
-
Washington is commemorated on a quarter.
-
Washington on a dollar coin
{{Gallery2 |title=Cultural depictions of George Washington |width=120 |height=100 |align=center |footer=Example 2a |File:Federal Hall NYC 27.JPG |alt1=Statue facing a city building with Greek columns |Statue of Washington outside [[Federal Hall]] in [[New York City]], looking on [[Wall Street]] |File:Mount Rushmore2.jpg |alt2=Profile of stone face on mountainside, with 3 workers. |Work on Washington portrait at [[Mount Rushmore]], c. 1932 |File:2006 Quarter Proof.png |alt3=Shiny silver coin with profile of Washington bust. |Washington on a [[Quarter (United States coin)|quarter]] |File:United_States_one_dollar_bill,_obverse.jpg |alt4=Front side of U.S. dollar bill, with Washington portrait in center. |[[United States one-dollar bill|U.S. one-dollar bill]] |File:George Washington Presidential $1 Coin obverse.png |alt5=Gold coin with bust of Washington facing left |Washington on a [[dollar coin (United States)|dollar coin]] }}
Cultural depictions of George Washington
-
Work on Washington portrait at Mount Rushmore, c. 1932
-
Washington on a quarter
-
Washington on a dollar coin
Cultural depictions of George Washington
-
Work on Washington portrait at Mount Rushmore, c. 1932
-
Washington on a quarter
-
U.S. one-dollar bill – the caption here is still constrained by the width parameter.
-
Washington on a dollar coin
参见
[编辑]- {{Gallery}}
- {{Image array}}
- {{Multiple image}}
- {{Photomontage}}
- {{Image frame}}
- {{Scroll Gallery}}