Difference between revisions of "Template:Infobox Template/protected"

From Twinsuniverse
Jump to: navigation, search
(new subpage to template-infobox)
 
(added infobox)
 
Line 4: Line 4:
 
| = {{categorizer|category=Unprotected templates|label=No|nocat={{{nocat|false}}}}}
 
| = {{categorizer|category=Unprotected templates|label=No|nocat={{{nocat|false}}}}}
 
| #default = {{categorizer|category=Semi-protected templates|label=Semi|nocat={{{nocat|false}}}}}
 
| #default = {{categorizer|category=Semi-protected templates|label=Semi|nocat={{{nocat|false}}}}}
}}</includeonly><noinclude>
+
}}</includeonly><noinclude>{{Infobox Template
 +
|purpose=infobox
 +
|singletag=optional
 +
|multiline=no
 +
|gamerelated=no
 +
|suppressible=recursively
 +
|choice=none
 +
|cat1=Unprotected templates!''no''
 +
|cat2=Semi-protected templates!''semi''
 +
|cat3=Fully protected templates!''full''
 +
|var1=
 +
}}
 +
 
 
This template automatically detects and shows the protection level of another template. It can also automatically categorize the page of that template under the relevant category.
 
This template automatically detects and shows the protection level of another template. It can also automatically categorize the page of that template under the relevant category.
  
Line 27: Line 39:
 
This would render the same result as any of the examples above, but would not automatically categorize under any category.
 
This would render the same result as any of the examples above, but would not automatically categorize under any category.
  
[[Category:Categorizers|template]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 18:43, 6 June 2014

Infobox Template/protected
Purpose

Infobox [list all]

Single tag

Optional [list all]

Multi-line

No [list all]

Protected

No [list all]

Game related

No [list all]

Categorization
Suppressible

Recursively [list all]

Choice

No choice [list all]

Categories

Multiple: [list all]

Variables
Names

none [list all]

Subpages

This template automatically detects and shows the protection level of another template. It can also automatically categorize the page of that template under the relevant category.

Parameters

  • nocat: Whether or not to suppress categorization under the automatically chosen category (defaults to false, which means auto categorization).


Note: unlike any other categorizing infobox subpage, this one cannot and will not raise any maintenance tasks. This is because any result of its use, automated as it is, can only produce known values.

Examples

Depending on the actual protection level of the template page this is used on, the following code will automatically produce any of the following:

{{Infobox Template/protected}}
Full [list all]
Semi [list all]
No [list all]


The nocat parameter may be used to suppress automatic categorization like this (any value will do):

{{Infobox Template/protected|nocat=true}}

This would render the same result as any of the examples above, but would not automatically categorize under any category.