Template:Size: Difference between revisions

From WikiIndex
Jump to navigation Jump to search
(move "How to get size information" from WikiProject:By Size)
(wiki factor (plus URL) integrated, new layout, statistics url now an optinal parameter, usage information added)
Line 1: Line 1:
<table><tr><td style="background-color:#EDEDED; border-style:solid; border-width:1px; margin:4px; padding:4px;">
<table><tr><td style="background-color:#EDEDED; border-style:solid; border-width:1px; margin:4px; padding:4px;">
[{{{statistics URL|{{{wiki statistics URL|{{{wiki_statistics_URL}}}}}}}}} Statistics]<br />[[:Category:Wiki Size|Wiki Size]]: {{#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}}}}}}}}}]]}}
[[:Category:Wiki Size|Wiki Size]]:  
</td></tr></table><includeonly>{{#if: {{{pages|{{{wiki pages|{{{wiki_pages|}}}}}}}}}|[[Category:{{SizeCat|{{{pages|{{{wiki pages|{{{wiki_pages}}}}}}}}}}}]]|[[Category:{{{size|{{{wiki size|{{{wiki_size|UnknownSize}}}}}}}}}]]}}{{#if: {{{size|{{{wiki size|{{{wiki_size|}}}}}}}}}|[[Category:old style size cats]]}}</includeonly><noinclude>
{{#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>|}}
{{#if: {{{wiki factor|}}}|<br>[[:Category:Wiki Factor|Wiki Factor]]: {{{wiki factor}}}{{#if: {{{wiki factor URL|}}}|<sup> [{{{wiki factor URL}}} see further info...]</sup>|}}|}}
</td></tr></table>
<noinclude>


==How to get size information==
== Parameters ==
; pages: number of pages (no thousands separator)
: ''alternative parameter names: "wiki pages", "wiki_pages"''
: this is a nessesary parameter
; statistics URL: external link to the wiki's statistics page
: ''alternative parameter names: "wiki statistics URL", "wiki_statistics_URL"''
: this is an optional parameter
; wiki factor: plain value (for a description see [[Proposal:wikiFactor]] and [[Talk:Proposal:wikiFactor]])
: this is an optional parameter
; wiki factor URL: external link to the wiki page that contains the data base the wiki factor was calculated from
: this is an optional parameter
 
== 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><!-- nessesary. plain number of pages, leave blank if unknown --></nowiki>'''
| statistics URL = <nowiki><!-- optional. externam link to statistics page --></nowiki>
| wiki factor = <nowiki><!-- optional. plain wiki factor value --></nowiki>
| wiki factor URL = <nowiki><!-- optional. external link to data base for wiki factor calc. --></nowiki>
'''<nowiki>}}</nowiki>'''
 
:<tt>(Please check against [[Template:NewWiki boilerplate]].)</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)
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>
#[[:Category:MediaWiki|MediaWiki]]: Replace <i>Special:Recentchanges</i> with <i>Special:Statistics</i>
Line 18: Line 46:
#[[:Category:Wikispaces|Wikispaces]]: replace <i>/changes</i> ending the recent changes url with <i>/pagelist</i>
#[[:Category:Wikispaces|Wikispaces]]: replace <i>/changes</i> ending the recent changes url with <i>/pagelist</i>


== boilerplate (new style) ==
== How to calculate the wikiFactor of a site ==
 
Most wiki engines provide global statistics. Here's how to find them for various wiki engines (although it can also depend on version)
When anyone goes to [[Community Portal]] and hits the "Create a New Wiki Page" button, the default boilerplate includes this:
#[[:Category:MediaWiki|MediaWiki]]:  
 
#[[:Category:MoinMoin|MoinMoin]]:
<div style="font-weight:bold">
#[[:Category:UseModWiki|UseModWiki]]:
<nowiki>{{</nowiki>Size
#[[:Category:Pbwiki|Pbwiki]]:
| statistics URL =  No
#[[:Category:PhpWiki|PhpWiki]]:
| pages = <nowiki><!-- number of pages, leave blank if unknown --></nowiki>
#[[:Category:ProWiki|ProWiki]]:
<nowiki>}}</nowiki>
#[[:Category:PmWiki|PmWiki]]:
</div>
#[[:Category:Tikiwiki|Tikiwiki]]:
 
#[[:Category:Twiki|Twiki]]:
(I think this comes from [[Template:NewWiki boilerplate]]).
#[[:Category:Oddmuse|Oddmuse]]:
 
#[[:Category:Wikispaces|Wikispaces]]:
== boilerplate (old style) ==
don't use this style any more, use the new style instead
<s>
<nowiki>{{</nowiki>Size
| statistics URL =  No
| size = [[:Category:Wiki Size (old style)|''Size category'']]
<nowiki>}}</nowiki>
</s>


[[Category:Templates]]
[[Category:Templates]]


</noinclude>
</noinclude>

Revision as of 21:13, 24 March 2009

Wiki Size: UnknownSize


Parameters

pages
number of pages (no thousands separator)
alternative parameter names: "wiki pages", "wiki_pages"
this is a nessesary parameter
statistics URL
external link to the wiki's statistics page
alternative parameter names: "wiki statistics URL", "wiki_statistics_URL"
this is an optional parameter
wiki factor
plain value (for a description see Proposal:wikiFactor and Talk:Proposal:wikiFactor)
this is an optional parameter
wiki factor URL
external link to the wiki page that contains the data base the wiki factor was calculated from
this is an optional parameter

boilerplate

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

{{Size
| pages = <!-- nessesary. plain number of pages, leave blank if unknown -->
| statistics URL = <!-- optional. externam link to statistics page -->
| wiki factor = <!-- optional. plain wiki factor value -->
| wiki factor URL = <!-- optional. external link to data base for wiki factor calc. -->
}}
(Please check against Template:NewWiki boilerplate.)

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)

  1. MediaWiki: Replace Special:Recentchanges with Special:Statistics
We can also add MediaWiki listings to the http://s23.org/wikistats/mediawikis_html.php system which tracks various wiki stats
  1. MoinMoin: Replace RecentChanges with SystemInfo or System_Info
  2. UseModWiki: Replace ?RecentChanges with ?action=index
  3. Pbwiki: Replace any page name with AllPages
  4. PhpWiki: an option: Search for letter "e" in all Titles
  5. ProWiki: Replace ?RecentChanges with ?action=spx
  6. PmWiki: Search for / and scroll to the bottom (maybe searching for main/ would be better)
  7. Tikiwiki: Replace ending /tiki-lastchanges.php with /tiki-stats.php
  8. Twiki: Replace /WebChanges with /WebIndex
  9. Oddmuse: In RecentChanges click on 1 day and replace ?action=rc;days=1;all=0;showedit=0 with ?action=index
  10. Wikispaces: replace /changes ending the recent changes url with /pagelist

How to calculate the wikiFactor of a site

Most wiki engines provide global statistics. Here's how to find them for various wiki engines (although it can also depend on version)

  1. MediaWiki:
  2. MoinMoin:
  3. UseModWiki:
  4. Pbwiki:
  5. PhpWiki:
  6. ProWiki:
  7. PmWiki:
  8. Tikiwiki:
  9. Twiki:
  10. Oddmuse:
  11. Wikispaces: