Template:Doc-inline/doc

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

It is recommended in most cases to create documentation on a subpage and include it with the template {{documentation}}. The combination of templates {{doc-inline}} and {{doc-end}} is intended mostly for short documentation.

These templates display text in a green box like the template {{documentation}}.

Usage

[edit]

Just write {{doc-inline}}Text of documentation{{doc-end}} (instead of Text of documentation write the text your want).

Do not forget to add categories below. If it is a template documentation, the combination of templates {{doc-inline}} and {{doc-end}} and the categories must be inside <noinclude>.

Examples

[edit]

<noinclude>{{doc-inline}}
To be? Or not to be? It is a question.

William Shakespeare. Hamlet
{{doc-end}}

[[Category:William Shakespeare]]
</noinclude>
<noinclude>{{doc-inline}}E=mc²{{doc-end}}

[[Category:Albert Einstein]]
</noinclude>

See also

[edit]