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

From Twinsuniverse
Jump to: navigation, search
(new subpage to template-infobox)
 
(added infobox)
 
(One intermediate revision by the same user not shown)
Line 10: Line 10:
 
     |label=''unknown''
 
     |label=''unknown''
 
     |reason=The '''purpose''' parameter specifies {{#if:{{{1|}}}|'{{lc:{{{1|}}}}}' (unknown)| no value}} }}
 
     |reason=The '''purpose''' parameter specifies {{#if:{{{1|}}}|'{{lc:{{{1|}}}}}' (unknown)| no value}} }}
}}</includeonly><noinclude>
+
}}</includeonly><noinclude>{{Infobox Template
This template offers a multiple choice for specifying the purpose of another template. It can also automatically categorize the related page under the related category.
+
|purpose=infobox
 +
|singletag=no
 +
|multiline=no
 +
|gamerelated=no
 +
|suppressible=recursively
 +
|choice=single
 +
|cat1=Formatting templates!formatting
 +
|cat2=Infobox templates!infobox
 +
|cat3=Messagebox templates!messagebox
 +
|cat4=Website templates!website
 +
|cat5=Templates of unknown purpose!''unknown''!maintenance
 +
|var1=
 +
}}
 +
 
 +
This template offers a multiple choice for specifying the purpose of another template. It can also automatically categorize the page of that template under the category for that purpose.
  
 
==Parameters==
 
==Parameters==
Line 64: Line 78:
 
This would render the same result as the first example above, but would not automatically categorize under [[:Category:Formatting templates]]. This feature works both on valid values and the maintenance task mentioned above.
 
This would render the same result as the first example above, but would not automatically categorize under [[:Category:Formatting templates]]. This feature works both on valid values and the maintenance task mentioned above.
  
[[Category:Categorizers|template]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 17:43, 6 June 2014

Infobox Template/purpose
Purpose

Infobox [list all]

Single tag

No [list all]

Multi-line

No [list all]

Protected

No [list all]

Game related

No [list all]

Categorization
Suppressible

Recursively [list all]

Choice

Single category [list all]

Categories

Multiple: [list all]

Variables
Names

none [list all]

Subpages

This template offers a multiple choice for specifying the purpose of another template. It can also automatically categorize the page of that template under the category for that purpose.

Parameters

  1. The selected purpose from the following values (no parameter name and values are case insensitive):
    • formatting
    • infobox
    • messagebox
    • website
    • any other (non)empty value defaults to: unknown
  • nocat: Whether or not to suppress categorization under the chosen category (defaults to false, which means auto categorization).


Note: more category values may be added depending on the purpose of any newly added template, provided the category pages in question are also created and organized into a logical category structure.

Syntax

{{Infobox Template/purpose|value}}

Examples

Any of the above values may be used like this:

{{Infobox Template/purpose|formatting}}
{{Infobox Template/purpose|infobox}}
{{Infobox Template/purpose|messagebox}}
{{Infobox Template/purpose|website}}
Formatting [list all]
Infobox [list all]
Messagebox [list all]
Website [list all]


The case of the value is not important:

{{Infobox Template/purpose|forMattING}}
Formatting [list all]


You may leave the "purpose" undefined (which would raise the Templates of unknown purpose maintenance task) by not specifying any valid value, so these all have the same result:

{{Infobox Template/purpose}}
{{Infobox Template/purpose|}}
{{Infobox Template/purpose|documentation}}
{{Infobox Template/purpose|feels like destiny}}
{{Infobox Template/purpose|purr-pose}}
{{Infobox Template/purpose|not a cat}}
{{Infobox Template/purpose|yes}}
unknown [list all]


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

{{Infobox Template/purpose|formatting|nocat=true}}

This would render the same result as the first example above, but would not automatically categorize under Category:Formatting templates. This feature works both on valid values and the maintenance task mentioned above.