Template:Template: Difference between revisions

From KDE Community Wiki
No edit summary
(Use a bc to show the default message in a block code; include the Template:Template itself to Template category.)
 
Line 1: Line 1:
<noinclude>
<noinclude>This template inserts generic information about a template, and adds the page to [[:Category:Template]]. Use it on template pages that don't have better documentation.
This template inserts generic information about a template, and adds the page to [[:Category:Template]]. Use it on template pages that don't have better documentation.


The content that it inserts is:
== Usage example ==
----
</noinclude>{{#ifeq:{{NAMESPACE}}|Template||'''Note: this page should be moved to the Template namespace'''


}}This page is a template, editing it will affect all the pages that make use of it, so users should be especially careful when editing it.
{{bc|<nowiki>{{Template}}</nowiki>}}


You can include this content in another page by using the wiki markup {{#ifeq:{{NAMESPACE}}|Template|<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>}}</nowiki>|<nowiki>{{</nowiki>{{FULLPAGENAME}}<nowiki>}}</nowiki>}}. For more details on how to use templates see [http://en.wikipedia.org/wiki/Help:A_quick_guide_to_templates "A Quick Guide to Templates"].
== Result ==
<noinclude>
 
----
{{Template}}
[End of content that it inserts]
</noinclude><includeonly>{{bc|This page is a template, editing it will affect all the pages that make use of it, so users should be especially careful when editing it. For more details on how to use templates see [http://en.wikipedia.org/wiki/Help:A_quick_guide_to_templates "A Quick Guide to Templates"]}}
</noinclude>
[[Category:Template]]</includeonly>
<includeonly>[[Category:Template]]</includeonly>

Latest revision as of 20:50, 29 September 2023

This template inserts generic information about a template, and adds the page to Category:Template. Use it on template pages that don't have better documentation.

Usage example

{{Template}}

Result

This page is a template, editing it will affect all the pages that make use of it, so users should be especially careful when editing it. For more details on how to use templates see "A Quick Guide to Templates"