Difference between revisions of "Templates"
(add CurrentFixes and CurrentDevelopment) |
|||
(42 intermediate revisions by 10 users not shown) | |||
Line 2: | Line 2: | ||
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. | 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. | ||
− | {| border="1" cellspacing="0" cellpadding=" | + | |
− | |- | + | |
+ | {| border="1" cellspacing="0" cellpadding="5" style="border-collapse:collapse; border-color:#8eabd0; background:#e7edf5" | ||
+ | |- style="background: lightsteelblue" | ||
! What to type !! What it makes !! Where it goes | ! What to type !! What it makes !! Where it goes | ||
|- | |- | ||
Line 17: | Line 19: | ||
| | | | ||
{{Warning box| This is a sample warning message}} | {{Warning box| This is a sample warning message}} | ||
+ | | Anywhere | ||
+ | |- | ||
+ | |<nowiki>{{</nowiki>[[template:Code box|Code box]]<nowiki>|filename|<pre>sourcecode</pre>}}</nowiki> | ||
+ | |{{Code box|hello.sh|<pre>#!/bin/bash | ||
+ | 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 | ||
+ | |- | ||
+ | |<nowiki>{{</nowiki>[[template:PHP|PHP]]<nowiki>|filename|<pre>sourcecode</pre>}}</nowiki> | ||
+ | |{{PHP|hello.php|<pre><?php | ||
+ | echo 'Hello, World!'; | ||
+ | ?></pre>}} | ||
| Anywhere | | Anywhere | ||
|- | |- | ||
| <nowiki>{{</nowiki>[[Template:Incomplete|Incomplete]]<nowiki>}}</nowiki> | | <nowiki>{{</nowiki>[[Template:Incomplete|Incomplete]]<nowiki>}}</nowiki> | ||
| | | | ||
− | {{Incomplete}} | + | {{Incomplete |
+ | |nocat= | ||
+ | }} | ||
| Anywhere | | Anywhere | ||
− | |||
− | |||
|- | |- | ||
− | | <nowiki>{{</nowiki>[[Template:Cleanup|Cleanup]]<nowiki> | + | | <nowiki>{{</nowiki>[[Template:Cleanup|Cleanup]]<nowiki>}}</nowiki> |
| | | | ||
− | {{Cleanup}} | + | {{Cleanup |
+ | |nocat= | ||
+ | }} | ||
| Anywhere | | Anywhere | ||
− | |||
− | |||
− | |||
|- | |- | ||
| <nowiki>{{</nowiki>[[Template:Ready_for_deletion|Ready_for_deletion]]<nowiki>}}</nowiki> | | <nowiki>{{</nowiki>[[Template:Ready_for_deletion|Ready_for_deletion]]<nowiki>}}</nowiki> | ||
| | | | ||
− | {{Ready_for_deletion}} | + | {{Ready_for_deletion |
+ | |nocat= | ||
+ | }} | ||
| Top of Article | | Top of Article | ||
− | |||
− | |||
|- | |- | ||
| <nowiki>{{</nowiki>[[Template:Outdated|Outdated]]<nowiki>}}</nowiki> | | <nowiki>{{</nowiki>[[Template:Outdated|Outdated]]<nowiki>}}</nowiki> | ||
| | | | ||
− | {{Outdated}} | + | {{Outdated |
+ | |nocat= | ||
+ | }} | ||
+ | | Top of Article | ||
+ | |- | ||
+ | | <nowiki>{{</nowiki>[[Template:Outdated2|Outdated2]]<nowiki>|string}}</nowiki> | ||
+ | | | ||
+ | {{Outdated2| This is a sample explanation | ||
+ | |nocat= | ||
+ | }} | ||
+ | | Top of Article | ||
+ | |- | ||
+ | | <nowiki>{{</nowiki>[[Template:EOL|EOL]]<nowiki>}}</nowiki> | ||
+ | | | ||
+ | {{EOL | ||
+ | |nocat= | ||
+ | }} | ||
+ | | Top of Article | ||
+ | |- | ||
+ | | <nowiki>{{</nowiki>[[Template:EOL2|EOL2]]<nowiki>|string}}</nowiki> | ||
+ | | | ||
+ | {{EOL2 | This is a sample explanation | ||
+ | |nocat= | ||
+ | }} | ||
| Top of Article | | Top of Article | ||
− | |||
|- | |- | ||
− | | <nowiki>{{</nowiki>[[Template: | + | | <nowiki>{{</nowiki>[[Template:HelpUs|HelpUs]]<nowiki>}}</nowiki> |
| | | | ||
− | {{ | + | {{HelpUs |
− | | | + | |nocat= |
− | + | }} | |
+ | | Top of Article | ||
|- | |- | ||
| <nowiki>{{</nowiki>[[Template:Download|Download]]<nowiki>|url|text}}</nowiki> | | <nowiki>{{</nowiki>[[Template:Download|Download]]<nowiki>|url|text}}</nowiki> | ||
| | | | ||
− | {{Download |www.some_url.com/downloadfile|download | + | {{Download |www.some_url.com/downloadfile|this is a link for a download}} |
| Anywhere | | Anywhere | ||
− | |||
|- | |- | ||
| <nowiki>{{</nowiki>[[Template:Webpage|Webpage]]<nowiki>|url|text}}</nowiki> | | <nowiki>{{</nowiki>[[Template:Webpage|Webpage]]<nowiki>|url|text}}</nowiki> | ||
| | | | ||
− | {{Webpage |www.some_url.com/downloadfile| | + | {{Webpage |www.some_url.com/downloadfile|this is a link to a webpage}} |
+ | | Anywhere | ||
+ | |- | ||
+ | | <nowiki>{{</nowiki>[[Template:Wikipage|Wikipage]]<nowiki>|page|text}} mythTV wiki page</nowiki> | ||
+ | | | ||
+ | {{Wikipage |XMLTV | Sample }} | ||
+ | | Anywhere | ||
+ | |- | ||
+ | | <nowiki>{{</nowiki>[[Template:Pdf|Pdf]]<nowiki>|url|text}}</nowiki> | ||
+ | | | ||
+ | {{Pdf |www.some_url.com/downloadfile|this is a link to a PDF file}} | ||
+ | | Anywhere | ||
+ | |- | ||
+ | | <nowiki>{{</nowiki>[[Template:CurrentRelease|CurrentRelease]]<nowiki>}}</nowiki> | ||
+ | | {{CurrentRelease}} | ||
+ | | Anywhere | ||
+ | |- | ||
+ | | <nowiki>{{</nowiki>[[Template:CurrentFixes|CurrentFixes]]<nowiki>}}</nowiki> | ||
+ | | {{CurrentFixes}} | ||
+ | | Anywhere | ||
+ | |- | ||
+ | | <nowiki>{{</nowiki>[[Template:CurrentDevelopment|CurrentDevelopment]]<nowiki>}}</nowiki> | ||
+ | | {{CurrentDevelopment}} | ||
+ | | Anywhere | ||
+ | |- | ||
+ | | <nowiki>{{</nowiki>[[Template:VersionNote|VersionNote]]<nowiki>|version|text}}</nowiki> | ||
+ | | | ||
+ | {{VersionNote |{{CurrentRelease}}|This version of mythTV works ok}} | ||
| Anywhere | | Anywhere | ||
− | + | |- | |
+ | | <nowiki>{{</nowiki>[[Template:Mythtv_version|Mythtv_version]]<nowiki>|version}}</nowiki> | ||
+ | | | ||
+ | {{Mythtv_version |{{CurrentRelease}}}} | ||
+ | | Anywhere | ||
+ | |- | ||
+ | | <nowiki>{{</nowiki>[[Template:Changeset|Changeset]]<nowiki>|Release Number}}</nowiki> | ||
+ | | {{Changeset|23794}} | ||
+ | | Anywhere | ||
+ | |- | ||
+ | |<nowiki>{{</nowiki>[[Template:Gitcommit|gitcommit]]<nowiki>|git SHA Number}}</nowiki> or | ||
+ | <nowiki>{{</nowiki>[[Template:Gitcommit|gitcommit]]<nowiki>|git SHA Number|Repository}}</nowiki> | ||
+ | | {{gitcommit|1e0d74d}} or {{gitcommit|aaa6fa5|mythweb}} | ||
+ | | Anywhere | ||
+ | |- | ||
+ | | <nowiki>{{</nowiki>[[Template:Ticket|Ticket]]<nowiki>|Trac Ticket Number}}</nowiki> | ||
+ | | {{Ticket|12}} | ||
+ | | Anywhere | ||
+ | |- | ||
+ | | <nowiki>{{YES}}, {{NO}}, {{YES2|Limited}}, {{Unk}}, {{Partial}}</nowiki> | ||
+ | | | ||
+ | {| border="1" cellspacing="0" | ||
+ | |- | ||
+ | | {{YES}} || {{NO}} || {{YES2|Limited}} || {{Unk}} || {{Partial}} | ||
+ | |- | ||
+ | |} | ||
+ | | Tables only | ||
+ | |- | ||
|} | |} | ||
For a list of all available Templates see | For a list of all available Templates see | ||
− | [http://www.mythtv.org/wiki | + | [http://www.mythtv.org/wiki?title=Special:AllPages&namespace=10 All Templates]. |
These act like macros, they insert their contents at the point they are entered. | These act like macros, they insert their contents at the point they are entered. | ||
− | + | =Images= | |
− | |||
− | |||
− | |||
The following [http://tango.freedesktop.org/Tango_Icon_Gallery Tango] icons are available on this wiki. | The following [http://tango.freedesktop.org/Tango_Icon_Gallery Tango] icons are available on this wiki. | ||
− | + | <center> | |
− | + | <gallery caption="Tango icons" widths="32px" perrow="10"> | |
− | + | Image:Warning.png|Warning | |
− | + | Image:Time.png|Time | |
− | + | Image:Package.png|Package | |
− | + | Image:Information.png|Information | |
− | + | Image:Audio.png|Audio | |
− | + | Image:Important.png|Important | |
+ | Image:Hardware.png|Hardware | ||
+ | Image:Video.png|Video | ||
+ | Image:Monitor1.png|Monitor1 | ||
+ | Image:tv1.png|tv1 | ||
+ | Image:List-add.png|List-add | ||
+ | Image:Incomplete.png|Incomplete | ||
+ | Image:clean.png|clean | ||
+ | Image:Ps3.png|Ps3 | ||
+ | Image:Stop.png|Stop | ||
+ | Image:Webpage.png|Webpage | ||
+ | Image:Document.png|Document | ||
+ | Image:Script.png|Script | ||
+ | Image:Text.png|Text | ||
+ | Image:PythonIcon.png|PythonIcon | ||
+ | Image:Php.png|Php | ||
+ | Image:Go-up.png|Go-up | ||
+ | Image:Go-next.png|Go-next | ||
+ | Image:Go-prev.png|Go-prev | ||
+ | </gallery> | ||
+ | </center> |
Revision as of 18:34, 2 September 2011
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}} | Anywhere | ||||||
{{Tip box|string}} | Anywhere | ||||||
{{Warning box|string}} | Anywhere | ||||||
{{Code box|filename|<pre>sourcecode</pre>}} | Anywhere | ||||||
{{Python|filename|<pre>sourcecode</pre>}} | Anywhere | ||||||
{{PHP|filename|<pre>sourcecode</pre>}} | Anywhere | ||||||
{{Incomplete}} |
Incomplete, needs to be expanded. Please help to fill the gaps or discuss the issue on the talk page |
Anywhere | |||||
{{Cleanup}} |
Cleanup: This article or section may require cleanup. Discuss the issue on the talk page |
Anywhere | |||||
{{Ready_for_deletion}} | Top of Article | ||||||
{{Outdated}} |
Outdated: The information on this page may no longer be relevant to the current release of MythTV, 34.0. Please consider helping to update it. This page was last modified on 2011-09-02. |
Top of Article | |||||
{{Outdated2|string}} | Top of Article | ||||||
{{EOL}} | Top of Article | ||||||
{{EOL2|string}} | Top of Article | ||||||
{{HelpUs}} |
Join us making your favorite media center even better than it already is today. |
Top of Article | |||||
{{Download|url|text}} | Anywhere | ||||||
{{Webpage|url|text}} | Anywhere | ||||||
{{Wikipage|page|text}} mythTV wiki page | Anywhere | ||||||
{{Pdf|url|text}} | Anywhere | ||||||
{{CurrentRelease}} | 34.0 | Anywhere | |||||
{{CurrentFixes}} | 33-fixes | Anywhere | |||||
{{CurrentDevelopment}} | 34 | Anywhere | |||||
{{VersionNote|version|text}} |
|
Anywhere | |||||
{{Mythtv_version|version}} |
|
Anywhere | |||||
{{Changeset|Release Number}} | [23794] | Anywhere | |||||
{{gitcommit|git SHA Number}} or
{{gitcommit|git SHA Number|Repository}} |
[1e0d74d] or [aaa6fa5] | Anywhere | |||||
{{Ticket|Trac Ticket Number}} | #12 | Anywhere | |||||
{{YES}}, {{NO}}, {{YES2|Limited}}, {{Unk}}, {{Partial}} |
|
Tables only |
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.