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: Difference between revisions

Template page
created
I don't think that lang variant thing works here
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{documentation subpage}}
<includeonly><div id="template-documentation" class="template-documentation"><templatestyles src="Template:Documentation/styles.css" />
{{Uses TemplateStyles|Template:Documentation/styles.css}}
<div class="template-documentation-title">[[File:Test Template Info-Icon.svg|50px]]
It is recommended in most cases to create documentation on a subpage and include it with the template {{tl2|documentation}}. The template {{tlc|doc-inline}} is intended mostly for short documentation.
{{LangSwitch
 
|ar=توثيق القالب
This template displays the content of the first unnamed parameter in a green box like you are seeing here.
|bn=টেমপ্লেট নথি
 
|da=Skabelondokumentation
== Usage ==
|de=Vorlagendokumentation
Just write <code style="font-family: monospace; font-size: 110%; white-space: nowrap; margin: 1em auto;"><nowiki>{{doc-inline|</nowiki>''<nowiki>Text of documentation</nowiki>''<nowiki>}}</nowiki></code> (instead of ''Text of documentation'' write the text your want).
|el=Τεκμηρίωση προτύπου
 
|en=Template documentation
If your text contains the equal sign (<code>=</code>), write instead <code style="font-family: monospace; font-size: 110%; white-space: nowrap; margin: 1em auto;"><nowiki>{{doc-inline|1=</nowiki>''<nowiki>Text of documentation</nowiki>''<nowiki>}}</nowiki></code> or replace each equal sign with <code><nowiki>{{=}}</nowiki></code>.
|eo=Dokumentaro por ŝablono
 
|fi=Mallineen ohje
Do not forget to add categories below. If it is a template documentation, the template {{tlc|doc-inline}} and the categories must be inside <code>&lt;noinclude&gt;</code>.
|fr=Documentation du modèle
 
|hi=साँचा परिचय
== Examples ==
|hu=Sablondokumentáció
<code style="display: block; width: 42em; font-family: monospace; font-size: 80%; white-space: nowrap; margin: auto auto 2em 0; padding: 1em;">&lt;noinclude&gt;&#123;&#123;doc-inline&#124;To be? Or not to be? It is a question.
|id=Dokumentasi templat
<br><br>William Shakespeare. Hamlet&#125;&#125;
|ilo=Dokumentasion ti plantilia
<br><br>&#91;&#91;Category:William Shakespeare&#93;&#93;
|ja=テンプレートの解説
<br>&lt;/noinclude&gt;</code>
|la=Documentatio formulae
<code style="display: block; width: 42em; font-family: monospace; font-size: 80%; white-space: nowrap; margin: 2em auto 2em 0; padding: 1em;">&lt;noinclude&gt;&#123;&#123;doc-inline&#124;1=E=mc²&#125;&#125;
|nb=Maldokumentasjon
<br><br>&#91;&#91;Category:Albert Einstein&#93;&#93;
|nn=Maldokumentasjon
<br>&lt;/noinclude&gt;</code>
|pl=Dokumentacja szablonu
<code style="display: block; width: 42em; font-family: monospace; font-size: 80%; white-space: nowrap; margin: 2em auto auto 0; padding: 1em;">&lt;noinclude&gt;&#123;&#123;doc-inline&#124;E&#123;&#123;=&#125;&#125;mc²&#125;&#125;
|pt-br=Documentação da predefinição
<br><br>&#91;&#91;Category:Albert Einstein&#93;&#93;
|ro=Documentație format
<br>&lt;/noinclude&gt;</code>
|ru=Документация шаблона
 
|sl=Dokumentacija predloge
== See also ==
|tr=Şablon belgelemesi
* {{tl2|Documentation}}<includeonly>
|uk=Документація шаблону
 
|zh=模板文件
[[Category:Documentation templates]]
|zh-hans=模板文档
[[Category:Template namespace templates]]
|zh-hant=模板文件
</includeonly>__NOTOC__
}}
----
</div>
</includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 03:07, 3 January 2026

Template documentation[ view · edit · history · purge ]
This documentation is transcluded from Template:Doc-inline/doc.

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

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