|
|
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">[ [[{{FULLPAGENAME}}/doc|view]] | [{{fullurl:{{FULLPAGENAME}}/doc|action=edit}} edit] | [{{fullurl:{{FULLPAGENAME}}/doc|action=history}} History] ]</span> |
− | |{{{content}}}
| + | <span class="doc-head">Documentation</span> |
− | |<div class="buttons plainlinks">[ [[{{FULLPAGENAME}}/doc|view]] | [{{fullurl:{{FULLPAGENAME}}/doc|action=edit}} edit] | [{{fullurl:{{FULLPAGENAME}}/doc|action=history}} History] ]</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!
| + | |
− | }}
| + | |