Template:Size: Difference between revisions

m
general page tidy: {{TOCright}}, sub-heading link targets, changed some HTML code for wiki-code, tidied wF table (no data changed)
(standarizing layout)
m (general page tidy: {{TOCright}}, sub-heading link targets, changed some HTML code for wiki-code, tidied wF table (no data changed))
Line 1: Line 1:
{{TOCright}}
<!--
<!--
 
Categorizing logic -->
Categorizing logic
<includeonly>{{#if: {{{pages|{{{wiki pages|{{{wiki_pages|}}}}}}}}}|
--><includeonly>{{#if: {{{pages|{{{wiki pages|{{{wiki_pages|}}}}}}}}}|
[[Category:{{SizeCat|{{{pages|{{{wiki pages|{{{wiki_pages}}}}}}}}}}}]]|[[Category:{{{size|{{{wiki size|{{{wiki_size|UnknownSize}}}}}}}}}]]
[[Category:{{SizeCat|{{{pages|{{{wiki pages|{{{wiki_pages}}}}}}}}}}}]]|[[Category:{{{size|{{{wiki size|{{{wiki_size|UnknownSize}}}}}}}}}]]
}}{{#if: {{{size|{{{wiki size|{{{wiki_size|}}}}}}}}}|
}}{{#if: {{{size|{{{wiki size|{{{wiki_size|}}}}}}}}}|
Line 8: Line 8:
}}{{#if: {{{wikiFactor|{{{wiki factor|}}}}}}|
}}{{#if: {{{wikiFactor|{{{wiki factor|}}}}}}|
[[Category:{{WikiFactorCatText|{{{wikiFactor|{{{wiki factor}}}}}}}}]]
[[Category:{{WikiFactorCatText|{{{wikiFactor|{{{wiki factor}}}}}}}}]]
}}</includeonly><!--
}}</includeonly>
 
<!--
Starting template code
Starting template code
-->
-->
{| style="margin:0; padding:0; border:none;"
{| style="margin:0; padding:0; border:none"
|- style="background-color:#EEE; border: 1px solid #A0A7B4; margin:2px; display:block;"
|- style="background-color:#EEE; border:1px solid #A0A7B4; margin:2px; display:block"
| style="margin:0 0 4px 4px; padding:2px;" scope="row" | [[:Category:Wiki Size|Wiki Size]]:
| style="margin:0 0 4px 4px; padding:2px;" scope="row"| [[:Category:Wiki Size|Wiki Size]]:
| style="margin:0 4px 4px 0; padding:2px;" | {{#if: {{{pages|{{{wiki pages|{{{wiki_pages|}}}}}}}}}|[[:Category:{{SizeCat|<includeonly>{{{pages|{{{wiki pages|{{{wiki_pages}}}}}}}}}</includeonly><noinclude>0</noinclude>}}|<includeonly>{{{pages|{{{wiki pages|{{{wiki_pages}}}}}}}}}</includeonly><noinclude>0</noinclude> pages]]|[[:Category:<includeonly>{{{size|{{{wiki size|{{{wiki_size|UnknownSize}}}}}}}}}</includeonly><noinclude>0</noinclude>|<includeonly>{{{size|{{{wiki size|{{{wiki_size|UnknownSize}}}}}}}}}</includeonly><noinclude>0</noinclude>]]}}{{#if: {{{statistics URL|{{{wiki statistics URL|{{{wiki_statistics_URL|}}}}}}}}}|<sup> [{{{statistics URL|{{{wiki statistics URL|{{{wiki_statistics_URL}}}}}}}}} see stats...]</sup>}}
| style="margin:0 4px 4px 0; padding:2px"| {{#if: {{{pages|{{{wiki pages|{{{wiki_pages|}}}}}}}}}|[[:Category:{{SizeCat|<includeonly>{{{pages|{{{wiki pages|{{{wiki_pages}}}}}}}}}</includeonly><noinclude>0</noinclude>}}|<includeonly>{{{pages|{{{wiki pages|{{{wiki_pages}}}}}}}}}</includeonly><noinclude>0</noinclude> pages]]|[[:Category:<includeonly>{{{size|{{{wiki size|{{{wiki_size|UnknownSize}}}}}}}}}</includeonly><noinclude>0</noinclude>|<includeonly>{{{size|{{{wiki size|{{{wiki_size|UnknownSize}}}}}}}}}</includeonly><noinclude>0</noinclude>]]}}{{#if: {{{statistics URL|{{{wiki statistics URL|{{{wiki_statistics_URL|}}}}}}}}}|<sup> [{{{statistics URL|{{{wiki statistics URL|{{{wiki_statistics_URL}}}}}}}}} see stats...]</sup>}}
{{#if: {{{wikiFactor|{{{wiki factor<includeonly>|</includeonly>}}}}}}|
{{#if: {{{wikiFactor|{{{wiki factor<includeonly>|</includeonly>}}}}}}|
{{!}}- style="background-color:#EEE; border: 1px solid #A0A7B4; margin:2px; display:block;"
{{!}}- style="background-color:#EEE; border:1px solid #A0A7B4; margin:2px; display:block"
{{!}} style="margin:4px 0 0 4px; padding:2px;" scope="row" {{!}} [[:Category:WikiFactor|wikiFactor]]:
{{!}} style="margin:4px 0 0 4px; padding:2px;" scope="row" {{!}} [[:Category:WikiFactor|wikiFactor]]:
{{!}} style="margin:4px 4px 0 0; padding:2px;" {{!}} [[:Category:{{WikiFactorCatText|<includeonly>{{{wikiFactor|{{{wiki factor}}}}}}</includeonly><noinclude>0</noinclude>}}|<includeonly>{{{wikiFactor|{{{wiki factor}}}}}}</includeonly><noinclude>0</noinclude>]]{{#if: {{{wikiFactor URL|{{{wiki factor URL|}}}}}}|<sup> [{{{wikiFactor URL|{{{wiki factor URL}}}}}} more info...]</sup>}}
{{!}} style="margin:4px 4px 0 0; padding:2px" {{!}} [[:Category:{{WikiFactorCatText|<includeonly>{{{wikiFactor|{{{wiki factor}}}}}}</includeonly><noinclude>0</noinclude>}}|<includeonly>{{{wikiFactor|{{{wiki factor}}}}}}</includeonly><noinclude>0</noinclude>]]{{#if: {{{wikiFactor URL|{{{wiki factor URL|}}}}}}|<sup> [{{{wikiFactor URL|{{{wiki factor URL}}}}}} more info...]</sup>}}
}}
}}
|}<noinclude>
|}<noinclude>
__NOTOC__


== Parameters ==
==Parameters==
; pages: number of pages (no thousands separator)
;pages: number of pages (no 'thousands' separator), see [[#How to get size information|below for details]]
: ''alternative parameter names: "wiki pages", "wiki_pages"''
: ''(alternative parameter names: "wiki pages", "wiki_pages")''
: this is a necessary parameter. It selects the [[:Category:Wiki Size|appropriate '''size category''']].
:: this is a necessary parameter. It selects the appropriate '''[[:Category:Wiki Size|wiki size category]]'''.


; statistics URL: external link to the wiki's statistics page
;statistics URL: external link to the wiki's statistics page
: ''alternative parameter names: "wiki statistics URL", "wiki_statistics_URL"''
: ''(alternative parameter names: "wiki statistics URL", "wiki_statistics_URL")''
: this is an optional parameter
:: this is an optional parameter.


; wikiFactor: plain value, see below for details
;wikiFactor: plain value, see [[#How to calculate the wikiFactor of a site|below for details]]
: ''(obsolete name: <s>wiki factor</s>)''
: ''(obsolete name: <s>wiki factor</s>)''
: this is an optional parameter. It selects the [[:Category:wikiFactor|appropriate '''wikiFactor category''']].
:: this is an optional parameter. It selects the appropriate '''[[:Category:wikiFactor|wikiFactor category]]'''.


; wikiFactor URL: external link to the wiki page that contains the data base the wikiFactor was calculated from
;wikiFactor URL: external link to the wiki page that contains the data base the wikiFactor was calculated from
: ''(obsolete name: <s>wiki factor URL</s>)''
: ''(obsolete name: <s>wiki factor URL</s>)''
: this is an optional parameter
:: this is an optional parameter.
 
== boilerplate ==


==Boilerplate==
When anyone goes to [[Community Portal]] and hits the "Create a New Wiki Page" button, the default boilerplate includes this:
When anyone goes to [[Community Portal]] and hits the "Create a New Wiki Page" button, the default boilerplate includes this:


Line 54: Line 52:
:<tt>(last checked against Community Portal's "Create a New Wiki Page" button <small>--[[User:EarthFurst|EarthFurst]] 17:46, 16 September 2009 (EDT)</small>)</tt>
:<tt>(last checked against Community Portal's "Create a New Wiki Page" button <small>--[[User:EarthFurst|EarthFurst]] 17:46, 16 September 2009 (EDT)</small>)</tt>


== How to get size information ==
==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)
Most [[:Category:Wiki Engine|wiki engines]] provide statistics somewhere which includes 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>. There is a number called "Content pages" or sometimes "pages that are probably legitimate content pages" -- use that number. Ignore the (often much larger) "all pages in the wiki, including redirects" number.
#[[:Category:MediaWiki|MediaWiki]] – replace ''Special:Recentchanges'' with ''Special:Statistics'' – <code><nowiki>http://YourWikiURL.org/Special:Statistics</nowiki></code>. There is a number called "Content pages" or sometimes "pages that are probably legitimate content pages" -- use <u>that</u> number. Ignore the (often much larger) "all pages in the wiki, including redirects" number. 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.
:: 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 ''RecentChanges'' with ''SystemInfo'' or ''System_Info''
#[[:Category:MoinMoin|MoinMoin]]: Replace <i>RecentChanges</i> with <i>SystemInfo</i> or <i>System_Info</i>
#[[:Category:UseModWiki|UseModWiki]] – replace ''?RecentChanges'' with ''?action=index''
#[[:Category:UseModWiki|UseModWiki]]: Replace <i>?RecentChanges</i> with <i>?action=index</i>
#[[:Category:Pbwiki|Pbwiki]] – replace any page name with <code>AllPages</code>
#[[:Category:Pbwiki|Pbwiki]]: Replace any page name with <tt>AllPages</tt>
#[[:Category:PhpWiki|PhpWiki]] an option: Search for letter "e" in all Titles (''Is there a better way?'')
#[[:Category:PhpWiki|PhpWiki]]: an option: Search for letter "e" in all Titles ''Is there a better way?''
#[[:Category:ProWiki|ProWiki]] – replace ''?RecentChanges'' with ''?action=spx''
#[[: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 <code>main/</code> would be better)
#[[:Category:PmWiki|PmWiki]]: Search for / and scroll to the bottom (maybe searching for <tt>main/</tt> would be better)
#[[:Category:Tikiwiki|Tikiwiki]] – replace ending <code>/tiki-lastchanges.php</code> with <code>/tiki-stats.php</code>
#[[:Category:Tikiwiki|Tikiwiki]]: Replace ending <i>/tiki-lastchanges.php</i> with <i>/tiki-stats.php</i>
#[[:Category:Twiki|Twiki]] – replace ''/WebChanges'' with ''/WebIndex''
#[[:Category:Twiki|Twiki]]: Replace <i>/WebChanges</i> with <i>/WebIndex</i>
#[[:Category:Oddmuse|Oddmuse]] – in ''RecentChanges'' click on ''1 day'' and replace ''?action=rc;days=1;all=0;showedit=0'' with ''?action=index''
#[[: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 ''/changes'' ending the recent changes url with ''/pagelist''
#[[:Category:Wikispaces|Wikispaces]]: replace <i>/changes</i> ending the recent changes url with <i>/pagelist</i>
#[[:Category:Wikia|Wikia]] – is usually found somewhere prominent on the main page, more detailed info can be found at <code><nowiki>http://YourWikiURL.org/Special:Statistics</nowiki></code>


== How to calculate the wikiFactor of a site ==
==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.
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"].
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 ====
The wikiFactor is simply the number of pages in the wiki (''wF'') that have had more than 1000 times ''wF'' visits.
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;">
====Example====
{| style="background-color: #eee; text-align: center;"
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
! Position (p)<br>most visited first
! Page name (views)
! Page name (views)
! Relation<br>views [<=>] 1000*p
! Relation<br>views [<=>] 1000*p
|-
|-
| 1.  
| 1.
| Welcome (572,833 views)
| Welcome (572,833 views)
| style="background-color: #efe;" | 572,833 '''&gt;''' &nbsp;1,000
| style="background-color:#efe"|572,833 '''&gt;''' 1,000
|-
| 2.
| Bulbapedia (42,344 views)
| style="background-color:#efe"| 42,344 '''&gt;''' 2,000
|-
| 3.
| Community Portal (28,489 views)
| style="background-color:#efe"| 28,489 '''&gt;''' 3,000
|- style="text-align:center"
| –<br>–<br>–
| —<br>—<br>—
| style="background-color:#efe"| —<br>—<br>—
|-
|-
| 2.  
| 11.
| Bulbapedia (42,344 views)  
| Wiki.ThePPN (14,724 views)
| style="background-color: #efe;" | 42,344 '''&gt;''' &nbsp;2,000
| style="background-color:#efe"| 14,724 '''&gt;''' 11,000
|-
|-
| 3.  
| 12.
| Community Portal (28,489 views)  
| Books (12,807 views)
| style="background-color: #efe;" | 28,489 '''&gt;''' &nbsp;3,000
| style="background-color:#efe"| 12,807 '''&gt;''' 12,000
|- style="text-align:center"
| .<br>.<br>.
| .<br>.<br>.
| style="background-color: #efe;" | .<br>.<br>.
|-
|-
| 11.
| 13.
| Wiki.ThePPN (14,724 views)
| TourBusStop (12,371 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
| 12,371 &lt; 13,000
|}
|}
</div>
</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.  
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)
====Where to look====
#[[:Category:MediaWiki|MediaWiki]]: go to the ''Special:PopularPages'' page of the wiki
Most [[:Category:Wiki Engine|wiki engines]] provide global statistics. Here's how to find them for various wiki engines (although it can also depend on software version)
#[[:Category:MoinMoin|MoinMoin]]:
#[[:Category:MediaWiki|MediaWiki]] go to the ''Special:PopularPages'' page of the wiki – <code><nowiki>http://YourWikiURL.org/Special:Popularpages</nowiki></code>
#[[:Category:UseModWiki|UseModWiki]]:
#[[:Category:MoinMoin|MoinMoin]]
#[[:Category:Pbwiki|Pbwiki]]:
#[[:Category:UseModWiki|UseModWiki]]
#[[:Category:PhpWiki|PhpWiki]]:
#[[:Category:Pbwiki|Pbwiki]]
#[[:Category:ProWiki|ProWiki]]:
#[[:Category:PhpWiki|PhpWiki]]
#[[:Category:PmWiki|PmWiki]]:
#[[:Category:ProWiki|ProWiki]]
#[[:Category:Tikiwiki|Tikiwiki]]:
#[[:Category:PmWiki|PmWiki]]
#[[:Category:Twiki|Twiki]]:
#[[:Category:Tikiwiki|Tikiwiki]]
#[[:Category:Oddmuse|Oddmuse]]:
#[[:Category:Twiki|Twiki]]
#[[: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'''.
#[[:Category:Oddmuse|Oddmuse]]
#[[:Category:Wikia|Wikia]]: go to ''Special:Mostvisitedpages''
#[[:Category:Wikispaces|Wikispaces]] go to '''Manage Wiki''' on the left-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'''.
#wikimedia: ''Special:PopularPages'' seems to be unavailable. The "Top" sites option at [http://stats.grok.se/ stats.grok.se] can be used for Wikipedias, but needs to be summed on a per-month basis.
#[[:Category:Wikia|Wikia]] go to ''Special:Mostvisitedpages''
#[[:Category:Wikimedia|Wikimedia]] – ''Special:PopularPages'' seems to be unavailable. The "Top" sites option at [http://stats.grok.se/ stats.grok.se] can be used for Wikipedias, but needs to be summed on a per-month basis.


=====Google Analytics=====
=====Google Analytics=====
If your site uses [[Wikipedia:Google Analytics|Google Analytics]], you can go to "Content/Top Content" and select the entire date range to get a count of pageviews for each page. If you started using Analytics partway through, and stopped collecting your wiki engine's standard statistics at the same time, you may be able to merge the two numbers.
If your site uses [[Wikipedia:Google Analytics|Google Analytics]], you can go to "Content/Top Content" and select the entire date range to get a count of pageviews for each page. If you started using Analytics partway through, and stopped collecting your wiki engine's standard statistics at the same time, you may be able to merge the two numbers.


[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>