Template:property statistics
From Lexicon Leponticum
Revision as of 17:00, 16 February 2022 by Martin Braun (talk | contribs)
This template serves to display simple statistics on property pages with pre-defined values.
Usage
- This template can only be used on property pages
- with restricted allowed values or
- with the Type:Number
- The first parameter defines the category of the pages to be displayed in the statistics, i.e.
{{property statistics|Category}}
- Additional parameters can be used to display numbers:
- (2) start: mandatory for numbers
- (3) stop: if the stop value is omitted, 10 times the step value is used per default
- (4) step: if the step value is omitted, 1 is used per default
- (5) "range" (optional)
- (6) value to be omitted (optional), e.g. 0
Examples
- The code
{{property statistics|Inscription}}
on the page Property:language will display the occurrence of pages in the Category:Inscription per each pre-defined language (i.e. Lepontic, Cisalpine Gaulish, Celtic, Latin, Umbrian, Etruscan, Raetic, Ligurian, Venetic, Old Irish, English, French, German, Italian, Russian, Spanish, unknown, none, Slovenian, Greek, Welsh, Transalpine Gaulish, Norwegian). - The code
{{property statistics|Inscription|0|360|15}}
on the page Property:orientation will display the occurrence of pages in the Category:Inscription of every 15 degrees from 0 to 360 (i.e. 0, 15, 30, 45, ..., 360), while{{property statistics|Inscription|3}}
will do the same for every integer from 3 to 13. - The code
{{property statistics|Object|-650|50|100|range}}
on the page Property:sortdate will display the occurrence of pages in the Category:Object grouped in 100 years from 650 BC to 50 AD (i.e. -650 to -550, -550 to -450, ..., -50 to 50).