Template:GetSubpage/doc: Difference between revisions

From Karteria DWRP Wiki
Jump to navigationJump to search
Icie (talk | contribs)
No edit summary
Icie (talk | contribs)
No edit summary
Line 1: Line 1:
Returns the subpage portion of given text eg: <code><nowiki>{{GetSubpage|Test Drive Meme - March 2025/FAQ Page}}</nowiki></code> gives <code>{{GetSubpage|Test Drive Meme - March 2025/FAQ Page}}</code>
Returns the subpage portion of given text eg: <code><nowiki>{{GetSubpage|Test Drive Meme - March 2025/FAQ Page}}</nowiki></code> gives <code>{{GetSubpage|Test Drive Meme - March 2025/FAQ Page}}</code>
Use <code>category</code> to return the name portion of a category eg <code><nowiki>{{GetSubpage|category|Category:Test Drive Meme}}</nowiki></code> gives <code>{{GetSubpage|category|Category:Test Drive Meme}}</code>
<templatedata>
<templatedata>
{
{

Revision as of 05:20, 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|Category:Test Drive Meme}} gives category

Gives the subpage portion of the provided text

Template parameters

ParameterDescriptionTypeStatus
Page name to retrieve the subpage from1

no description

Page namerequired
categorycategory

specifies that a colon will be the delimiter

Unknownoptional