Template:Pp-template: Difference between revisions
From IHRIS Wiki
m (initial from wikipedia) |
Sturlington (talk | contribs) No edit summary |
||
Line 44: | Line 44: | ||
|sysop<!--uses default--> | |sysop<!--uses default--> | ||
|#default={{#switch:{{NAMESPACE}}|{{ns:image}}=<br /><small>'''Do not move this image''' to [[commons:|Wikimedia Commons]].</small>}}}} | |#default={{#switch:{{NAMESPACE}}|{{ns:image}}=<br /><small>'''Do not move this image''' to [[commons:|Wikimedia Commons]].</small>}}}} | ||
|categories={{{categories|{{#ifeq:{{NAMESPACE}}|{{ns:10}}|{{#switch:{{{demolevel|{{#ifeq:{{PROTECTIONLEVEL:edit}}-{{PROTECTIONLEVEL:move}}|-sysop|move|{{PROTECTIONLEVEL:edit}}}}}}} | <nowiki>|categories={{{categories|{{#ifeq:{{NAMESPACE}}|{{ns:10}}|{{#switch:{{{demolevel|{{#ifeq:{{PROTECTIONLEVEL:edit}}-{{PROTECTIONLEVEL:move}}|-sysop|move|{{PROTECTIONLEVEL:edit}}}}}}} | ||
|semi | |semi | ||
|autoconfirmed=[[Category:Wikipedia semi-protected templates|{{PAGENAME}}]]{{#ifeq:{{PROTECTIONLEVEL:move}}|sysop|[[Category:Wikipedia move-protected templates|{{PAGENAME}}]]}} | |autoconfirmed=[[Category:Wikipedia semi-protected templates|{{PAGENAME}}]]{{#ifeq:{{PROTECTIONLEVEL:move}}|sysop|[[Category:Wikipedia move-protected templates|{{PAGENAME}}]]}} | ||
Line 51: | Line 51: | ||
|full | |full | ||
|sysop<!--uses default--> | |sysop<!--uses default--> | ||
|#default=[[Category:Wikipedia protected templates|{{PAGENAME}}]]<!--fallback value-->}}}}{{#ifeq:{{NAMESPACE}}|{{ns:6}}|[[Category:{{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}} | |#default=[[Category:Wikipedia protected templates|{{PAGENAME}}]]<!--fallback value-->}}}}{{#ifeq:{{NAMESPACE}}|{{ns:6}}|[[Category:{{#switch:{{{demolevel|</nowiki>{{PROTECTIONLEVEL:edit}}}}} | ||
|semi | |semi | ||
|autoconfirmed=Semi-protected | |autoconfirmed=Semi-protected |
Revision as of 10:31, 16 July 2013
}
|semi |autoconfirmed=Semi-protected |administrator |full |sysop |#default=Protected}} images|Pp-template]]}}}}}}}} |semi |autoconfirmed=Semi-protected |administrator |full |sysop |#default=Protected}} images|Pp-template]]}}}}}}}
[edit] [ ] Error creating thumbnail: File missing Template documentation
Template:Documentation subpage
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}} for the normal template (an icon at the top)
- Use {{pp-template|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}} 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 is likely to result in an error message).
- When {{pp-template}} 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 is likely to result in an error message).
See also
[[Category:Protection templates|{{PAGENAME}}]] bg:Шаблон:Защитена страница cs:Šablona:Dlouhodobě_zamčeno dsb:Pśedłoga:Šćitana pśedłoga eo:Ŝablono:Pp-ŝablono hsb:Předłoha:Škitana předłoha it:Template:Templateprotetto ro:Format:Pp-template ru:Шаблон:Protected template sl:Predloga:Zaščitena predloga zh:Template:Pp-template