Difference between revisions of "Free Software Directory:IceCat WebExtensions (proposed)/FSD bugs issue 1"

From Free Software Directory
Jump to: navigation, search
m
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''How to list incomplete IceCat add-ons'''
+
{{Special:PrefixIndex/Free_Software_Directory:IceCat_WebExtensions_(proposed)/}}
 +
<br />
 +
<hr />
 +
<br />
  
We need to list entries with empty '''License''' properties so we can focus to fill them which is required to approve the entries. I don't know how to do it.
+
'''How to list incomplete IceCat add-ons?'''
 +
 
 +
Before I started working on this issue I modified one of the templates responsible for allowing you to '''Create''' a new entry. It is now mandatory for for the "Extensions of" lists to only show entries with License related fields filled: https://directory.fsf.org/wiki?title=Template:Show&diff=prev&oldid=36951
 +
 
 +
Lots of old entries are approved despite that they don't have '''License''' data filled, we need list them so we can unapprove them.
  
 
Then we can proceed to also include this later
 
Then we can proceed to also include this later
Line 8: Line 15:
 
* License verified date
 
* License verified date
  
I've read this:
+
I've read this but still don't know how to do it:
 
* https://stackoverflow.com/questions/31027987/is-an-empty-property-query-possible-in-semantic-media-wiki
 
* https://stackoverflow.com/questions/31027987/is-an-empty-property-query-possible-in-semantic-media-wiki
 
* https://www.semantic-mediawiki.org/wiki/Thread:Semantic-mediawiki.org:Community_portal/Querying_for_non-empty_values
 
* https://www.semantic-mediawiki.org/wiki/Thread:Semantic-mediawiki.org:Community_portal/Querying_for_non-empty_values
Line 15: Line 22:
 
** I'm not seeing any text with EMPTY or UNDEFINED in https://www.mediawiki.org/wiki/Extension:Semantic_Forms/Version_history though.
 
** I'm not seeing any text with EMPTY or UNDEFINED in https://www.mediawiki.org/wiki/Extension:Semantic_Forms/Version_history though.
  
We also need the source of https://directory.fsf.org/wiki?title=Special:ApprovedRevs&show=unapproved so we can tweak to show only unapproved IceCat add-ons.
+
==Todo==
 
 
==Failures==
 
  
 
===Test 1===
 
===Test 1===
<pre>
+
I'm not sure how to implement this solution.
 
 
{{#ask:
 
[[Extension of::IceCat]]
 
[[License::UNDEFINED]]
 
|?Name=
 
|?License=
 
}}
 
  
</pre>
 
 
===Test 2===
 
 
<pre>
 
<pre>
  
Line 47: Line 42:
 
</pre>
 
</pre>
  
===Test 3===
+
==Failures==
 +
 
 +
===Test 1===
 +
<pre>
 +
 
 +
{{#ask:
 +
[[Extension of::IceCat]]
 +
[[License::UNDEFINED]]
 +
|?Name=
 +
|?License=
 +
}}
 +
 
 +
</pre>
 +
 
 +
===Test 2===
 
<pre>
 
<pre>
  
Line 61: Line 70:
 
</pre>
 
</pre>
  
==Templates==
+
==Template==
 +
This template is valid but it does not do what we want. However, we use it as a template and and it is modified from https://directory.fsf.org/wiki?title=Template:Show&action=edit
  
===TODO - modify this test template===
+
<pre>
In this test case in which we query empty License entries. License::+ should be replaced by something else.
 
  
 
{{#ask:
 
{{#ask:
Line 73: Line 82:
 
}}
 
}}
  
===Stable template===
+
</pre>
Modified from https://directory.fsf.org/wiki?title=Template:Show&action=edit
+
 
 +
Output:
 +
 
 +
 
 
{{#ask:
 
{{#ask:
 
[[Extension of::IceCat]]
 
[[Extension of::IceCat]]

Latest revision as of 11:02, 5 September 2017




How to list incomplete IceCat add-ons?

Before I started working on this issue I modified one of the templates responsible for allowing you to Create a new entry. It is now mandatory for for the "Extensions of" lists to only show entries with License related fields filled: https://directory.fsf.org/wiki?title=Template:Show&diff=prev&oldid=36951

Lots of old entries are approved despite that they don't have License data filled, we need list them so we can unapprove them.

Then we can proceed to also include this later

  • License copyright
  • License verified
  • License verified date

I've read this but still don't know how to do it:

Todo

Test 1

I'm not sure how to implement this solution.


<noinclude>
Use this template as:

{{ExampleTemplate
|License=
}}
</noinclude><includeonly>
The value of ExampleLicense is:
{{#if: {{{License}}} | [[Extension of::{{{License}}}]] | [[ExampleLicense::UNDEFINED]] }}
<includeonly>

Failures

Test 1


{{#ask:
[[Extension of::IceCat]]
[[License::UNDEFINED]]
|?Name=
|?License=
}}

Test 2


{{#if: [[License::UNDEFINED]]

{{#ask: [[Extension of::IceCat]]
|?Name=
|?License=
}}

}}

Template

This template is valid but it does not do what we want. However, we use it as a template and and it is modified from https://directory.fsf.org/wiki?title=Template:Show&action=edit


{{#ask:
[[Extension of::IceCat]]
[[License::+]]
|?Name=
|?License=
}}

Output:




Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the page “GNU Free Documentation License”.

The copyright and license notices on this page only apply to the text on this page. Any software or copyright-licenses or other similar notices described in this text has its own copyright notice and license, which can usually be found in the distribution or license text itself.