Difference between revisions of "Template:Documentation"

From ComputerCraft Wiki
Jump to: navigation, search
(Added styles because SquidDev didn't add them to common.css)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div class="doc">
+
<includeonly><div style="clear: both;padding: 0.8em 1em 0.7em;margin-top: 1em;border: 1px solid #AAA;background: #FFFFFF;">
<div class="header">Documentation</div>
+
<div style="padding: 0.8em 1em 0.7em;margin: -0.8em -1em 0.8em;border-bottom: inherit;background: #DBE5FF;">
{{#if: {{{content|}}}
+
<span class="plainlinks" style="float: right;">&#91; [[{{FULLPAGENAME}}/doc|view]] &#124; [{{fullurl:{{FULLPAGENAME}}/doc|action=edit}} edit] &#124; [{{fullurl:{{FULLPAGENAME}}/doc|action=history}} history] &#93;</span>
|{{{content}}}
+
<span style="margin-right: 1em;font-weight: bold;line-height: 1;font-size: 130%;">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>[[Category:Templates]]</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!
+
}}
+

Latest revision as of 05:13, 4 August 2020

[ view | edit | history ] Documentation

Template:Documentation/doc