Template

Documentation2

From Dogcraft Wiki

mNo edit summary
mNo edit summary
Line 1: Line 1:
{{Templates Nav}} {{#ifexist: Template:{{BASEPAGENAME}}/styles.css | {{TemplateStyles}} }}
<includeonly>{{Templates Nav}} {{#ifexist: Template:{{BASEPAGENAME}}/styles.css | {{TemplateStyles}} }}
{{Clip codeblock|name=template|{{Template source|{{BASEPAGENAME}}}}}}
{{Codeblock|title=Template source|name=template|{{Template source|{{BASEPAGENAME}}}}}}
 
== Template documentation ==
== Template documentation ==
{{{1| {{{{BASEPAGENAME}}/doc}} }}}
{{{1| {{{{BASEPAGENAME}}/doc}} }}}
 
</includeonly><noinclude> {{WIP}}
{{Clip codeblock|name=demo|{{Template source|Infobox Project}}}}
{{documentation2}}

Revision as of 02:22, 1 February 2026

Index of templates
Template source
{{Templates Nav}} {{#ifexist: Template:{{BASEPAGENAME}}/styles.css | {{TemplateStyles}} }}
{{Codeblock|title=Template source|name=template|{{Template source|{{BASEPAGENAME}}}}}}

== Template documentation ==
{{{1| {{{{BASEPAGENAME}}/doc}} }}}
Show full sourceHide full source

Template documentation

Documentation can be written on a /doc subpage, which will automatically be transcluded.

The /doc subpage should start at 3rd level headings

Because the template itself uses a 2nd level heading for the Template documentation top header.

If it has enough headings

The TOC will work properly and not be duplicated

Right??

It needs several headings for a TOC to trigger.

Like

this.

This page was last modified on 1 February 2026, at 02:22. (12 days ago)