Template:Documentation: Difference between revisions

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
m (Protected "Template:Documentation": Used in all templates. ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)))
 
(16 intermediate revisions by 2 users not shown)
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 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>

Latest revision as of 20:26, 29 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 Edit

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