Module:Unimplemented/doc

From Rosetta Code
Revision as of 13:26, 6 March 2023 by Jgrprior (talk | contribs) (→‎Example: Fix example text)

This is the documentation page for Module:Unimplemented

Module:Unimplemented attempts to work around Semantic MediaWiki's limitations by deriving a list of unimplemented tasks from multiple SMW inline queries. This script could then be invoked from a suitable template.

Usage

Invoke Module:Unimplemented with one of the tasks, drafts or omitted functions and the target language. Here we've used TypeScript as the example language.

{{#invoke:Unimplemented|tasks|TypeScript}}
{{#invoke:Unimplemented|drafts|TypeScript}}
{{#invoke:Unimplemented|omitted|TypeScript}}

Combined unimplemented task page

Unimplemented|page|<language> combines unimplemented tasks, draft tasks and omitted tasks into one function call. It includes sub headings for each list and formats those lists grouped by the first character in a task's title.

{{#invoke:Unimplemented|page|TypeScript}}

Invoking from a template

When invoking Module:Unimplemented from a template and using template parameters as arguments, it is probably a good idea to wrap each call to #invoke in <includeonly></includeonly>. This should prevent unnecessary function calls and improve page load times when viewing the template page directly.

See Control template inclusion for more information.

Example

The following example shows the output of the page function for the Go language.

{{#invoke:Unimplemented|page|Go}}

Tasks not implemented in Go

A

B

C

D

E

F

G

H

I

K

L

N

P

R

S

T

U

V

W

Z

Draft tasks not implemented in Go

3

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

R

S

U

V

W

Tasks omitted from Go