Difference between revisions of "Template:Pp-template"

From SC4D Encyclopaedia
Jump to navigation Jump to search
sc4e>Freedo50
m (Protected "Template:Pp-template": High risk template [edit=sysop:move=sysop])
m (Protected "Template:Pp-template" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<includeonly>{{pp-meta
 
<includeonly>{{pp-meta
|type=indef
+
|type={{{level|indef}}}
 
|small={{{small|}}}
 
|small={{{small|}}}
 
|demospace={{{demospace|}}}
 
|demospace={{{demospace|}}}
Line 10: Line 10:
 
   |#default=[[Wikipedia:High-risk templates|high-risk template]]
 
   |#default=[[Wikipedia:High-risk templates|high-risk template]]
 
}} has been [[Wikipedia:This page is protected|protected]] from editing to prevent [[Wikipedia:Vandalism|vandalism]]. {{#switch:{{NAMESPACE}}|{{ns:image}}=<br /><small>'''Do not move this image''' to [[commons:|Wikimedia Commons]].</small>}}
 
}} has been [[Wikipedia:This page is protected|protected]] from editing to prevent [[Wikipedia:Vandalism|vandalism]]. {{#switch:{{NAMESPACE}}|{{ns:image}}=<br /><small>'''Do not move this image''' to [[commons:|Wikimedia Commons]].</small>}}
|categories={{{categories|{{#ifeq:{{NAMESPACE}}|{{ns:10}}|[[Category:Protected templates|{{PAGENAME}}]]}}{{#ifeq:{{NAMESPACE}}|{{ns:6}}|[[Category:Protected images|{{PAGENAME}}]]}}}}}}}</includeonly><noinclude>
+
|categories={{{categories|{{#ifeq:{{NAMESPACE}}|{{ns:10}}|[[Category:Protected templates|{{PAGENAME}}]]}}{{#ifeq:{{NAMESPACE}}|{{ns:6}}|[[Category:Protected images|{{PAGENAME}}]]}}}}}}}</includeonly><noinclude>{{pp-template}}
 +
This template should be used on high risk, or high use, template pages in the documentation section. The following code should be used:
 +
<pre>{{pp-template
 +
|level = indef/full/semi
 +
|image = [[Image:SOMEIMAGE]]}}</pre>
 +
==Example==
 
{{pp-template|categories=no}}
 
{{pp-template|categories=no}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
 
</noinclude>
 
</noinclude>

Latest revision as of 12:02, 16 August 2019

This template should be used on high risk, or high use, template pages in the documentation section. The following code should be used:

{{pp-template
|level = indef/full/semi
|image = [[Image:SOMEIMAGE]]}}

Example