Template:Infobox template: Difference between revisions

From stencil.wiki
(Created page with "<noinclude> This template displays a message box on infobox templates to warn users that they are autopopulated from the class template and paired PageFirm. It also adds them to Category:Infoboxes. == Usage == Provided fields fill out the class, form, and category names/links in the text of the message. <pre> {{Infobox template template|class=Event|category=Events}} </pre> {{Infobox template|class=Event|category=Events}} == TemplateData == <templatedata> { "param...")
 
No edit summary
Line 33: Line 33:
--><includeonly>{{mbox
--><includeonly>{{mbox
  | title='''Warning:''' Infobox template
  | title='''Warning:''' Infobox template
  | text=This is an infobox template for the ''{{{class|}}}'' class—it is used as a display template for [[Template:{{{class}}}]] with values from the associated [[Form:{{{class}}}]] and should never be transcluded outside of that context.<p>Pages which use this infobox are listed at [[:Category:{{{category|}}}]].</p>
  | text=This is an infobox template for the ''{{{class|}}}'' class—it is used as a display template for [[Template:{{{class}}}]], with values from the associated [[Form:{{{class}}}]], and should never be transcluded outside of that context.<p>Pages which use this infobox are listed at [[:Category:{{{category|}}}]].</p>
  | color_bar=#FFB511
  | color_bar=#FFB511
  | class=class-ambox
  | class=class-ambox
}}[[Category:Infoboxes]]<!--
}}[[Category:Infoboxes]]<!--
--></includeonly>
--></includeonly>

Revision as of 17:04, 16 December 2024

This template displays a message box on infobox templates to warn users that they are autopopulated from the class template and paired PageFirm. It also adds them to Category:Infoboxes.

Usage

Provided fields fill out the class, form, and category names/links in the text of the message.

{{Infobox template template|class=Event|category=Events}}
Warning: Infobox template
This is an infobox template for the Event class—it is used as a display template for Template:Event, with values from the associated Form:Event, and should never be transcluded outside of that context.

Pages which use this infobox are listed at Category:Events.

TemplateData

Used on top level class templates that should only be edited with the associated PageForm.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Classclass

Name of the class.

Stringrequired
Categorycategory

Name of the category used with pages in this class (do not include the "Category:" namespace).

Stringrequired