Difference between revisions of "Widget:Ohloh Project"

From COPTR
Jump to navigation Jump to search
(Created page with "<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 mediawikiw...")
 
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
  
 
It was created by [[mediawikiwiki:User:Sergey Chernyshev|Sergey Chernyshev]].
 
It was created by [[mediawikiwiki:User:Sergey Chernyshev|Sergey Chernyshev]].
 +
 +
It was copied from http://www.mediawikiwidgets.org/Widget:Ohloh_Project
  
 
To insert this widget, use the following code:
 
To insert this widget, use the following code:
Line 20: Line 22:
 
** '''basic_stats''' - Project Stats
 
** '''basic_stats''' - Project Stats
  
{{Template:Copy to your site}}
 
 
== Sample result ==
 
== Sample result ==
 
=== Voting button ===
 
=== Voting button ===
Line 43: Line 44:
 
  <nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>|id=mediawiki-widgets|type=basic_stats}}</nowiki>
 
  <nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>|id=mediawiki-widgets|type=basic_stats}}</nowiki>
 
{{#widget:{{PAGENAME}}|id=mediawiki-widgets|type=basic_stats}}
 
{{#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>
+
</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="https://www.openhub.net/projects/<!--{$id|escape:'urlpathinfo'}-->/widgets/project_<!--{$type|escape:'urlpathinfo'|default:'thin_badge'}-->?format=js<!--{if isset($style) and $type eq 'users'}-->&style=<!--{$style|escape:'urlpathinfo'}--><!--{/if}-->"></script></includeonly>

Latest revision as of 22:21, 25 May 2021

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

It was created by Sergey Chernyshev.

It was copied from http://www.mediawikiwidgets.org/Widget:Ohloh_Project

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

Sample result

Voting button

{{#widget:Ohloh Project|id=mediawiki-widgets|type=users|style=rainbow}}
Error in widget Ohloh Project: unable to write file /var/www/html/extensions/Widgets/compiled_templates/wrt673f12fd5a3608_94713569

Thin Badge

{{#widget:Ohloh Project|id=mediawiki-widgets|type=thin_badge}}
Error in widget Ohloh Project: unable to write file /var/www/html/extensions/Widgets/compiled_templates/wrt673f12fd5e2f28_20998417

Partner Badge

{{#widget:Ohloh Project|id=mediawiki-widgets|type=partner_badge}}
Error in widget Ohloh Project: unable to write file /var/www/html/extensions/Widgets/compiled_templates/wrt673f12fd617a88_58117589

Languages summary

{{#widget:Ohloh Project|id=mediawiki-widgets|type=languages}}
Error in widget Ohloh Project: unable to write file /var/www/html/extensions/Widgets/compiled_templates/wrt673f12fd64f3d8_68560603

Cocomo cost summary

{{#widget:Ohloh Project|id=mediawiki-widgets|type=cocomo}}
Error in widget Ohloh Project: unable to write file /var/www/html/extensions/Widgets/compiled_templates/wrt673f12fd680112_58115737

Project Factoids

{{#widget:Ohloh Project|id=mediawiki-widgets|type=factoids}}
Error in widget Ohloh Project: unable to write file /var/www/html/extensions/Widgets/compiled_templates/wrt673f12fd6d7038_71535213

Project Stats

{{#widget:Ohloh Project|id=mediawiki-widgets|type=basic_stats}}
Error in widget Ohloh Project: unable to write file /var/www/html/extensions/Widgets/compiled_templates/wrt673f12fd70cc01_02766501