Difference between revisions of "Templates"

From MythTV Official Wiki
Jump to: navigation, search
m (Wrong edit)
Line 24: Line 24:
 
|{{Code box|hello.sh|<pre>#!/bin/bash
 
|{{Code box|hello.sh|<pre>#!/bin/bash
 
echo "Hello world!"</pre>}}
 
echo "Hello world!"</pre>}}
 +
| Anywhere
 +
|-
 +
|<nowiki>{{</nowiki>[[template:Python|Python]]<nowiki>|filename|<pre>sourcecode</pre>}}</nowiki>
 +
|{{Python|hello.py|<pre>#!/bin/python
 +
print "Hello world!"</pre>}}
 
| Anywhere
 
| Anywhere
 
|-
 
|-
Line 103: Line 108:
 
Image:Script.png|Script
 
Image:Script.png|Script
 
Image:Text.png|Text
 
Image:Text.png|Text
 +
Image:PythonIcon.png|PythonIcon
 
</gallery>
 
</gallery>
 
</center>
 
</center>

Revision as of 17:35, 20 April 2007

TANGO STYLE TEMPLATES

Templates are great at keeping things looking consistent. If you are new, you may not be ready to create them, but don't worry, they are very easy to use. Just add the contents in the "what to type" column and you will get the text in the "What it Makes" column inserted on the page.


What to type What it makes Where it goes
{{Note box|string}}

Important.png Note: This is a sample 'Important' note

Anywhere
{{Tip box|string}}

Information.png Tip: This is a sample tip

Anywhere
{{Warning box|string}}

Warning.png Warning: This is a sample warning message

Anywhere
{{Code box|filename|<pre>sourcecode</pre>}}
Script.png hello.sh
#!/bin/bash
echo "Hello world!"
Anywhere
{{Python|filename|<pre>sourcecode</pre>}}
PythonIcon.png hello.py
#!/bin/python
print "Hello world!"
Anywhere
{{Incomplete}}

Incomplete.png Incomplete, needs to be expanded. Please help to fill the gaps or discuss the issue on the talk page

Anywhere
{{Cleanup|string}}

Clean.png Cleanup: This article or section may require cleanup. Discuss the issue on the talk page

Anywhere
{{Ready_for_deletion}}

Trash.png Ready for Deletion: All links to it have been either transferred or moved.

Top of Article
{{Outdated}}

Time.png Outdated: The information on this page may no longer be relevant to the current release of MythTV, 30.0. Please consider helping to update it.

Top of Article
{{Download|url|text}} Anywhere
{{Webpage|url|text}} Anywhere
{{Pdf|url|text}} Anywhere
{{VersionNote|version|text}}
Version:
0.20.1
This version of mythTV works ok
Anywhere


For a list of all available Templates see All Templates.

These act like macros, they insert their contents at the point they are entered.

Images

The following Tango icons are available on this wiki.