Difference between revisions of "Module:Is article/doc"
Jump to navigation
Jump to search
blackwiki>Gonnym (←Created page with '<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> {{Lua|Module:Arguments}} '''M...') |
m (3 revisions imported) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| 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|Module:Arguments}} | {{Lua|Module:Arguments}} | ||
| − | '''Module:Is article''' is used to determine if a given page is an article, a redirect, a disambiguation page | + | '''Module:Is article''' is used to determine if a given page is an article, a redirect, a disambiguation page, does not exist or a bad title. |
== Usage == | == Usage == | ||
* {{Mlx|{{BASEPAGENAME}}|main|page_name}} | * {{Mlx|{{BASEPAGENAME}}|main|page_name}} | ||
| + | |||
| + | == Return values == | ||
| + | |||
| + | {| class="wikitable" | ||
| + | |+ Results and return values | ||
| + | |- | ||
| + | ! scope="col" | Result | ||
| + | ! scope="col" | Return value | ||
| + | |- | ||
| + | ! scope="row" | Article | ||
| + | | article | ||
| + | |- | ||
| + | ! scope="row" | Redirect | ||
| + | | redirect | ||
| + | |- | ||
| + | ! scope="row" | Disambiguation page | ||
| + | | dab | ||
| + | |- | ||
| + | ! scope="row" | Page does not exist | ||
| + | | empty | ||
| + | |- | ||
| + | ! scope="row" | bad title | ||
| + | | badtitle | ||
| + | |} | ||
== Parameter list == | == Parameter list == | ||
Latest revision as of 05:44, 27 September 2020
| This module depends on the following other modules: |
Module:Is article is used to determine if a given page is an article, a redirect, a disambiguation page, does not exist or a bad title.
Usage
{{#invoke:Is article|main|page_name}}
Return values
| Result | Return value |
|---|---|
| Article | article |
| Redirect | redirect |
| Disambiguation page | dab |
| Page does not exist | empty |
| bad title | badtitle |
Parameter list
| Parameter | Explanation |
|---|---|
1
|
Positional or numbered parameter; The page name title. |