Difference between revisions of "Template:Documentation/doc"

From Ultronomicon
Jump to navigation Jump to search
(Clearly, ParserFunctions should be installed around here.)
 
m (+CSS)
 
Line 8: Line 8:
  
 
The noinclude is important, so you don't have it appear in the actual inclusion.
 
The noinclude is important, so you don't have it appear in the actual inclusion.
 +
 +
=== CSS ===
 +
 +
To prettify the documentation Common.css needs the following:
 +
 +
<pre>.template-documentation {
 +
background: #ccf;
 +
padding: 3px 5px;
 +
border: 1px solid #77a;
 +
}
 +
.template-documentation .fake-h2 {
 +
font-size: 18pt;
 +
border-bottom: 1px solid #77a;
 +
margin: 8px 0px 4px;
 +
font-weight: bold;
 +
}</pre>

Latest revision as of 14:52, 28 August 2012

Use[edit]

To provide documentation for templates.

Usage[edit]

Just add the following after your documentation definition:

<noinclude>{{documentation}}</noinclude>

The noinclude is important, so you don't have it appear in the actual inclusion.

CSS[edit]

To prettify the documentation Common.css needs the following:

.template-documentation {
	background: #ccf; 
	padding: 3px 5px;
	border: 1px solid #77a;
}
.template-documentation .fake-h2 {
	font-size: 18pt;
	border-bottom: 1px solid #77a;
	margin: 8px 0px 4px;
	font-weight: bold;
}