Template:IsDocSubpage: Difference between revisions
(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}} | ||
) | ) | ||
)<!-- | )<!-- |
Latest revision as of 03:44, 29 June 2022
Returns 'true' if this template has been transcluded on a /doc or /{{{override}}} page.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Output on true | true | Specifies the output of the template when the current page is a /doc subpage.
| String | optional |
Output on false | false | Specifies the output of the template when the current page is not a /doc subpage. | String | optional |
Doc page name override | override | no description
| String | optional |
The above documentation is transcluded from Template:IsDocSubpage/doc. (edit | history)