Difference between revisions of "Widget:Ohloh Project"

From coreboot
Jump to: navigation, search
(Created page with "test")
 
 
Line 1: Line 1:
test
+
<noinclude>__NOTOC__
 +
This widget allows you to add '''[http://www.ohloh.net/projects/11667/widgets Ohloh Project Widgets]''' to your wiki page.
 +
 
 +
It was created by [[mediawikiwiki:User:Sergey Chernyshev|Sergey Chernyshev]].
 +
 
 +
To insert this widget, use the following code:
 +
 
 +
<nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>|id=mediawiki-widgets|type=thin_badge}}</nowiki>
 +
 
 +
== Parameters ==
 +
* '''id''' is a number or string in project profile page URL
 +
* '''type''' is a one of the following:
 +
** '''users''' - users voting button
 +
*** use optional '''style''' parameter to change the style of the voting button ('''gray''', '''red''', '''green''', '''blue''', '''rainbow''')
 +
** '''thin_badge''' (default) - Thin Badge
 +
** '''partner_badge''' - Partner Badge
 +
** '''languages''' - Languages summary
 +
** '''cocomo''' - Cocomo cost summary
 +
** '''factoids''' - Project Factoids
 +
** '''basic_stats''' - Project Stats
 +
 
 +
{{Template:Copy to your site}}
 +
== Sample result ==
 +
=== Voting button ===
 +
<nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>|id=mediawiki-widgets|type=users|style=rainbow}}</nowiki>
 +
{{#widget:{{PAGENAME}}|id=mediawiki-widgets|type=users|style=rainbow}}
 +
=== Thin Badge ===
 +
<nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>|id=mediawiki-widgets|type=thin_badge}}</nowiki>
 +
{{#widget:{{PAGENAME}}|id=mediawiki-widgets|type=thin_badge}}
 +
=== Partner Badge ===
 +
<nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>|id=mediawiki-widgets|type=partner_badge}}</nowiki>
 +
{{#widget:{{PAGENAME}}|id=mediawiki-widgets|type=partner_badge}}
 +
=== Languages summary ===
 +
<nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>|id=mediawiki-widgets|type=languages}}</nowiki>
 +
{{#widget:{{PAGENAME}}|id=mediawiki-widgets|type=languages}}
 +
=== Cocomo cost summary ===
 +
<nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>|id=mediawiki-widgets|type=cocomo}}</nowiki>
 +
{{#widget:{{PAGENAME}}|id=mediawiki-widgets|type=cocomo}}
 +
=== Project Factoids ===
 +
<nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>|id=mediawiki-widgets|type=factoids}}</nowiki>
 +
{{#widget:{{PAGENAME}}|id=mediawiki-widgets|type=factoids}}
 +
=== Project Stats ===
 +
<nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>|id=mediawiki-widgets|type=basic_stats}}</nowiki>
 +
{{#widget:{{PAGENAME}}|id=mediawiki-widgets|type=basic_stats}}
 +
</noinclude><includeonly><!--{if $type ne 'thin_badge' and $type ne 'partner_badge' and $type ne 'languages' and $type ne 'cocomo' and $type ne 'factoids' and $type ne 'basic_stats' and $type ne 'users'}--><!--{assign var='type' value='thin_badge'}--><!--{/if}--><script type="text/javascript" src="http://www.ohloh.net/projects/<!--{$id|escape:'urlpathinfo'}-->/widgets/project_<!--{$type|escape:'urlpathinfo'|default:'thin_badge'}--><!--{if isset($style) and $type eq 'users'}-->?style=<!--{$style|escape:'urlpathinfo'}--><!--{/if}-->"></script></includeonly>

Latest revision as of 23:15, 23 February 2011

This widget allows you to add Ohloh Project Widgets to your wiki page.

It was created by Sergey Chernyshev.

To insert this widget, use the following code:

{{#widget:Ohloh Project|id=mediawiki-widgets|type=thin_badge}}

Parameters

  • id is a number or string in project profile page URL
  • type is a one of the following:
    • users - users voting button
      • use optional style parameter to change the style of the voting button (gray, red, green, blue, rainbow)
    • thin_badge (default) - Thin Badge
    • partner_badge - Partner Badge
    • languages - Languages summary
    • cocomo - Cocomo cost summary
    • factoids - Project Factoids
    • basic_stats - Project Stats

Template:Copy to your site

Sample result

Voting button

{{#widget:Ohloh Project|id=mediawiki-widgets|type=users|style=rainbow}}

Thin Badge

{{#widget:Ohloh Project|id=mediawiki-widgets|type=thin_badge}}

Partner Badge

{{#widget:Ohloh Project|id=mediawiki-widgets|type=partner_badge}}

Languages summary

{{#widget:Ohloh Project|id=mediawiki-widgets|type=languages}}

Cocomo cost summary

{{#widget:Ohloh Project|id=mediawiki-widgets|type=cocomo}}

Project Factoids

{{#widget:Ohloh Project|id=mediawiki-widgets|type=factoids}}

Project Stats

{{#widget:Ohloh Project|id=mediawiki-widgets|type=basic_stats}}