Template:Documentation/doc: Difference between revisions
| [checked revision] | [checked revision] |
Content deleted Content added
Caleb Cooper (talk | contribs) No edit summary |
Caleb Cooper (talk | contribs) |
||
| (3 intermediate revisions by the same user not shown) | |||
Line 10:
This is the '''{{tlf|Documentation}}''' template used on almost every [[Help:A quick guide to templates|template page]] to contain that template's documented instructions and information, including [[Wikipedia:TemplateData|<templatedata>]].
For detailed instructions on how and when to use this template, see [[Wikipedia:Template documentation]]
This template displays a green documentation box like you are seeing now and automatically loads the content from a /doc subpage. It can also load the content from other places if instructed to.
Line 101:
:<code><nowiki>{{Documentation |heading=}}</nowiki></code>
The '''heading-style''' parameter can be fed optional [[Wikipedia:Cascading Style Sheets|CSS]] values. Without quotation marks <code>" "</code> but with the ending semicolons <code>;</code>. For example:
:<code>heading-style=font-size:150%;color:red;</code>
Line 114:
|link box=This documentation is automatically generated by [[Template:Country showdata]]
</pre>
===Subject namespaces vs. talk namespaces===
Line 135 ⟶ 128:
This template automatically points its [create] links for the /doc, /sandbox and /testcases to the right namespace.
====Full syntax====
Line 161 ⟶ 147:
===See also===
* {{tl|Documentation subpage}}, a notice placed at the top of a /doc subpage explaining its role and including a link to the page it documents.
* [[Wikipedia:Template documentation]] is a how-to guide to template documentation.
* [[Wikipedia:Template sandbox and test cases]] explains the use of /sandbox and /testcases subpages and includes more information about template testing.
<includeonly><!-- Make sure that only page [[Template:Documentation]] is categorised. No other page (no subpages, not when transcluded).
| |||