Template:Size: Difference between revisions

1,067 bytes removed ,  11 September 2012
m
Reverted edits by Hoof Hearted (talk) to last revision by Emijrp
(more tweaks)
m (Reverted edits by Hoof Hearted (talk) to last revision by Emijrp)
Line 1: Line 1:
<!--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:{{SizeCat|{{{pages|{{{wiki pages|{{{wiki_pages}}}}}}}}}}}]]
Line 10: Line 11:
[[wikifactor::{{{wikiFactor|{{{wiki factor|0}}}}}}| ]]<!-- Semantic Property -->
[[wikifactor::{{{wikiFactor|{{{wiki factor|0}}}}}}| ]]<!-- Semantic Property -->
}}</includeonly>
}}</includeonly>
<!--Starting template code-->
<!--
{{#set:Wiki size={{{pages|}}}|Wiki factor={{{wikiFactor|}}} }}
Starting template code-->
{{#set:Wiki size={{{pages|}}} |Wiki factor={{{wikiFactor|}}} }}
{|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|{{{statistics_URL|{{{wiki statistics URL|{{{wiki_statistics_URL|}}}}}}}}}}}}|<sup> [{{{statistics URL|{{{statistics_URL|{{{wiki statistics URL|{{{wiki_statistics_URL}}}}}}}}}}}}&nbsp;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|{{{statistics_URL|{{{wiki statistics URL|{{{wiki_statistics_URL|}}}}}}}}}}}}|<sup> [{{{statistics URL|{{{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 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|}}}}}}|&nbsp;<sup>[[wikiFactor|info]] / [{{{wikiFactor URL|{{{wiki factor URL}}}}}} verify ...]</sup>}}
{{!}} 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>}}
}}
}}
|}<noinclude>
|}<noinclude>
__NOTOC__
__NOTOC__
==Parameters==
==Parameters==
;pages: number of 'legitimate' [[wiki]] pages (NO 'thousands' separator), see [[#How to get size information|below for details]]
;pages: number of 'legitimate' [[wiki]] pages (no 'thousands' separator), see [[#How to get size information|below for details]]
: (''alternative parameter names:'' <tt>wiki pages</tt>, <tt>wiki_pages</tt>)
: (''alternative parameter names:'' <tt>wiki pages</tt>, <tt>wiki_pages</tt>)
:: this is a necessary parameter.  It selects the appropriate '''[[:Category:Wiki Size|wiki size category]]'''.
:: this is a necessary parameter.  It selects the appropriate '''[[:Category:Wiki Size|wiki size category]]'''.
Line 33: Line 36:
;wikiFactor: plain value, see [[#How to calculate the wikiFactor of a site|below for details]]
;wikiFactor: plain value, see [[#How to calculate the wikiFactor of a site|below for details]]
: (''obsolete parameter name:'' <s><tt>wiki factor</tt></s>)
: (''obsolete parameter name:'' <s><tt>wiki factor</tt></s>)
:: this is an optional, though preferred parameter. It selects the appropriate '''[[:Category:wikiFactor|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 database the wikiFactor was calculated from
;wikiFactor URL: external link to the wiki page that contains the database the wikiFactor was calculated from
Line 42: Line 45:


==Boilerplate==
==Boilerplate==
When anyone goes to [[WikiIndex: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:


<pre>
<pre>
Line 56: Line 59:


==How to get size information==
==How to get size information==
Most [[:Category:Wiki Engine|wiki engines]] provide statistics somewhere, which includes a [[:Category:Wiki Size|page count]].  Here's how to find them for various wiki engines (although it can also depend on the software version of the wiki engine being run by the said [[wiki]]).  For some, simply click on the appropriate 'statistics' link; for others, you need to add (or replace) a specific text at the end of the relevant wiki URL in the address bar of your [[:Category:Web|web]] [[:Category:Software|browser]].
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 the software version being run by the said [[wiki]]).  For most, you need to add (or replace) a specific text at the end of the relevant wiki URL in the address bar of your web browser.
#[[:Category:MediaWiki|MediaWiki]] add ''/Special:Statistics'' at the end of the URL – <code><nowiki>http://YourWikiURL.org/Special:Statistics</nowiki></code> (non-English [[:Category:Wiki Language|language]] versions will automatically convert this to actual language).  Dependent on software version, there is a number called "Content pages", or "pages that are probably legitimate content pages" -- use <u>that</u> lower 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.
#[[:Category:MediaWiki|MediaWiki]] add ''/Special:Statistics'' at the end of the URL – <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.
#[[:Category:MoinMoin|MoinMoin]] add ''/PageSize'' at the end of the URL – <code><nowiki>http://YourWikiURL.org/PageSize</nowiki></code>
#[[:Category:MoinMoin|MoinMoin]] add ''/PageSize'' at the end of the URL – <code><nowiki>http://YourWikiURL.org/PageSize</nowiki></code>
#[[:Category:UseModWiki|UseModWiki]] add ''/?action=index'' at the end of the URL – <code><nowiki>http://YourWikiURL.org/?action=index</nowiki></code>
#[[:Category:UseModWiki|UseModWiki]] add ''/?action=index'' at the end of the URL – <code><nowiki>http://YourWikiURL.org/?action=index</nowiki></code>
#[[:Category:Pbwiki|Pbwiki]] replace any page name with ''/AllPages'' – <code><nowiki>http://YourWikiURL.org/AllPages</nowiki></code>
#[[:Category:Pbwiki|Pbwiki]] replace any page name with <code>/AllPages</code>
#[[: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]] add ''/?action=spx'' at the end of the URL – <code><nowiki>http://YourWikiURL.org/?action=spx</nowiki></code>
#[[:Category:ProWiki|ProWiki]] add ''/?action=spx'' at the end of the URL – <code><nowiki>http://YourWikiURL.org/?action=spx</nowiki></code>
#[[:Category:PmWiki|PmWiki]] — use <code>/</code> in the search box then scroll to the bottom (maybe searching for <code>Site/</code> or <code>Main/</code> would be better)
#[[:Category:PmWiki|PmWiki]] – search for / and scroll to the bottom (maybe searching for <code>main/</code> would be better)
#[[:Category:Tikiwiki|Tikiwiki]] replace ending <code>/tiki-lastchanges.php</code> with <code>/tiki-stats.php</code>
#[[:Category:Tikiwiki|Tikiwiki]] replace ending <code>/tiki-lastchanges.php</code> with <code>/tiki-stats.php</code>
#[[:Category:Twiki|Twiki]] add ''/WebIndex'' at the end of the URL – <code><nowiki>http://YourWikiURL.org/WebIndex</nowiki></code>
#[[:Category:Twiki|Twiki]] add ''/WebIndex'' at the end of the URL – <code><nowiki>http://YourWikiURL.org/WebIndex</nowiki></code>
#[[: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 ''RecentChanges'' click on ''1 day'' and replace ''?action=rc;days=1;all=0;showedit=0'' with ''?action=index''
#[[:Category:Wikispaces|Wikispaces]] replace ''/changes'' ending the recent changes url with ''/pagelist''
#[[:Category:Wikispaces|Wikispaces]] replace ''/changes'' ending the recent changes url with ''/pagelist''
#[[:Category:Wikia|Wikia]] is usually found somewhere prominent near the top of the main page; more detailed info (along with backup file link) can be found at <code><nowiki>http://YourWikiName.wikia.com/Special:Statistics</nowiki></code>
#[[:Category:Wikia|Wikia]] is usually found somewhere prominent on the main page, more detailed info can be found at <code><nowiki>http://YourWikiName.wikia.com/Special:Statistics</nowiki></code>
#[[:Category:DokuWiki|DokuWiki]] ???
#[[:Category:DokuWiki|DokuWiki]] ???


==How to calculate the wikiFactor of a site==
==How to calculate the wikiFactor of a site==
The '''wikiFactor''' ('''wF''') is a measure of the 'popularity' of a [[wiki]]-site.  It is based on the Hirsch [[wp: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 a measure of the 'popularity' of a [[wiki]]-site.  It is based on the Hirsch [[wikipedia: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 [[:Category:wikiFactor|wikiFactor]] is simply the number of pages in the wiki (''wF'') that have had more than 1000 times ''wF'' visits.
The wikiFactor is simply the number of pages in the wiki (''wF'') that have had more than 1000 times ''wF'' visits.


====Example====
====Example====
A [[wikiFactor]] (wF) of, say, 20 – means that page number 20 in the ranking of pages visited has received 20,000 or more visits, whereas page 21 has not <u>yet</u> reached 21,000 visits.  Here is a worked example for [[Special:Popularpages|WikiIndex]] from September 2012:
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]]):<!--a date of when this snapshot of data was sourced would be helpful-->


<div style=margin-left:2em>
<div style=margin-left:2em>
{|style="background-color:#eee; text-align:center; border:1"
{|style="background-color:#eee; text-align:center; border:1"
|+<big>'''wikiFactor (wF) table'''</big>
!position (p)<br>most visited first
!ranking position (p)<br>most visited first
!page name (views)
!page name (page views)
!relation<br>views [<=>] 1000*p
!relation<br>views [<=>] 1000*p
|-
|-
|1.
|1.
|[[Welcome]] (1,614,887 views)
|Welcome (572,833 views)
|style=background-color:#efe|1,614,887 '''&gt;''' 1,000
|style=background-color:#efe|572,833 '''&gt;''' 1,000
|-
|-
|2.
|2.
|[[TestWiki‏‎]] (268,598 views)
|Bulbapedia (42,344 views)
|style=background-color:#efe|268,598 '''&gt;''' 2,000
|style=background-color:#efe|42,344 '''&gt;''' 2,000
|-
|-
|3.
|3.
|[[Dhamma Wiki‏‎]] (142,276 views)
|Community Portal (28,489 views)
|style=background-color:#efe|142,276 '''&gt;''' 3,000
|style=background-color:#efe|28,489 '''&gt;''' 3,000
|- style="text-align:center"
|–<br>–<br>–
|—<br>—<br>—
|style=background-color:#efe|—<br>—<br>—
|-
|-
|4.
|11.
|[[Bulbapedia]] (95,036 views)
|Wiki.ThePPN (14,724 views)
|style=background-color:#efe|95,036 '''&gt;''' 4,000
|style=background-color:#efe|14,724 '''&gt;''' 11,000
|-
|-
|
|12.
|
|Books (12,807 views)
|style=background-color:#efe|
|style=background-color:#efe|12,807 '''&gt;''' 12,000
|-
|-
|
|13.
|—
|TourBusStop (12,371 views)
|style=background-color:#efe|—
|12,371 &lt; 13,000
|-
|–
|—
|style=background-color:#efe|—
|-
|18.
|[[WikiProject:Wikis to Add‏‎]] (21,428 views)
|style=background-color:#efe|21,428 '''&gt;''' 18,000
|-
|19.
|[[WikiLyric‏‎]] (21,181 views)
|style=background-color:#efe|21,181 '''&gt;''' 19,000
|-
|20.
|[[Aide:Contenus]]‏‎ (20,179 views)
|style=background-color:#efe|20,179 '''&gt;''' 20,000
|-
|21.
|[[English Girls WikiPorn‏‎]] (20,031 views)
|20,031 &lt; 21,000
|}
|}
</div>
</div>


If one counts the entries with <code>views > 1000*p</code> (highlighted in light green) one arrives at a wikiFactor (wF) of 20 for [[WikiIndex]] (correct as of September 2012).
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====
====Where to look====
Many [[:Category:Wiki Engine|wiki engines]] provide global statistics.  Here's how to find the appropriate [[wikiFactor]] related stats for various wiki engines (although it can also depend on software version used by individual wiki sites)
Many [[: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 used by individual wiki sites)
#[[:Category:MediaWiki|MediaWiki]] go to the ''Special:PopularPages'' page of the wiki – <code><nowiki>http://YourWikiURL.org/Special:PopularPages</nowiki></code>
#[[:Category:MediaWiki|MediaWiki]] go to the ''Special:PopularPages'' page of the wiki – <code><nowiki>http://YourWikiURL.org/Special:PopularPages</nowiki></code>
#[[:Category:MoinMoin|MoinMoin]]
#[[:Category:MoinMoin|MoinMoin]]
#[[:Category:UseModWiki|UseModWiki]]
#[[:Category:UseModWiki|UseModWiki]]
#[[:Category:Pbwiki|Pbwiki]]
#[[:Category:Pbwiki|Pbwiki]]
#[[:Category:PhpWiki|PhpWiki]]
#[[:Category:PhpWiki|PhpWiki]]
#[[:Category:ProWiki|ProWiki]]
#[[:Category:ProWiki|ProWiki]]
#[[:Category:PmWiki|PmWiki]]
#[[:Category:PmWiki|PmWiki]]
#[[:Category:Tikiwiki|Tikiwiki]]
#[[:Category:Tikiwiki|Tikiwiki]]
#[[:Category:Twiki|Twiki]]
#[[:Category:Twiki|Twiki]]
#[[:Category:Oddmuse|Oddmuse]]
#[[:Category:Oddmuse|Oddmuse]]
#[[: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''.
#[[: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''.
#[[:Category:Wikimedia Foundation|Wikimedia]] ''Special:PopularPages'' seems to be unavailable.  The "Top" sites option at [http://stats.grok.se/ stats.grok.se] can be used for [[:Category:Wikipedia|Wikipedias]], but needs to be summed on a per-month basis.
#[[: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.
#[[:Category:Wikia|Wikia]] — originally, this info could be accessed at ''Special:Mostvisitedpages'' – <code><nowiki>http://YourWikiName.wikia.com/Special:Mostvisitedpages</nowiki></code>, although from September 2011 this tool was removed, and no similar page counter existed for Wikia sites.  Sometime in mid-2012, Wikia reinstated ''Special:Mostvisitedpages'', so this feature is now active again.
#[[:Category:Wikia|Wikia]] – until September 2011, this info could be accessed at ''Special:Mostvisitedpages'' – <code><nowiki>http://YourWikiName.wikia.com/Special:Mostvisitedpages</nowiki></code>, although this tool has now been removed, and no similar page counter exists for Wikia sites.


=====Google Analytics=====
=====Google Analytics=====
If your [[wiki|site]] uses [[wp: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 [[wp: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|Size]]
[[Category:Wiki Size| ]]
[[Category:Wiki Size| ]]
[[Category:wikiFactor| ]]</noinclude>
[[Category:wikiFactor| ]]</noinclude>