模板:Gallery

维基新闻,自由的新闻源
文档图示 模板文档[查看] [编辑] [历史] [清除缓存]

本模板最多支援显示30张图片。图片将会以表格方式由左至右排列。

选填参数[编辑]

  • title 图片艺廊的标题
  • width 设定图片显示的宽度,预设是180(px)。
  • height 设定图片显示的高度,预设是180(px)。
  • lines 图片说明的显示行数上限,预设是2。超过上限的说明内文会自动出现卷动按钮。
  • footer 在图片艺廊的右下角显示的注脚文字

使用方法[编辑]

{{Gallery
 | title  = 艺廊标题
 | footer = 注脚文字
 | width  = 150
 | height = 170
 | lines  = 2
 | File:Pigion052006.JPG|图片的说明
 | File:Pigion052006.JPG|
 | File:Pigion052006.JPG|
 | File:Pigion052006.JPG|
 | File:Pigion052006.JPG|
 | File:Pigion052006.JPG|
 | File:Pigion052006.JPG|
 | File:Pigion052006.JPG|
 | File:Pigion052006.JPG|图说部分也可支援[[Wikipedia:如何编辑页面|内部连结]]
 | File:Pigion052006.JPG|
 | File:Pigion052006.JPG|
 | File:Pigion052006.JPG|
 | File:Pigion052006.JPG|当说明内文超过指定的行数上限后,会自动出现滚动条。
 | File:Pigion052006.JPG|
}}

范例[编辑]

{{Gallery
|title=乔治华盛顿
|width=160
|height=170
|lines=4
|align=center
|File:Federal Hall NYC 27.JPG|alt1=Back of statue facing a city building whose facade is Greek columns covered by a huge U.S. flag|The statue of Washington outside [[Federal Hall]] in [[New York City]], looking on [[Wall Street]].
|File:Mount Rushmore2.jpg|alt2=Profile of stone face jutting out from a mountainside. Three workers clamber over it, each about the height of the face's upper lip.|Construction on the George Washington portrait at [[Mount Rushmore]], c. 1932.
|File:2006 Quarter Proof.png|alt3=Shiny silver coin with profile of Washington bust. He faces left regally and wears a colonial-style queue in his hair. "UNITED STATES OF AMERICA" is at top, "QUARTER DOLLAR" at bottom, "LIBERTY" at left, and "IN GOD WE TRUST" above "S" at right. Just below the bust is "JF uc" in tiny letters.|Washington is commemorated on the [[Quarter (United States coin)|quarter]].
|File:George Washington Presidential $1 Coin obverse.png|alt4=Gold coin with bust of Washington facing slightly left of but looking sternly straight at the viewer. "GEORGE WASHINGTON" is above, "1st PRESIDENT 1789–1797" below, and "JFM" in tiny letters at the bust's base.|Washington is also commemorated on some [[dollar coin (United States)|dollar coins]].
}}
Cultural depictions of George Washington
Back of statue facing a city building whose facade is Greek columns covered by a huge U.S. flag
The statue of Washington outside Federal Hall in New York City, looking on Wall Street.
The statue of Washington outside Federal Hall in New York City, looking on Wall Street
Profile of stone face jutting out from a mountainside. Three workers clamber over it, each about the height of the face's upper lip.
Construction on the George Washington portrait at Mount Rushmore, c. 1932.
Construction on the George Washington portrait at Mount Rushmore, c. 1932. 
Shiny silver coin with profile of Washington bust. He faces left regally and wears a colonial-style queue in his hair. "UNITED STATES OF AMERICA" is at top, "QUARTER DOLLAR" at bottom, "LIBERTY" at left, and "IN GOD WE TRUST" above "S" at right. Just below the bust is "JF uc" in tiny letters.
Washington is commemorated on the quarter.
Washington is commemorated on the quarter
Gold coin with bust of Washington facing slightly left of but looking sternly straight at the viewer. "GEORGE WASHINGTON" is above, "1st PRESIDENT 1789–1797" below, and "JFM" in tiny letters at the bust's base.
Washington is also commemorated on some dollar coins.
Washington is also commemorated on some dollar coins