Demo:Datatables compared to broadtable

From semantic-mediawiki.org
Table of Contents

Datatables[edit]

Syntax
{{#ask:
 [[Category:City images]]
 |mainlabel=City image
 |?Has caption
 |?Has image collection
 |?Has license
 |?Category
 |format=datatables
 |link=all
 |headers=show
}}
Result
Due to bug 1881 you may observe unexpected behavior, i.e. the images are shown twice, in some environments depending on the operating system and the browsers used.

Table with datatable class[edit]

Syntax
{{#ask:
 [[Category:City images]]
 |mainlabel=City image
 |?Has caption
 |?Has image collection
 |?Has license
 |?Category
 |format=table
 |class=datatable
 |link=all
 |headers=show
}}
Result

Broadtable[edit]

Syntax
{{#ask:
 [[Category:City images]]
 |mainlabel=City image
 |?Has caption
 |?Has image collection
 |?Has license
 |?Category
 |format=broadtable
 |link=all
 |headers=show
}}
Result
City imageHas captionHas image collectionHas licenseCategory
2166320938 5cfc9ec72a z.jpgCity imagesCC-BY-NC-NDCity images
Sample images
File
220px-Cherry Blossoms and Washington Monument.jpgFrom Wikipedia - for the SMWCon Spring 2011 pageCity images
Sample images
3363305632 c136da22e7 z.jpgMunich - Dom zu Unserer Lieben FrauCC-BYCity images
Sample images
3430830083 00768b46a9 z.jpgcity images
san diego
CC-BY-NC-NDCity images
Sample images
File
4005745212 1e91b077cf z.jpgRom - ColosseumCC-BY-NC-SACity images
Sample images
40564870 7c39a94ac4 z.jpgFrankfurt am Main - AltstadtCC-BY-SACity images
Sample images
5072461976 666f3c8817 o.jpgCity images
Berlin
Redirect
CC-BY-NC-NDCity images
Sample images
File
5208218415 e2361c0c43 z.jpgCity images
Sydney
CC-BYCity images
Sample images
File
5684653514 4bf9d1c137 b.jpgParis - The Place Vendôme with ColumnCC-BYCity images
Sample images
59104081 3307425c2c z.jpgStuttgart - SchlossCC-BY-NCCity images
Sample images
6140285934 02e81b845f z.jpgWarsaw - Royal Castle SquareCC-BY-NCCity images
Sample images
Amsterdam - Waag.jpgCity imagesPDCity images
Sample images
File
Belvue.jpgBellevue Palace (Berlin)City images
Sample images
Calsbad-late-night.jpgCarlsbad CA Molly Mountain (Mount Calavera)City images
Sample images
Karlsruher Pyramide.JPGKarlsruhe - Market place with pyramidPDCity images
Sample images

References

  1. ^  Semantic Result Formats: GitHub issue gh:srf:188