Difference between revisions of "Template:Documentation"
From ComputerCraft Wiki
Magiczocker (Talk | contribs) |
Magiczocker (Talk | contribs) |
||
| Line 6: | Line 6: | ||
{{{{FULLPAGENAME}}/doc}} | {{{{FULLPAGENAME}}/doc}} | ||
}} | }} | ||
| − | </div></includeonly><noinclude>{{Documentation|content= | + | </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! | ||
| + | }} | ||