Template:Size: Difference between revisions

aaargh
(aaargh)
 
(132 intermediate revisions by 21 users not shown)
Line 1: Line 1:
<table><tr><td style="background-color:#EDEDED; border-style:solid; border-width:1px; margin:4px; padding:4px;">
<!--Starting template code-->{|style="margin:0; padding:0; border:none"
[[:Category:Wiki Size|Wiki Size]]:  
|-style="background-color:#EEE; border:1px solid #A0A7B4; margin:0; display:block"
{{#if: {{{pages|{{{wiki pages|{{{wiki_pages|}}}}}}}}}|[[:Category:{{SizeCat|{{{pages|{{{wiki pages|{{{wiki_pages}}}}}}}}}}}|{{{pages|{{{wiki pages|{{{wiki_pages}}}}}}}}} pages]]|[[:Category:{{{size|{{{wiki size|{{{wiki_size|UnknownSize}}}}}}}}}|{{{size|{{{wiki size|{{{wiki_size|UnknownSize}}}}}}}}}]]}}{{#if: {{{statistics URL|{{{wiki statistics URL|{{{wiki_statistics_URL|}}}}}}}}}|<sup> [{{{statistics URL|{{{wiki statistics URL|{{{wiki_statistics_URL}}}}}}}}} see the statistics...]</sup>|}}
|style="margin:0 0 4px 0; padding:2px" scope=row|[[:Category:Wiki Size|Wiki size]]:
{{#if: {{{wikiFactor|{{{wiki factor|}}}}}}|<br>[[:Category:Wiki Factor|Wiki Factor]]: {{{wikiFactor|{{{wiki factor}}}}}}{{#if: {{{wikiFactor URL|{{{wiki factor URL|}}}}}}|<sup> [{{{wikiFactor URL|{{{wiki factor URL}}}}}} see further info...]</sup>|}}|}}
|style="margin:0 4px 4px 0; padding:2px"|{{#if:{{{pages|{{{wiki pages|}}}}}}|[[:Category:{{SizeCat|{{formatnum:{{{pages|{{{wiki pages|0}}}}}}|R}}}}|{{formatnum:{{{pages|{{{wiki pages|0}}}}}}}} article pages]]|[[:Category:Unknown size|unknown size]]}}{{#if:{{{statistics URL|}}}|<sup>&nbsp;[{{{statistics URL|}}} see stats]</sup>[[Statistics URL::{{{statistics URL|}}}| ]]<!--Semantic property-->}}{{#if:
</td></tr></table>
{{{pages date|}}}|&thinsp;on {{#time: Y-m-d |{{{pages date|}}} }} }}
<noinclude>
{{#if:
 
{{{wikiFactor|{{{wikiFactor<includeonly>|</includeonly>}}}}}}|
== Parameters ==
{{!}}-style="background-color:#EEE; border:1px solid #A0A7B4; margin-top:1px; display:block"
; pages: number of pages (no thousands separator)
{{!}}style="margin:4px 0 0 0; padding:2px" scope=row{{!}}[[:Category:wikiFactor|wikiFactor]]:
: ''alternative parameter names: "wiki pages", "wiki_pages"''
{{!}}style="margin:4px 4px 0 0; padding:2px"{{!}}[[:Category:{{wikiFactorCatText|{{formatnum:{{{wikiFactor|{{{wikiFactor|0}}}}}}|R}}}}|{{formatnum:{{{wikiFactor|{{{wikiFactor|0}}}}}}}}]]{{#if:{{{wikiFactor URL|{{{wikiFactor URL|}}}}}}|&nbsp;<sup>[[wikiFactor|info]] / [{{{wikiFactor URL|{{{wikiFactor URL}}}}}} verify]</sup>}}
: this is a necessary parameter
}}
 
|}<!--Ending template code--><includeonly>
; statistics URL: external link to the wiki's statistics page
<!--Categorising & Semantic data logic-->{{#set:pages={{{pages|}}}|wikiFactor={{{wikiFactor|}}} }}
: ''alternative parameter names: "wiki statistics URL", "wiki_statistics_URL"''
{{#if:{{{pages|{{{wiki pages|}}}}}}
: this is an optional parameter
|[[Category:{{SizeCat|{{formatnum:{{{pages|{{{wiki pages|}}}}}}|R}}}}]]
 
[[Pages::{{formatnum:{{{pages|{{{wiki pages|0}}}}}}|R}}| ]]<!--Semantic property-->
; wikiFactor: plain value, see below for details
|[[Category:Unknown size]]
: ''(obsolete name: <s>wiki factor</s>)''
}}{{#if:  
: this is an optional parameter
  {{{pages date|}}}| {{#set: Wiki size date={{{pages date|}}} }} }}{{#if:
 
{{{wikiFactor|{{{wikiFactor|}}}}}}|[[Category:{{wikiFactorCatText|{{formatnum:{{{wikiFactor|{{{wikiFactor}}}}}}|R}}}}]]
; wikiFactor URL: external link to the wiki page that contains the data base the wikiFactor was calculated from
[[wikiFactor::{{formatnum:{{{wikiFactor|{{{wikiFactor|0}}}}}}|R}}| ]][[wikiFactor URL::{{{wikiFactor URL|}}}| ]]<!--Semantic property-->
: ''(obsolete name: <s>wiki factor URL</s>)''
}}</includeonly><noinclude>
: this is an optional parameter
{{Size/doc}}
 
[[Category:Templates]]</noinclude>
== boilerplate ==
 
When anyone goes to [[Community Portal]] and hits the "Create a New Wiki Page" button, the default boilerplate includes this:
 
'''<nowiki>{{</nowiki>Size'''
'''| pages = <nowiki><!-- necessary. plain number of pages, leave blank if unknown --></nowiki>'''
| statistics URL = <nowiki><!-- optional. external link to statistics page --></nowiki>
| wikiFactor = <nowiki><!-- optional. plain wiki factor value --></nowiki>
| wikiFactor URL = <nowiki><!-- optional. external link to data base for wiki factor calc. --></nowiki>
'''<nowiki>}}</nowiki>'''
 
:<tt>(last checked against [[Template:Wiki Boilerplate]] <small>--[[Wolf Peuker|Wolf]] | <small>[[User talk:Peu|talk]]</small> 08:07, 25 March 2009 (EDT)</small>)</tt>
 
== How to get size information ==
Most wiki engines provide statistics somewhere including a page count. Here's how to find them for various wiki engines (although it can also depend on version)
#[[:Category:MediaWiki|MediaWiki]]: Replace <i>Special:Recentchanges</i> with <i>Special:Statistics</i>
:: We can also [http://s23.org/wikistats/addwiki/ add] MediaWiki listings to the http://s23.org/wikistats/mediawikis_html.php system which tracks various wiki stats
#[[:Category:MoinMoin|MoinMoin]]: Replace <i>RecentChanges</i> with <i>SystemInfo</i> or <i>System_Info</i>
#[[:Category:UseModWiki|UseModWiki]]: Replace <i>?RecentChanges</i> with <i>?action=index</i>
#[[:Category:Pbwiki|Pbwiki]]: Replace any page name with <tt>AllPages</tt>
#[[:Category:PhpWiki|PhpWiki]]: an option: Search for letter "e" in all Titles
#[[:Category:ProWiki|ProWiki]]: Replace <i>?RecentChanges</i> with <i>?action=spx</i>
#[[:Category:PmWiki|PmWiki]]: Search for / and scroll to the bottom (maybe searching for <tt>main/</tt> would be better)
#[[:Category:Tikiwiki|Tikiwiki]]: Replace ending <i>/tiki-lastchanges.php</i> with <i>/tiki-stats.php</i>
#[[:Category:Twiki|Twiki]]: Replace <i>/WebChanges</i> with <i>/WebIndex</i>
#[[:Category:Oddmuse|Oddmuse]]: In <i>RecentChanges</i> click on <i>1 day</i> and replace <i>?action=rc;days=1;all=0;showedit=0</i> with <i>?action=index</i>
#[[:Category:Wikispaces|Wikispaces]]: replace <i>/changes</i> ending the recent changes url with <i>/pagelist</i>
 
== How to calculate the wikiFactor of a site ==
The '''wikiFactor''' is a measure of the 'popularity' of a wiki-site. It is based on the Hirsch [http://en.wikipedia.org/wiki/H-index h-index] which is commonly used to measure the impact a scientist has had in the literature. The wikiFactor complements the number of pages and total number of visits information.
More details can be found in the preprint [http://arXiv.org/abs/0902.3439 "wikiFactor: a measure of the importance of a wiki site"].
The wikiFactor is simply the number of pages in the wiki (''wF'') that have had more than 1000 times ''wF'' visits.
==== Example ====
A wikiFactor of, say, 12 means that page number 12 in the ranking of pages visited has received 12,000 or more visits, whereas
page 13 has not yet reached 13,000 visits.
Here is a worked example (here for [[Special:Popularpages | WikiIndex]]):
 
<div style="margin-left: 2em;">
{| style="background-color: #eee; text-align: center;"
! Position (p)<br>most visited first
! Page name (views)
! Relation<br>views [<=>] 1000*p
|-
| 1.
| Welcome (572,833 views)
| style="background-color: #efe;" | 572,833 '''&gt;''' &nbsp;1,000
|-
| 2.
| Bulbapedia (42,344 views)
| style="background-color: #efe;" | 42,344 '''&gt;''' &nbsp;2,000
|-
| 3.
| Community Portal (28,489 views)
| style="background-color: #efe;" | 28,489 '''&gt;''' &nbsp;3,000
|- style="text-align:center"
| .<br>.<br>.
| .<br>.<br>.
| style="background-color: #efe;" | .<br>.<br>.
|-
| 11.
| Wiki.ThePPN (14,724 views)
| style="background-color: #efe;" | 14,724 '''&gt;''' 11,000
|-
| 12.
| Books (12,807 views)
| style="background-color: #efe;" | 12,807 '''&gt;''' 12,000
|-
| 13.
| TourBusStop (12,371 views)
| 12,371 &lt; 13,000
|}
</div>
 
If one counts the entries with <code>views > 1000*p</code> (highlighted in light green) one arrives at a  wikiFactor of 12 for WikiIndex.
==== Where to look ====
Most wiki engines provide global statistics. Here's how to find them for various wiki engines (although it can also depend on version)
#[[:Category:MediaWiki|MediaWiki]]: go to the ''Special:PopularPages'' page of the wiki
#[[:Category:MoinMoin|MoinMoin]]:  
#[[:Category:UseModWiki|UseModWiki]]:
#[[:Category:Pbwiki|Pbwiki]]:
#[[:Category:PhpWiki|PhpWiki]]:
#[[:Category:ProWiki|ProWiki]]:
#[[:Category:PmWiki|PmWiki]]:
#[[:Category:Tikiwiki|Tikiwiki]]:
#[[:Category:Twiki|Twiki]]:
#[[:Category:Oddmuse|Oddmuse]]:
#[[:Category:Wikispaces|Wikispaces]]:  go to '''Manage Wiki''' on the lef-hand-side of the page, then click on the  '''Tools: Wiki Statistics''' icon. Shift from the ''overview'' tab to the ''pages'' tab, then click on '''Views'''.
#wikia: go to ''Special:Mostvisitedpages''
[[Category:Templates]]
 
</noinclude>