Difference between revisions of "Template:Documentation"

From ComputerCraft Wiki
Jump to: navigation, search
(Added styles because SquidDev didn't add them to common.css)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<table style="width: 100%; border: solid 1px black; margin: 2px; border-spacing: 0px;"><tr><td colspan="2" style="font-weight: bold; font-size: large; padding-bottom: .3em; border-bottom: solid 1px black; background: #A3C266; line-height:28px;">[[File:Grid_Ink_Sac.png|24px]]&nbsp;&nbsp;Documentation for {{{1|unknown}}}</td></tr>
+
<includeonly><div style="clear: both;padding: 0.8em 1em 0.7em;margin-top: 1em;border: 1px solid #AAA;background: #FFFFFF;">
<tr><td style="border-color: #A3C266; padding: .4em; padding-left: .4em; background: #A3C266" colspan="2">{{{2|There is no documentation for this page}}}</td></tr>
+
<div style="padding: 0.8em 1em 0.7em;margin: -0.8em -1em 0.8em;border-bottom: inherit;background: #DBE5FF;">
</table>
+
<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>
 
+
<span style="margin-right: 1em;font-weight: bold;line-height: 1;font-size: 130%;">Documentation</span>
<noinclude>
+
</div>
 
+
{{{{FULLPAGENAME}}/doc}}
----
+
</div>[[Category:Templates]]</includeonly><noinclude>{{Documentation}}</noinclude>
 
+
 
+
{{documentation|Documentation Template|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! }}
+
 
+
Template made by [[User:LewisTehMinerz|LewisTehMinerz]] ([[User talk:LewisTehMinerz|talk]]) 16:03, 22 October 2015 (UTC)
+
</noinclude>
+

Latest revision as of 05:13, 4 August 2020

[ view | edit | history ] Documentation

Template:Documentation/doc