Template:IsDocSubpage: Difference between revisions

From Foundry Wiki
(Created page with "<onlyinclude><includeonly>{{#ifexpr: ( {{#ifeq:{{lc:{{SUBPAGENAME}}}}|{{lc:{{{override|doc}}}}}|1|0}} or ( {{#ifeq:{{lc:{{#titleparts:{{FULLPAGENAME}}|-1|-2}}}}|{{lc:{{{override|doc}}}}}|1|0}} and {{#if:{{#invoke:Template translation|getLanguageSubpage}}|1|0}} ) )<!-- -->|{{{true|1}}}<!-- -->|{{{false|}}}<!-- -->}}</includeonly></onlyinclude> <noinclude> {{doc}} Category:Formatting templates </noinclude>")
 
No edit summary
 
Line 2: Line 2:
{{#ifeq:{{lc:{{SUBPAGENAME}}}}|{{lc:{{{override|doc}}}}}|1|0}} or (
{{#ifeq:{{lc:{{SUBPAGENAME}}}}|{{lc:{{{override|doc}}}}}|1|0}} or (
{{#ifeq:{{lc:{{#titleparts:{{FULLPAGENAME}}|-1|-2}}}}|{{lc:{{{override|doc}}}}}|1|0}}
{{#ifeq:{{lc:{{#titleparts:{{FULLPAGENAME}}|-1|-2}}}}|{{lc:{{{override|doc}}}}}|1|0}}
and {{#if:{{#invoke:Template translation|getLanguageSubpage}}|1|0}}
)
)
)<!--
)<!--

Latest revision as of 03:44, 29 June 2022


Template-info.png Documentation

Returns 'true' if this template has been transcluded on a /doc or /{{{override}}} page.

Template parameters

ParameterDescriptionTypeStatus
Output on truetrue

Specifies the output of the template when the current page is a /doc subpage.

Default
1
Stringoptional
Output on falsefalse

Specifies the output of the template when the current page is not a /doc subpage.

Stringoptional
Doc page name overrideoverride

no description

Default
doc
Stringoptional
Edit parameter translations