Difference between revisions of "Template:Documentation"

From ComputerCraft Wiki
Jump to: navigation, search
Line 1: Line 1:
 
<includeonly><div class="doc">
 
<includeonly><div class="doc">
<div class="header">Documentation</div>
+
<div class="doc-header">
{{#if: {{{content|}}}
+
<span class="doc-buttons plainlinks">&#91; [[{{FULLPAGENAME}}/doc|view]] &#124; [{{fullurl:{{FULLPAGENAME}}/doc|action=edit}} edit] &#124; [{{fullurl:{{FULLPAGENAME}}/doc|action=history}} History] &#93;</span>
|{{{content}}}
+
<span class="doc-head">Documentation</span>
|<div class="buttons plainlinks">&#91; [[{{FULLPAGENAME}}/doc|view]] &#124; [{{fullurl:{{FULLPAGENAME}}/doc|action=edit}} edit] &#124; [{{fullurl:{{FULLPAGENAME}}/doc|action=history}} History] &#93;</div>
+
</div>
 
{{{{FULLPAGENAME}}/doc}}
 
{{{{FULLPAGENAME}}/doc}}
}}
+
</div></includeonly><noinclude>{{Documentation}}</noinclude>
</div></includeonly><noinclude>{{Documentation|content=
+
This is the documentation template. For template documentation, this template is used inside <nowiki><noinclude></nowiki> braces so it doesn't show up on the template, for other uses, just use it regularly.
+
 
+
== MediaWiki Markup==
+
 
+
Horray! MediaWiki Markup is supported in this template! You can have standard MediaWiki markup such as headlines and signatures.
+
 
+
== Usage ==
+
 
+
<code><nowiki>{{documentation|Title|Example text}}</nowiki></code>
+
 
+
The following code would produce:
+
 
+
{{documentation|Title|Example text}}
+
 
+
== Multiple Lines ==
+
 
+
Also, the documentation template's second argument can be spread over a few lines. Example ('/'s show where the newline character is):
+
 
+
<code><nowiki>{{documentation|Title|This \
+
is \
+
\
+
example \
+
text}}</nowiki></code>
+
 
+
When this code is parsed through...
+
 
+
{{documentation|Title|This
+
is
+
 
+
example
+
text}}
+
 
+
Thats the end of the documentation! Thanks for reading!
+
}}
+

Revision as of 07:46, 2 August 2020

[ view | edit | history ] Documentation

Template:Documentation/doc