Wikia

Familypedia

Help:Inline queries/Configuring labels or table headers

< Help:Inline queries

189,669pages on
this wiki
Talk0
Subpages of the main Help page:
* 1 /Introduction to "hash"ask
* 2 /The "hash"show parser function
* 3 /Standard parameters for inline queries
**3.1 /Result limits and links to further results
**3.2 /Introduction and default text
**3.3 /Sorting results

**3.4 /Configuring labels or table headers

**3.5 /Changing the first result column
* 4 /Result formats
* 5 /Exporting query results: RSS, etc.
* 6 /Using templates for custom formatting

Queries that return more than just the selected articles (e.g. the population in the above example) will display labels that describe the various output fields. By default, the label just displays the name of the requested property, or the text «Category» if categories are displayed. Labels for properties normally display as a link to the respective pages in the Property: namespace.

In the table format, the labels appear as column headers. In other formats, the labels might appear right before the output fields. The texts used for these labels can be controlled as explained in Help:Displaying information, using the equality symbol after printouts. Example:

{{#ask: [[Category:City]]
 |?Population=
 | ?Area#km²=Size in km²
 | ?Category=Category memberships
 | format=table
 | default=nothing found in Category:City
}}

This query will produce:

    Size in km² Category memberships
Abilene, Texas Pages with broken file links
Cities in Texas
Cities in Taylor County, Texas
Cities in Jones County, Texas
County seats in Texas
Abilene, Texas
Busking venues
Abilene metropolitan area
Settlements established in 1881
1881 establishments in Texas
Albert J. Adams (1845-1906) Articles with hCards
Numbers game
Criminals from New York City
Criminals who committed suicide
Sing Sing
Suicides in New York
Missing middle or first names
People on Wikipedia
Adams (surname)
Born in 1845
Died in 1906
Famous people
Non-SMW people articles
Boulder, Colorado Boulder, Colorado
Cities in Boulder County, Colorado
Cities in Colorado
County seats in Colorado
University towns in the United States
Busking venues
Camden, New Jersey Pages with broken file links
Camden, New Jersey
1626 establishments in the Thirteen Colonies
1828 establishments in New Jersey
Cities in Camden County, New Jersey
County seats in New Jersey
Faulkner Act Mayor-Council
New Jersey Urban Enterprise Zones
Settlements established in 1626
Settlements established in 1828
Port cities and towns of the United States Atlantic coast
Urban decay in the United States
City Articles with Polish-language external links
Pages with broken file links
Administrative divisions
Cities
City
Settlements by type
City status in the United Kingdom City
Lists of cities in Europe
Geography of the United Kingdom
Cities in the United Kingdom
United Kingdom-related lists
Local government in the United Kingdom
Columbia, Missouri Pages with broken file links
Columbia, Missouri
Cities in Boone County, Missouri
Cities in Missouri
Columbia, Missouri metropolitan area
University towns in the United States
Settlements established in 1818
County seats in Missouri
Busking venues
Cuckmere Valley Pages with broken file links
Wealden
Local government in East Sussex
Deserted medieval villages in England
Archaeological sites in East Sussex
Darlaston Towns in the West Midlands (county)
Walsall
East Cleveland, Ohio East Cleveland, Ohio
Cities in Ohio
Cities in Cuyahoga County, Ohio
Settlements established in 1895
Urban decay in the United States
Scottish-American culture in Ohio
East St. Louis, Illinois Geobox usage tracking for settlement type
Pages with broken file links
Cities in Illinois
Communities on U.S. Route 66
Cities in St. Clair County, Illinois
Twin cities
East St. Louis, Illinois
Settlements established in 1820
1820 establishments in Illinois
Illinois settlements on the Mississippi River
Urban decay in the United States
Flint, Michigan Pages with broken file links
Cities in Michigan
County seats in Michigan
Flint, Michigan
Cities in Genesee County, Michigan
Michigan Neighborhood Enterprise Zone
Settlements established in 1818
Urban decay in the United States
James Abram Garfield (1831-1881) Facts articles- person
Garfield (surname)
Born in 1831
Died in 1881
Articles with authority control information
James A. Garfield
American Disciples of Christ
American members of the Churches of Christ
American people of English descent
American people of French descent
American people of Welsh descent
Assassinated United States Presidents
United States presidents who died while in office
Burials at Lake View Cemetery, Cleveland
Christian Church (Disciples of Christ) clergy
Deaths by firearm in New Jersey
Deaths from myocardial infarction
Deaths from pneumonia
Deaths from sepsis
Alumni of Hiram College
History of the United States (1865–1918)
Infectious disease deaths in New Jersey
Members of the United States House of Representatives from Ohio
Ministers of the Churches of Christ
Ohio lawyers
Ohio Republicans
Ohio State Senators
People from Mentor, Ohio
People murdered in Washington, D.C.
American people of Huguenot descent
People of Ohio in the American Civil War
Presidents of the United States
Republican Party Presidents of the United States
Republican Party (United States) presidential nominees
Union Army generals
United States Army generals
United States presidential candidates, 1880
Alumni of Williams College
Deaths by firearm in Washington, D.C.
People on Wikipedia
Gary, Indiana Pages containing links to subscription only content
Pages with broken file links
Incomplete lists
Gary, Indiana
Chicago metropolitan area
Cities in Indiana
Company towns in Indiana
Northwest Indiana
Settlements established in 1906
Cities in Lake County, Indiana
Settlements on the Great Lakes
Inland port cities and towns of the United States
Urban decay in the United States
The Jackson 5
Michael Jackson
U.S. Steel
Ghost town Articles with Italian-language external links
Ghost towns
Urban decay
Former settlements
Independent city City
Independent cities
Lists of cities
Administrative divisions
Abraham Lincoln (1809-1865) Facts articles- person
Lincoln (surname)
Born in 1809
Died in 1865
Articles with authority control information
Famous people
Abraham Lincoln
American people of English descent
American people of Welsh descent
Assassinated United States Presidents
Deaths by firearm in Washington, D.C.
Illinois lawyers
Illinois Republicans
Illinois Whigs
Lincoln family
Members of the Illinois House of Representatives
Members of the United States House of Representatives from Illinois
People from Coles County, Illinois
People from LaRue County, Kentucky
People from Macon County, Illinois
People from Spencer County, Indiana
People from Springfield, Illinois
People murdered in Washington, D.C.
People of Illinois in the American Civil War
People of the Black Hawk War
Postmasters
Presidents of the United States
Republican Party Presidents of the United States
Republican Party (United States) presidential nominees
Union political leaders
United States presidential candidates, 1860
United States presidential candidates, 1864
Political party founders
Medway Medway
Unitary authority districts of England
Urban areas of England
Local authorities adjoining the River Thames
Local government districts of South East England
Santa Cruz, California Pages with broken file links
Busking venues
Incorporated cities and towns in California
Coastal settlements in California
Cities in Santa Cruz County, California
County seats in California
Municipal parks in California
Santa Cruz, California
University towns in the United States
Spanish mission settlements in North America
Somerset County, Pennsylvania Pages needing enhanced family history perspective
Counties of Pennsylvania
Valid name- county- Pennsylvania
Somerset County, Pennsylvania
National Road
1795 establishments in the United States
United Airlines Flight 93
Settlements established in 1795
Counties of Appalachia
Suburb Pages with broken file links
Suburbs
City
Settlements by type
Neighborhoods
Sukkur Pages with broken file links
Sukkur District
Metropolitan areas of Pakistan
Settlements in Sukkur District
Walsall Articles with hAudio microformats
Pages with broken file links
Towns in the West Midlands (county)
Walsall
Articles including recorded pronunciations (UK English)
Post towns in the WS postcode area

It is possible to use empty printout labels to have no label for a result column at all. In tables, however, the table header will still be shown even if all printouts use empty labels. To remove the header of a table completely, the parameter headers can be used. Two values are possible:

  • show: display labels (default)
  • hide: hide all labels and table headers

This setting works for tables as well as for other outputs. In the latter case, the value hide will hide all printout labels, even if they have a non-empty label set in the query.


This page uses content from the Semantic MediaWiki website. The original content was at Help:Inline queries. The list of authors can be seen in the page history there. The documentation portion of the content of Semantic MediaWiki is available under Creative Commons 3.0 licensing.

Around Wikia's network

Random Wiki