Template:Getfact/doc


 * Purpose
 * For template writers, this is a convenient wrapper template that will fetch a single property, setting various #show options automatically, and optionalling returning a default string if the results are null, or the illegal value of 9999. No formatting is performed.


 * Compare with
 * Showfact- An alternative template intended for formatting information for the reader. This will optionally do formatting and perform various tranformations such as translation into the vernacular by default. By contrast, GetFact simply returns the value in the database and may be used for subsequent comparisons and other template processing.


 * Usage examples
 * On page Abraham Hunsberger (1786-1860) the following wikitext would produce these results.
 * {|class=wikitable style="width:65%"

!width=60%|Wikitext !width=40%|Result
 * }
 * }
 * }
 * }
 * }


 * Performance note
 * Semantic MediaWiki exploits the caching mechanism of mediawiki software. Since the article is in memory, queries on its properties have virtually no cost, so a page may use large numbers of these queries without making the page slower.