User:JanKlaaseen View history

No edit summary
(Blanked the page)
Tag: Blanking
Line 1: Line 1:
<includeonly>
<div class="row">
  <div class="large-8 column">
    <div class="row">
      <div class="large-3 column">Name:</div>
      <div class="large-9 column">{{PAGENAME}}{{#set:Name={{PAGENAME}}}} (ID: [[Has ID::{{PAGEID}}]]){{#if: {{{MediaWiki.org title|}}} |
<br/><small>Also known as [[Has MediaWikiOrg title::{{{MediaWiki.org title|}}}]].</small>
}}</div>
    </div>


    <div class="row">
      <div class="large-3 column">URL:</div>
      <div class="large-9 column">{{#if: {{{URL|}}}
| <!-- URL provided, use it -->[[Has URL::{{{URL|}}}]]
| <!-- no URL provided, find what the wiki knows -->{{#arraydefine: urls
  | {{#ask: [[Has extension::{{FULLPAGENAME}}]] [[Has extension URL::+]] [[Has website::+]]
    |?Has extension URL
    |format=array
    |limit=1000
    |link=none
    |sort=Has extension URL
    |headers=hide
    |mainlabel=-
    |sep=,
    |manysep=,
  }}
| , | sort=asc, unique
}}<!-- we should only get 1 URL -->{{
#ifeq: {{#arraysize: urls}} | 1 | ''[[Has URL::{{#arrayindex:urls|0}}]]''
}}{{
#ifeq: {{#arraysize: urls}} | 0 | ''This extension does not provide a URL programmatically.''
}}<!-- if there are 2 URLs, check to see if they are equivalent except for HTTP(S) -->{{
#ifeq: {{#arraysize: urls}} | 2 | {{
#ifeq: {{#replace: {{#arrayindex:urls|0}} | http: | https: }} | {{#replace: {{#arrayindex:urls|1}} | http: | https: }}
| ''[[Has URL::{{ #replace: {{#arrayindex:urls|0}} | http: | https: }}]]''
| ''Cannot set URL automatically because multiple URLs were found:<br/>{{#arrayprint:urls|<br/>}}''
}}
}}<!-- otherwise, don't set it and just return whatever URLs were found -->{{
#ifexpr: {{#arraysize: urls}} > 2 | ''Cannot set URL automatically because multiple URLs were found:<br/>{{#arrayprint:urls|<br/>}}''
}}
}}
      </div>
    </div>
    <div class="row">
      <div class="large-3 column">Description:</div>
      <div class="large-9 column">{{#set: Has description={{{Description|}}} }} {{#show: {{FULLPAGENAME}} |?Has description }}</div>
    </div>
    <div class="row">
      <div class="large-3 column">Author(s):</div>
      <div class="large-9 column">{{#if: {{{Author|}}}
| <!-- author provided, use it -->{{#arraymap:{{{Author|}}}|,|@@@@| {{#set: Has author=@@@@}}{{#queryformlink:form=Extension by Author|link text=@@@@|link type=|query string=Extension by Author[Author]={{urlencode:@@@@}}&wpRunQuery=true|tooltip=Show extensions by @@@@}}}}
| <!-- no author provided, find what the wiki knows -->{{#arraydefine: authors
  | {{#ask: [[Has extension::{{FULLPAGENAME}}]] [[Has author::+]] [[Has website::+]]
    |?Has author
    |format=array
    |limit=1000
    |link=none
    |sort=Has author
    |headers=hide
    |mainlabel=-
    |sep=,
    |manysep=,
  }}
| , | sort=asc, unique
}}''{{
  #arrayprint:authors|,&nbsp;|@@@@|{{#set: Has author=@@@@}}{{#queryformlink:form=Extension by Author|link text=@@@@|link type=|query string=Extension by Author[Author]={{urlencode:@@@@}}&wpRunQuery=true|tooltip=Show extensions by @@@@}}
  }}''
}}
      </div>
    </div>
    <div class="row">
      <div class="large-3 column">License:</div>
      <div class="large-9 column">{{#arraydefine: licenses
| {{#ask: [[Has extension::{{FULLPAGENAME}}]] [[Has extension license name::+]] [[Has website::+]]
  |?Has extension license name
  |format=array
  |limit=1000
  |link=none
  |sort=Has extension license name
  |headers=hide
  |mainlabel=-
  |sep=,
  |manysep=,
}}
| , | sort=asc, unique
}}{{#arrayprint: licenses|,&nbsp;|@@@@|[[Has extension license name::@@@@]]}}
      </div>
    </div>
    <div class="row">
      <div class="large-3 column">Current version:</div>
      <div class="large-9 column">{{
#ifeq: {{{Not versioned|}}} | Yes
| {{#set: Is not versioned=True | Has current version=— }}This extension does not use versions.
| {{#set: Is not versioned=False}}[[Has current version::{{{Current version|}}}]]
}}
      </div>
    </div>
    <div class="row">
      <div class="large-3 column">Extension type(s):</div>
      <div class="large-9 column">{{#if: {{{Type|}}}
  | <!-- extension type provided, use it -->{{#arraymap:{{{Type|}}}|,|@@@@|[[Has extension type::@@@@]]}}
  | <!-- no extension type provided, find what the wiki knows -->{{#arraydefine: extension_types
    | {{#ask: [[Has extension::{{FULLPAGENAME}}]] [[Has extension type::+]] [[Has website::+]]
      |?Has extension type
      |format=array
      |limit=1000
      |link=none
      |sort=Has extension type
      |headers=hide
      |mainlabel=-
      |sep=,
      |manysep=,
    }}
  | , | sort=asc, unique
  }}''{{
  #arrayprint:extension_types|,&nbsp;|@@@@|[[Has extension type::@@@@]]
  }}''
}}
      </div>
    </div>
    <div class="row">
      <div class="large-3 column">Tags:</div>
      <div class="large-9 column">{{#if: {{{Tags|}}} | {{#arraymap:{{{Tags|}}}|,|@@@@|{{#set: Has tag=@@@@}}{{#queryformlink:form=Extension by Tag|link text=@@@@|link type=|query string=Extension by Tag[Tag]={{urlencode:@@@@}}&wpRunQuery=true|tooltip=Show extensions tagged @@@@}}}} | ''So far this extension has not been tagged.'' }}</div>
    </div>
    <div class="row">
      <div class="large-3 column">Composer:</div>
      <div class="large-9 column">{{#if: {{{Composer vendor|}}} | [https://packagist.org/packages/{{{Composer vendor|}}}/{{{Composer package|}}} [[Has composer vendor::{{{Composer vendor|}}}]]/[[Has composer package::{{{Composer package|}}}]]] | ''Composer information is not available for {{PAGENAME}}.<br />[https://packagist.org/search/?q={{PAGENAME}} Search Packagist for {{PAGENAME}}].'' }}</div>
    </div>
    <div class="row">
      <div class="large-3 column">OpenHub:</div>
      <div class="large-9 column">{{#if: {{{OpenHub project|}}} | {{#set: Has OpenHub project={{{OpenHub project}}}]]}} [https://www.openhub.net/p/{{{OpenHub project}}} {{{OpenHub project}}}]}}</div>
    </div>
    <div class="row">
      <div class="large-3 column">Website count:</div>
      <div class="large-9 column">{{
    #vardefine: farm_website_extension | {{#ask:[[Has subobject.Has extension::{{FULLPAGENAME}}]] [[Is in farm::true]] [[Is defunct::false]] | format=count }} }}{{
    #vardefine: standalone_website_extension | {{#ask:[[Has subobject.Has extension::{{FULLPAGENAME}}]] [[Is in farm::false]] [[Is defunct::false]] | format=count }} }}{{
    #vardefine: farm_website_count | {{#ask: [[Category:Website]] [[Is defunct::false]] [[Is in farm::true]] [[Collect extension data::True]] | format=count }} }}{{
    #vardefine: standalone_website_count | {{#ask: [[Category:Website]] [[Is defunct::false]] [[Is in farm::false]] [[Collect extension data::True]] | format=count }}
    }}
[[Has website count::{{#expr: {{#var:farm_website_extension}} + {{#var:standalone_website_extension}} }}]] ([[Has website percent::{{#expr: ( ( ( {{#var:farm_website_extension}} + {{#var:standalone_website_extension}} ) / ( {{#var: farm_website_count}} + {{#var: standalone_website_count}} ) ) * 100 ) round2 }}]]%)<br /><small>Farm: [[Has farm website count::{{#var:farm_website_extension}}]] ([[Has farm website percent::{{#expr: ( ( {{#var:farm_website_extension}} / {{#var: farm_website_count}} ) * 100 ) round2 }}]]%) – Standalone: [[Has standalone website count::{{#var: standalone_website_extension}}]] ([[Has standalone website percent::{{#expr: ( ( {{#var: standalone_website_extension}} / {{#var: standalone_website_count}} ) * 100 ) round2 }}]]%)</small></div>
    </div>
    <div class="row">
      <div class="large-3 column">Note:</div>
      <div class="large-9 column">{{#if: {{{Note|}}} | {{#set: Has note={{{Note|}}} }} {{#show: {{FULLPAGENAME}} |?Has note }} | ''So far no note has been added for this extension.'' }}</div>
    </div>
    <div class="row">
      <div class="large-3 column">Segments:</div>
      <div class="large-9 column">Day: [[Has day segment::{{ #expr: {{PAGEID}} mod 7 }}]] Hour: [[Has hour segment::{{ #expr: {{PAGEID}} mod 24 }}]]</div>
    </div>
<div class="row">
      <div class="large-4 column"> <big>'''Ratings:'''</big> </div>
      <div class="large-8 column">{{#ask:[[Category:Reviews]][[Has item::{{FULLPAGENAME}}]]|format=count}} {{#ifexpr: {{#ask:[[Category:Reviews]] [[Has item::{{FULLPAGENAME}}]] |format=count }} > 1  | people have | person has }} rated this extension </div>
</div>
<div class="row">
      <div class="large-4 column"> Ease of Installation: </div>
      <div class="large-8 column"> {{#rating:{{#ask:[[Category:Reviews]][[Has item::{{FULLPAGENAME}}]]|?Has ease of installation rating|format=average}}}} </div>
</div>
<div class="row">
      <div class="large-4 column"> Usability: </div>
      <div class="large-8 column">{{#rating:{{#ask:[[Category:Reviews]][[Has item::{{FULLPAGENAME}}]]|?Has usability rating|format=average}}}} </div>
</div>
<div class="row">
      <div class="large-4 column"> Documentation Quality: </div>
      <div class="large-8 column"> {{#rating:{{#ask:[[Category:Reviews]][[Has item::{{FULLPAGENAME}}]]|?Has documentation quality rating|format=average}}}} </div>
</div>
<div class="row">
      <div class="large-12 column">
{{#if: {{CURRENTLOGGEDUSER}} |
{{#formlink:form=ExtensionReview
  | link text=Rate this Extension
  | link type=button
  | query string=ExtensionReview[Extension]={{FULLPAGENAME}}&ExtensionReview[User]=User:{{CURRENTLOGGEDUSER}}
}}
| [[Special:UserLogin|Login]] to rate this extension.
}}<!-- if CURRENTLOGGEDUSER -->
      </div>
</div>
{{#if: {{{Related|}}}
    <div class="row">
      <div class="large-12 column">Wikis that use '''{{PAGENAME}}''' also use these extensions:<br/>
{{#arraymap:{{{Related|}}}|,|@@@@|[[Has related extension::Extension:@@@@|@@@@]]}}
      </div>
    </div>
}}
  </div>
  <div class="large-4 column">
{{#if:{{{Image|}}}
|{{#set:Has image=File:{{{Image|}}}}}[[File:{{{Image|}}}|135x135px|alt=Image for {{PAGENAME}}|link=]]
|{{#set:Has image=File:Default extension image.png}}[[File:Default extension image.png|135x135px|alt=Default extension image|link=]]
}}
  </div>
</div>
{{#ifeq: {{{Not versioned|}}}
| Yes
| <!-- no graphs if not versioned -->
| {{#ask:
[[Has extension::{{FULLPAGENAME}}]]
[[Has extension version::!~*MLEB*]]
|?Has extension version=Version
|mainlabel=-
|format=jqplotchart
|charttype=bar
|distribution=yes
|highlighter=yes
|datalabels=percent
|ticklabels=yes
|theme=simple
|min=0
|charttitle={{PAGENAME}} Versions
|chartlegend=yes
|headers=show
|link=all
|sort=Has extension version
|order=descending
|limit=5000
}}
{{Extension version grid|Extension={{PAGENAME}}}}
}}<!-- if not versioned -->
{{#ask:
[[Has extension::{{FULLPAGENAME}}]]
|?Has website=Wiki name
|?Has MediaWiki version=MediaWiki version
|?Has extension version=Extension version
|format=table
|link=all
|mainlabel=-
|headers=show
|sort=Has website
|order=rand
|intro=<b>This extension is in use on the following websites:</b><br />
|searchlabel=… further results
|class=sortable wikitable smwtable
|default=This extension is no longer in use on any website.
}}
{{DEFAULTSORT:{{PAGENAME}}}}
[[Category:Extension]]
</includeonly>

Revision as of 19:53, 15 May 2020