Template:TemplateOrCopy: Difference between revisions
Jump to navigation
Jump to search
Created page with "<includeonly>{{#invoke: TemplateOrCopy | templateHelper }}</includeonly><noinclude> === Documentation === This helper template simplifies calling templates that have editcopy versions. It automatically determines whether the current page is an editcopy and calls the appropriate template version. === Behavior === * If the current page is an editcopy (subpage named 'editcopy'), it calls {{tcode|TemplateName/editcopy}} * If the current page is not an editcopy, it calls the..." |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 19: | Line 19: | ||
<!-- Template categories/interwiki here --> | <!-- Template categories/interwiki here --> | ||
[[Category: | [[Category:Maintenance templates]] | ||
[[Category:Lua-based templates]] | [[Category:Lua-based templates]] | ||
[[ru:Template: | [[ru:Template:ШаблонИлиКопия]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 18:27, 15 January 2026
Documentation
This helper template simplifies calling templates that have editcopy versions. It automatically determines whether the current page is an editcopy and calls the appropriate template version.
Behavior
- If the current page is an editcopy (subpage named 'editcopy'), it calls
{{TemplateName/editcopy}} - If the current page is not an editcopy, it calls the base
{{TemplateName}}
Usage
{{TemplateOrCopy | TemplateName}}
Examples
{{TemplateOrCopy | Main Page/Section languages}}
On a regular page, this calls {{Main Page/Section languages}}
On an editcopy page, this calls {{Main Page/Section languages/editcopy}}