Template:Documentation: Difference between revisions

From BTA-Mirror
imported>JejChainstar
(Created page with "<includeonly> {{#ifexist:{{{1|{{FULLPAGENAME}}}}}/doc |{{ {{{1|{{FULLPAGENAME}}}}}/doc }}Category:Templates with documentation |{{#ifexist:{{{1|{{#titleparts:{{FULLPAGENAME}}|-1}}}}}/doc |{{ {{{1|{{#titleparts:{{FULLPAGENAME}}|-1}}}}}/doc}}Category:Templates with documentation |{{#ifexist:Template:{{{1}}}/doc |{{ {{{1}}}/doc}}Category:Templates with documentation |Category:Templates with no doc...")
imported>Ttv pedro270707
mNo edit summary
Line 1: Line 1:
<includeonly>
<includeonly>{{#invoke: documentation | page }}</includeonly><noinclude>
{{#ifexist:{{{1|{{FULLPAGENAME}}}}}/doc
{{documentation}}
    |{{ {{{1|{{FULLPAGENAME}}}}}/doc }}[[Category:Templates with documentation]]
<!-- Put categories/interwikis on the documentation page -->
    |{{#ifexist:{{{1|{{#titleparts:{{FULLPAGENAME}}|-1}}}}}/doc
            |{{ {{{1|{{#titleparts:{{FULLPAGENAME}}|-1}}}}}/doc}}[[Category:Templates with documentation]]
            |{{#ifexist:Template:{{{1}}}/doc
                |{{ {{{1}}}/doc}}[[Category:Templates with documentation]]
                |[[Category:Templates with no documentation]]{{/doc}}
            }}
    }}
}}</includeonly><noinclude>
{{Documentation/doc}}
</noinclude>
</noinclude>

Revision as of 13:12, 5 March 2023

[view | edit | history | purge]Documentation
File:Lua logo.svg
This template uses Module:Documentation, a script written in Lua.

This template transcludes the template's documentation page automatically, if no documentation is found, the template is added to Category:Templates with no documentation and Template:Doc will be displayed in place.

Argument

Argument Default value Note
1 {{FULLPAGENAME}}/doc Documentation to display.
[view | edit | history | purge]The above documentation is transcluded from Template:Documentation/doc.