Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Doc-inline/doc: Difference between revisions

Template page
modified
modified
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>&lt;noinclude&gt;</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>&lt;noinclude&gt;</code>.


== Example ==
== Examples ==
<code style="display: block; width: 42em; font-family: monospace; font-size: 80%; white-space: nowrap; margin: auto auto auto 0; padding: 1em;">&lt;noinclude&gt;&#123;&#123;doc-inline&#125;&#125;To be? Or not to be? It is a question.
<code style="display: block; width: 28em; font-family: monospace; font-size: 80%; white-space: nowrap; margin: auto auto 2em 0; padding: 1em;">&lt;noinclude&gt;&#123;&#123;doc-inline&#125;&#125;
<br><br>William Shakespeare. Hamlet&#123;&#123;doc-end&#125;&#125;
<br>To be? Or not to be? It is a question.
<br><br>William Shakespeare. Hamlet
<br>&#123;&#123;doc-end&#125;&#125;
<br><br>&#91;&#91;Category:William Shakespeare&#93;&#93;
<br><br>&#91;&#91;Category:William Shakespeare&#93;&#93;
<br>&lt;/noinclude&gt;</code>
<code style="display: block; width: 28em; font-family: monospace; font-size: 80%; white-space: nowrap; margin: 2em auto auto 0; padding: 1em;">&lt;noinclude&gt;&#123;&#123;doc-inline&#125;&#125;E=mc²&#123;&#123;doc-end&#125;&#125;
<br><br>&#91;&#91;Category:Albert Einstein&#93;&#93;
<br>&lt;/noinclude&gt;</code>
<br>&lt;/noinclude&gt;</code>



Revision as of 19:15, 30 January 2024

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}}
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

Cookies help us deliver our services. By using our services, you agree to our use of cookies.