This is the template test cases page for the sandbox of Template:Gallery. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
Washington
edit{{Gallery |title=Cultural depictions of George Washington |width=170 |height=160 |noborder=yes |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]]. }}
{{Gallery}}
-
Construction on the George Washington portrait at Mount Rushmore, c. 1932.
-
Washington is commemorated on the quarter.
-
Washington is also commemorated on some dollar coins.
{{Gallery/sandbox}}
-
Construction on the George Washington portrait at Mount Rushmore, c. 1932.
-
Washington is commemorated on the quarter.
-
Washington is also commemorated on some dollar coins.
<gallery>...</gallery>
-
Construction on the George Washington portrait at Mount Rushmore, c. 1932.
-
Washington is commemorated on the quarter.
-
Washington is also commemorated on some dollar coins.
Footer
edit{{Gallery |title=Cultural depictions of George Washington |width=170 |height=160 |footer=Footer test: The quick brown fox jumps over the lazy doge. |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. }}
{{Gallery}}
-
Construction on the George Washington portrait at Mount Rushmore, c. 1932.
{{Gallery/sandbox}}
-
Construction on the George Washington portrait at Mount Rushmore, c. 1932.
CSS
edit{{Gallery |title=Cultural depictions of George Washington |width=170 |height=160 |style=background:red;color:white; |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. }}
{{Gallery}}
-
Construction on the George Washington portrait at Mount Rushmore, c. 1932.
{{Gallery/sandbox}}
-
Construction on the George Washington portrait at Mount Rushmore, c. 1932.
<gallery>...</gallery>
-
Construction on the George Washington portrait at Mount Rushmore, c. 1932.
no width
edit{{Gallery |title=Cultural depictions of George Washington |height=160 |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]]. }}
{{Gallery}}
-
Construction on the George Washington portrait at Mount Rushmore, c. 1932.
-
Washington is commemorated on the quarter.
-
Washington is also commemorated on some dollar coins.
{{Gallery/sandbox}}
-
Construction on the George Washington portrait at Mount Rushmore, c. 1932.
-
Washington is commemorated on the quarter.
-
Washington is also commemorated on some dollar coins.
width
edit{{Gallery |title=Cultural depictions of George Washington |width=100 |height=160 |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]]. }}
{{Gallery}}
-
Construction on the George Washington portrait at Mount Rushmore, c. 1932.
-
Washington is commemorated on the quarter.
-
Washington is also commemorated on some dollar coins.
{{Gallery/sandbox}}
-
Construction on the George Washington portrait at Mount Rushmore, c. 1932.
-
Washington is commemorated on the quarter.
-
Washington is also commemorated on some dollar coins.
Per-image width
edit{{Gallery |title=Cultural depictions of George Washington |width=120 |height=100 |align=center |footer=Example 2 |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]]. }}
{{Gallery}}
-
Work on Washington portrait at Mount Rushmore, c. 1932.
-
Washington on a quarter.
-
Washington on a dollar coin.
{{Gallery/sandbox}}
-
Work on Washington portrait at Mount Rushmore, c. 1932.
-
Washington on a quarter.
-
Washington on a dollar coin.
Line-breaks around image names
edit{{Gallery |title=Cultural depictions of George Washington |width=170 |height=160 |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]]. }}
{{Gallery}}
-
Construction on the George Washington portrait at Mount Rushmore, c. 1932.
-
Washington is commemorated on the quarter.
-
Washington is also commemorated on some dollar coins.
{{Gallery/sandbox}}
-
Construction on the George Washington portrait at Mount Rushmore, c. 1932.
-
Washington is commemorated on the quarter.
-
Washington is also commemorated on some dollar coins.
Too-narrow width
edit{{Gallery |title=Cultural depictions of George Washington |width=20 |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]]. }}
{{Gallery}}
-
Construction on the George Washington portrait at Mount Rushmore, c. 1932.
-
Washington is commemorated on the quarter.
-
Washington is also commemorated on some dollar coins.
{{Gallery/sandbox}}
-
Construction on the George Washington portrait at Mount Rushmore, c. 1932.
-
Washington is commemorated on the quarter.
-
Washington is also commemorated on some dollar coins.
Too-narrow width
edit{{Gallery |title=Cultural depictions of George Washington |width=20 |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|<div>The statue of Washington outside [[Federal Hall]] in [[New York City]], looking on [[Wall Street]].</div> |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.|<div>Construction on the George Washington portrait at [[Mount Rushmore]], c. 1932.</div> |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]]. }}
{{Gallery}}
-
-
Construction on the George Washington portrait at Mount Rushmore, c. 1932.
-
Washington is commemorated on the quarter.
-
Washington is also commemorated on some dollar coins.
{{Gallery/sandbox}}
-
-
Construction on the George Washington portrait at Mount Rushmore, c. 1932.
-
Washington is commemorated on the quarter.
-
Washington is also commemorated on some dollar coins.
No title
edit{{Gallery |width=170 |height=160 |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. }}
{{Gallery}}
-
Construction on the George Washington portrait at Mount Rushmore, c. 1932.
{{Gallery/sandbox}}
-
Construction on the George Washington portrait at Mount Rushmore, c. 1932.
No white background
edit{{Gallery |width=170 |height=160 |noborder=yes |whitebg=no |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 |Washington is commemorated on a [[Quarter (United States coin)|quarter]]. |File:George Washington Presidential $1 Coin obverse.png |Washington on a [[dollar coin (United States)|dollar coin]] }}
{{Gallery}}
-
Construction on the George Washington portrait at Mount Rushmore, c. 1932.
-
Washington is commemorated on a quarter.
-
Washington on a dollar coin
{{Gallery/sandbox}}
-
Construction on the George Washington portrait at Mount Rushmore, c. 1932.
-
Washington is commemorated on a quarter.
-
Washington on a dollar coin
No images
edit{{Gallery |width=170 |height=160 |title=Cultural depictions of George Washington }}
{{Gallery}}
{{Gallery/sandbox}}
Empty file names
edit{{Gallery |title=Cultural depictions of George Washington |width=170 |height=160 |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]]. ||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]]. ||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]]. }}
{{Gallery}}
-
Washington is commemorated on the quarter.
{{Gallery/sandbox}}
-
Washington is commemorated on the quarter.
Borders
edit{{Gallery |title=Cultural depictions of George Washington |width=170 |height=160 |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]].|noborder3= |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]]. }}
{{Gallery}}
-
Construction on the George Washington portrait at Mount Rushmore, c. 1932.
-
Washington is commemorated on the quarter.
-
Washington is also commemorated on some dollar coins.
{{Gallery/sandbox}}
-
Construction on the George Washington portrait at Mount Rushmore, c. 1932.
-
Washington is commemorated on the quarter.
-
Washington is also commemorated on some dollar coins.
Single image
edit{{Gallery |width=100 |height=120 |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|<small>A statue of Washington</small> }}
{{Gallery}}
{{Gallery/sandbox}}
<gallery>...</gallery>
-
A statue of Washington
Standard image syntax
Aligning
editMain template
editNon-aligned
Left-aligned
Right-aligned
-
Galinha à Africana
-
Galinha à Portuguesa
-
Pastéis de nata
-
Pato de cabidela
-
Pork chop bun
-
Apricot kernel biscuit
-
The Macau ginger milk curd resembles this Hong Kong ginger milk curd.
Center-aligned
Sandbox
editNon-aligned
Left-aligned
Right-aligned
-
Galinha à Africana
-
Galinha à Portuguesa
-
Pastéis de nata
-
Pato de cabidela
-
Pork chop bun
-
Apricot kernel biscuit
-
The Macau ginger milk curd resembles this Hong Kong ginger milk curd.
Center-aligned
Larger gallery with different height captions
edit{{Gallery <!-- |title= --> |width=140 | height=170 |align=left <!-- |footer= --> | File:HMAS Stuart 1984 DF-ST-85-06920.jpg | [[Royal Australian Navy]] ensign (foreground), Royal Australian Navy jack (background) | File:Air Force Ensign of Australia.svg | [[Royal Australian Air Force Ensign]] | File:Flag of Finnish yacht clubs.svg | [[List of flags of Finland#Yachting|Finnish yacht club ensign]]. The circled X represents the club [[emblem]] | File:Naval Ensign of India.svg | [[Indian Navy]] Ensign | File:Naval Ensign of Italy.svg | Naval ensign of [[Italian Navy|Italy]] |File:Naval Ensign of Japan.svg | Naval ensign of the [[Imperial Japanese Navy]] and the [[Japan Maritime Self-Defense Force]] | File:0906 Bandera Marynarki Wojennej RP ORP Toruń.jpg | [[Polish Navy]] ensign | File:Naval Ensign of Russia.svg | [[Russian Navy Ensign|Ensign]] of the [[Russian Navy]] | File:Naval Jack of Russia.svg | Naval Jack of Russia | File:Bandera yate.png | Spanish [[yacht ensign]] | File:Naval Ensign of Sri Lanka.svg | Naval ensign of [[Sri Lanka Navy|Sri Lanka]] | File:Naval Ensign of Ukraine.svg | [[Ukrainian Navy]] ensign | File:Civil Ensign of the United Kingdom.svg | The [[Red Ensign]] as currently used for British civilian vessels | File:Ensign of the United States Coast Guard.svg | [[United States Coast Guard]] ensign }}
{{Gallery}}
-
Royal Australian Navy ensign (foreground), Royal Australian Navy jack (background)
-
Finnish yacht club ensign. The circled X represents the club emblem
-
Indian Navy Ensign
-
Naval ensign of Italy
-
Naval ensign of the Imperial Japanese Navy and the Japan Maritime Self-Defense Force
-
Polish Navy ensign
-
Ensign of the Russian Navy
-
Naval Jack of Russia
-
Spanish yacht ensign
-
Naval ensign of Sri Lanka
-
Ukrainian Navy ensign
-
The Red Ensign as currently used for British civilian vessels
-
United States Coast Guard ensign
{{Gallery/sandbox}}
-
Royal Australian Navy ensign (foreground), Royal Australian Navy jack (background)
-
Finnish yacht club ensign. The circled X represents the club emblem
-
Indian Navy Ensign
-
Naval ensign of Italy
-
Naval ensign of the Imperial Japanese Navy and the Japan Maritime Self-Defense Force
-
Polish Navy ensign
-
Ensign of the Russian Navy
-
Naval Jack of Russia
-
Spanish yacht ensign
-
Naval ensign of Sri Lanka
-
Ukrainian Navy ensign
-
The Red Ensign as currently used for British civilian vessels
-
United States Coast Guard ensign
<gallery>...</gallery>
-
Royal Australian Navy ensign (foreground), Royal Australian Navy jack (background)
-
Finnish yacht club ensign. The circled X represents the club emblem
-
Indian Navy Ensign
-
Naval ensign of Italy
-
Naval ensign of the Imperial Japanese Navy and the Japan Maritime Self-Defense Force
-
Polish Navy ensign
-
Ensign of the Russian Navy
-
Naval Jack of Russia
-
Spanish yacht ensign
-
Naval ensign of Sri Lanka
-
Ukrainian Navy ensign
-
The Red Ensign as currently used for British civilian vessels
-
United States Coast Guard ensign
Centering using style parameter
editstyle=margin:auto works for a single line (although if you shrink the window, the gallery switches to left-aligned)
edit{{Gallery|Image:Cleland Mausoleum.jpg|The Cleland Mausoleum |Image:Dundonald 2.jpg|Aerial view of Dundonald |Image:Presbyterian Church, Dundonald.JPG|Former National School |style=margin:auto |width=135}}
{{Gallery}}
{{Gallery/sandbox}}
style=margin:auto works for multiple lines with perrow=
edit{{Gallery|File:Pintoricchio_014.jpg| [[Pope Pius II]] |File:Georg_Wilhelm_Friedrich_Hegel00.jpg| [[Georg Wilhelm Friedrich Hegel]] |File:Dmitri_Ivanowitsh_Mendeleev.jpg| [[Dmitri Mendeleev]] |File:Max Weber, 1918.jpg| [[Max Weber]] |File:Hirata Tosuke (cropped).jpg|[[Hirata Tosuke]] |File:Helmut Kohl (1996) cropped.jpg| [[Helmut Kohl]] |perrow=2 |style=margin:auto |width=135}}
{{Gallery}}
{{Gallery/sandbox}}
align=center works for multiple lines with perrow=
edit{{Gallery|File:Pintoricchio_014.jpg| [[Pope Pius II]] |File:Georg_Wilhelm_Friedrich_Hegel00.jpg| [[Georg Wilhelm Friedrich Hegel]] |File:Dmitri_Ivanowitsh_Mendeleev.jpg| [[Dmitri Mendeleev]] |File:Max Weber, 1918.jpg| [[Max Weber]] |File:Hirata Tosuke (cropped).jpg|[[Hirata Tosuke]] |File:Helmut Kohl (1996) cropped.jpg| [[Helmut Kohl]] |align=center |perrow=2 |width=135}}
{{Gallery}}
{{Gallery/sandbox}}
style=text-align:center centers captions only (correct behavior)
edit{{Gallery|File:Pintoricchio_014.jpg| [[Pope Pius II]] |File:Georg_Wilhelm_Friedrich_Hegel00.jpg| [[Georg Wilhelm Friedrich Hegel]] |File:Dmitri_Ivanowitsh_Mendeleev.jpg| [[Dmitri Mendeleev]] |File:Max Weber, 1918.jpg| [[Max Weber]] |File:Hirata Tosuke (cropped).jpg|[[Hirata Tosuke]] |File:Helmut Kohl (1996) cropped.jpg| [[Helmut Kohl]] |perrow=2 |style=text-align:center |width=135}}
{{Gallery}}
{{Gallery/sandbox}}