Template:Pp-template/doc: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Debresser m typo |
meta>Debresser m minor layout |
||
Line 13: | Line 13: | ||
* When {{tlx|{{lc:{{PAGENAME}}}}}} is added directly in the protected template, it should be placed inside {{tag|noinclude}} tags (otherwise, every page which uses the template will see the protection notice, which will result in an error message). | * When {{tlx|{{lc:{{PAGENAME}}}}}} is added directly in the protected template, it should be placed inside {{tag|noinclude}} tags (otherwise, every page which uses the template will see the protection notice, which will result in an error message). | ||
* When {{tlx|{{lc:{{PAGENAME}}}}}} is added to a [[Wikipedia:Template documentation|documentation subpage]], it should be placed inside {{tag|includeonly}} tags (otherwise, the doc page itself will also see the protection notice, which again will result in an error message). Sometimes, several templates use the same documentation page. If not all of those templates are protected, the protection template will have to be placed into the protected templates only. | * When {{tlx|{{lc:{{PAGENAME}}}}}} is added to a [[Wikipedia:Template documentation|documentation subpage]], it should be placed inside {{tag|includeonly}} tags (otherwise, the doc page itself will also see the protection notice, which again will result in an error message).<br />Sometimes, several templates use the same documentation page. If not all of those templates are protected, the protection template will have to be placed into the protected templates only. | ||
== See also == | == See also == |
Revision as of 09:30, 9 September 2009
This is a documentation subpage for Template:Pp-template. It may contain usage information, categories and other content that is not part of the original template page. |
Usage
The template will automatically detect the edit protection level (semi or full) of a page, and modify the appearance or categorization in consequence.
- Use
{{pp-template/doc}}
for the normal template (an icon at the top) - Use
{{pp-template/doc|small=no}}
for the large template
This template will not be shown on pages that are not protected. Please note that only administrators can protect pages.
Inclusion control tags
- When
{{pp-template/doc}}
is added directly in the protected template, it should be placed inside<noinclude>...</noinclude>
tags (otherwise, every page which uses the template will see the protection notice, which will result in an error message). - When
{{pp-template/doc}}
is added to a documentation subpage, it should be placed inside<includeonly>...</includeonly>
tags (otherwise, the doc page itself will also see the protection notice, which again will result in an error message).
Sometimes, several templates use the same documentation page. If not all of those templates are protected, the protection template will have to be placed into the protected templates only.
See also
cs:Šablona:Dlouhodobě_zamčeno/doc zh:Template:Pp-template/doc