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
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><div id="template-documentation" class="template-documentation"><templatestyles src="Template:Documentation/styles.css" />
<includeonly><div id="template-documentation" class="template-documentation"><templatestyles src="Template:Documentation/styles.css" />
{{{1|}}}</div></includeonly><noinclude>{{documentation}}</noinclude>
<div class="template-documentation-title">[[File:Test Template Info-Icon.svg|50px]]
{{LangSwitch
|ar=توثيق القالب
|bn=টেমপ্লেট নথি
|da=Skabelondokumentation
|de=Vorlagendokumentation
|el=Τεκμηρίωση προτύπου
|en=Template documentation
|eo=Dokumentaro por ŝablono
|fi=Mallineen ohje
|fr=Documentation du modèle
|hi=साँचा परिचय
|hu=Sablondokumentáció
|id=Dokumentasi templat
|ilo=Dokumentasion ti plantilia
|ja=テンプレートの解説
|la=Documentatio formulae
|nb=Maldokumentasjon
|nn=Maldokumentasjon
|pl=Dokumentacja szablonu
|pt-br=Documentação da predefinição
|ro=Documentație format
|ru=Документация шаблона
|sl=Dokumentacija predloge
|tr=Şablon belgelemesi
|uk=Документація шаблону
|zh=模板文件
|zh-hans=模板文档
|zh-hant=模板文件
}}
----
</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.