Jgrprior

Joined 25 August 2022
Restore example after module fix
(Excellent Python versions. Many thanks.)
(Restore example after module fix)
 
(7 intermediate revisions by the same user not shown)
Line 14:
 
: Excellent Python versions. Many thanks. [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 10:11, 28 July 2022 (UTC)
 
== Experimental unimplemented tasks by language ==
 
The [https://www.mediawiki.org/wiki/Extension:Scribunto Lua script] defined at
[[Module:Unimplemented]] attempts to work around [https://www.semantic-mediawiki.org/wiki/Help:Selecting_pages Semantic MediaWiki's limitations]
by deriving a list of unimplemented tasks from multiple SMW [https://www.semantic-mediawiki.org/wiki/Help:Inline_queries inline queries].
This script could then be invoked from a suitable [https://www.mediawiki.org/wiki/Help:Templates template].
 
The early, untested assumption is that this approach will be too inefficient to be useful,
especially considering the SMW query result limit of 500 records.
 
: Initial tests have indeed show this approach to be far too slow. [[User:Jgrprior|Jgrprior]] ([[User talk:Jgrprior|talk]]) 07:02, 2 October 2022 (UTC)
 
:: Replacing <code>mw.text.split</code> with a local split function has resolved some of the speed problems. [[User:Jgrprior|Jgrprior]] ([[User talk:Jgrprior|talk]]) 07:25, 7 February 2023 (UTC)
 
=== Usage ===
 
[https://www.mediawiki.org/wiki/Extension:Scribunto#Usage Invoke] [[Module:Unimplemented]]
with one of the <code>tasks</code>, <code>drafts</code> or <code>omitted</code> functions and the target language.
Here we've used <code>TypeScript</code> as the example language.
 
<pre>
<nowiki>{{#invoke:</nowiki>Unimplemented|tasks|TypeScript}}
</pre>
 
<pre>
<nowiki>{{#invoke:</nowiki>Unimplemented|drafts|TypeScript}}
</pre>
 
<pre>
<nowiki>{{#invoke:</nowiki>Unimplemented|omitted|TypeScript}}
</pre>
 
=== Example ===
 
The following example output from invoking [[Module:Unimplemented]] will likely change during development of the script.
 
<pre>
<nowiki>{{#invoke:</nowiki>Unimplemented|tasks|Go}}
</pre>
 
{{#invoke:Unimplemented|tasks|Go}}
140

edits