Difference between revisions of "Template:Infobox:Base/doc"

From Cantr II Wiki
Jump to: navigation, search
m
Line 12: Line 12:
 
</pre>
 
</pre>
  
The width parameter is required.
+
The <tt>width</tt> parameter is not mandatory. But it is advisable to specify this. The default is "250".
  
 
You can complete the parameter <tt>content</tt> including other templates, such as [[Template:Infobox:Header]], [[Template:Infobox:Section]] and [[Template:Infobox:SectionList]] to create templates.
 
You can complete the parameter <tt>content</tt> including other templates, such as [[Template:Infobox:Header]], [[Template:Infobox:Section]] and [[Template:Infobox:SectionList]] to create templates.
 
<noinclude>[[Category:Documentation|{{PAGENAME}}]]
 
<noinclude>[[Category:Documentation|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Revision as of 16:42, 26 February 2010

{{Infobox:Base}} is a meta-template, ie a template for creating templates.

Usage

Put the following code in the template being designed.

{{Infobox:Base
| width   =
| content =
}}

The width parameter is not mandatory. But it is advisable to specify this. The default is "250".

You can complete the parameter content including other templates, such as Template:Infobox:Header, Template:Infobox:Section and Template:Infobox:SectionList to create templates.