Template:GetSubpage/doc: Difference between revisions
From Karteria DWRP Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 10: | Line 10: | ||
"required": true, | "required": true, | ||
"label": "Page name to retrieve the subpage from" | "label": "Page name to retrieve the subpage from" | ||
}, | |||
"2": { | |||
"label": "type", | |||
"description": "if \"category\" extracts the name of the category", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"category" | |||
] | |||
}, | }, | ||
"category": { | "category": { | ||
Revision as of 05:31, 16 January 2026
Returns the subpage portion of given text eg: {{GetSubpage|Test Drive Meme - March 2025/FAQ Page}} gives FAQ Page
Use category to return the name portion of a category eg {{GetSubpage|Category:Test Drive Meme|category}} gives Test Drive Meme
Gives the subpage portion of the provided text
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Page name to retrieve the subpage from | 1 | no description | Page name | required |
| type | 2 | if "category" extracts the name of the category
| String | optional |
| category | category | specifies that a colon will be the delimiter | Unknown | optional |