For faster navigation, this Iframe is preloading the Wikiwand page for 模板:Gallery2/doc.

模板:Gallery2/doc

概要

本模板与 ((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]]
))
((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]]
))

参见

{{bottomLinkPreText}} {{bottomLinkText}}
模板:Gallery2/doc
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?