Template:Doc-inline/doc: Difference between revisions
Template page
More actions
modified |
|||
| (One intermediate revision by one other user not shown) | |||
| Line 10: | Line 10: | ||
Do not forget to add categories below. If it is a template documentation, the combination of templates {{tlc|doc-inline}} and {{tlc|doc-end}} and the categories must be inside <code><noinclude></code>. | Do not forget to add categories below. If it is a template documentation, the combination of templates {{tlc|doc-inline}} and {{tlc|doc-end}} and the categories must be inside <code><noinclude></code>. | ||
== | == Examples == | ||
< | <syntaxhighlight lang=wikitext copy line style="width: 35em;"><noinclude>{{doc-inline}} | ||
<br><br>William Shakespeare. Hamlet | <br />To be? Or not to be? It is a question. | ||
<br><br> | <br /><br />William Shakespeare. Hamlet | ||
<br> | <br />{{doc-end}} | ||
<br /><br />[[Category:William Shakespeare]] | |||
<br /></noinclude></syntaxhighlight> | |||
<syntaxhighlight lang=wikitext copy line style="width: 35em;"><noinclude>{{doc-inline}}E=mc²{{doc-end}} | |||
<br /><br />[[Category:Albert Einstein]] | |||
<br /></noinclude></syntaxhighlight> | |||
== See also == | == See also == | ||
Latest revision as of 07:11, 30 July 2025
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
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
<noinclude>{{doc-inline}}
<br />To be? Or not to be? It is a question.
<br /><br />William Shakespeare. Hamlet
<br />{{doc-end}}
<br /><br />[[Category:William Shakespeare]]
<br /></noinclude>
<noinclude>{{doc-inline}}E=mc²{{doc-end}}
<br /><br />[[Category:Albert Einstein]]
<br /></noinclude>
See also
{{Documentation}}