Difference between revisions of "Category talk:TAFI article/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Evad37
(creating documentation)
 
blackwiki>Evad37
(Module:Redirect)
Line 1: Line 1:
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
{{Lua|Redirect}}
+
{{Lua|Module:Redirect}}
 
This module retrieves the page name from the (year)/(week)/1 subpages of [[WP:TAFI]]. If the page is a redirect, the redirect target is retrieved instead.
 
This module retrieves the page name from the (year)/(week)/1 subpages of [[WP:TAFI]]. If the page is a redirect, the redirect target is retrieved instead.
 
== Usage ==
 
== Usage ==

Revision as of 02:01, 10 February 2016

This module retrieves the page name from the (year)/(week)/1 subpages of WP:TAFI. If the page is a redirect, the redirect target is retrieved instead.

Usage

To retrieve the current article, use

{{#invoke:TAFI article|main}}

To retrieve the article for a specific year and week, use

{{#invoke:TAFI article|main|YYYY=|WW=}}

Examples

Current article (Script error: No such module "Purge". to update)
{{#invoke:TAFI article|main}}Lua error: expandTemplate: template "Wikipedia:Today's articles for improvement/2025/47/1" does not exist.
Article from 2015 week 32
{{#invoke:TAFI article|main|YYYY=2015|WW=32}}Lua error: expandTemplate: template "Wikipedia:Today's articles for improvement/2015/32/1" does not exist.
Resolving a redirect
{{Wikipedia:Today's articles for improvement/9999/2/1}} → {{Wikipedia:Today's articles for improvement/9999/2/1}}
[[{{#invoke:TAFI article|main|YYYY=9999|WW=2}}]] → [[Lua error: expandTemplate: template "Wikipedia:Today's articles for improvement/9999/2/1" does not exist.]]