Difference between revisions of "Templates"

From MythTV Official Wiki
Jump to: navigation, search
m (fix link)
(Add uptodate 29)
 
(31 intermediate revisions by 6 users not shown)
Line 8: Line 8:
 
! What to type !! What it makes !! Where it goes
 
! What to type !! What it makes !! Where it goes
 
|-
 
|-
|<nowiki>{{</nowiki>[[template:Note box|Note box]]<nowiki>|string}}</nowiki>
+
| <nowiki>{{</nowiki>[[Template:UpToDate 0.27|UpToDate 0.27]]<nowiki>}}</nowiki>
 +
| {{UpToDate 0.27}}
 +
 
 +
''Note that there will be a separate template for each version number, so that we can use the cross reference ability of MediaWiki to find pages that have been updated for a particular version.''
 +
| Top of Article
 +
|-
 +
| <nowiki>{{</nowiki>[[Template:UpToDate 0.28|UpToDate 0.28]]<nowiki>}}</nowiki>
 +
| {{UpToDate 0.28}}
 +
| Top of Article
 +
|-
 +
| <nowiki>{{</nowiki>[[Template:UpToDate 29|UpToDate 29]]<nowiki>}}</nowiki>
 +
| {{UpToDate 29}}
 +
| Top of Article
 +
|-
 +
|<nowiki>{{</nowiki>[[Template:Note box|Note box]]<nowiki>|string}}</nowiki>
 
|{{Note box| This is a sample 'Important' note}}
 
|{{Note box| This is a sample 'Important' note}}
 
| Anywhere
 
| Anywhere
 +
|-
 +
|<nowiki>{{</nowiki>[[Template:Wrongtitle|Wrongtitle]]<nowiki>|correct title}}</nowiki>
 +
|{{Wrongtitle|ssh Forwarding}}
 +
| Top of Article
 
|-
 
|-
 
| <nowiki>{{</nowiki>[[Template:Tip box|Tip box]]<nowiki>|string}}</nowiki>
 
| <nowiki>{{</nowiki>[[Template:Tip box|Tip box]]<nowiki>|string}}</nowiki>
Line 61: Line 79:
 
|
 
|
 
{{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=
 
|nocat=
 
}}
 
}}
Line 90: Line 129:
 
|
 
|
 
{{Pdf |www.some_url.com/downloadfile|this is a link to a PDF file}}
 
{{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:CurrentReleaseDate|CurrentReleaseDate]]<nowiki>}}</nowiki>
 +
| {{CurrentReleaseDate}}
 +
| Anywhere
 +
|-
 +
| <nowiki>{{</nowiki>[[Template:CurrentFixes|CurrentFixes]]<nowiki>}}</nowiki>
 +
| {{CurrentFixes}}
 +
| Anywhere
 +
|-
 +
| <nowiki>{{</nowiki>[[Template:CurrentDevelopment|CurrentDevelopment]]<nowiki>}}</nowiki>
 +
| {{CurrentDevelopment}}
 
| Anywhere
 
| Anywhere
 
|-
 
|-
 
| <nowiki>{{</nowiki>[[Template:VersionNote|VersionNote]]<nowiki>|version|text}}</nowiki>
 
| <nowiki>{{</nowiki>[[Template:VersionNote|VersionNote]]<nowiki>|version|text}}</nowiki>
 
|
 
|
{{VersionNote |0.20.1|This version of mythTV works ok}}
+
{{VersionNote|0.28|VBox support was added in 0.28}}
 
| Anywhere
 
| Anywhere
 
|-
 
|-
 
| <nowiki>{{</nowiki>[[Template:Mythtv_version|Mythtv_version]]<nowiki>|version}}</nowiki>
 
| <nowiki>{{</nowiki>[[Template:Mythtv_version|Mythtv_version]]<nowiki>|version}}</nowiki>
 
|
 
|
{{Mythtv_version |0.20.1}}
+
{{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
 
| Anywhere
 +
|-
 +
| <nowiki>{{YES}}, {{NO}}, {{YES2|Limited}}, {{Unk}}, {{Partial}}</nowiki>
 +
|
 +
  {| border="1" cellspacing="0"
 +
  |-
 +
  | {{YES}} || {{NO}} || {{YES2|Limited}} || {{Unk}} || {{Partial}}
 +
  |-
 +
  |}
 +
| Tables only
 +
|-
 
|}
 
|}
  
Line 110: Line 188:
  
 
=Images=
 
=Images=
The following [http://tango.freedesktop.org/Tango_Icon_Gallery Tango] icons are available on this wiki.
+
The following [https://commons.wikimedia.org/wiki/Tango_icons Tango] icons are available on this wiki.
 
<center>
 
<center>
<gallery caption="Tango icons" widths="50px">
+
<gallery caption="Tango icons" widths="32px" perrow="10">
 
Image:Warning.png|Warning
 
Image:Warning.png|Warning
 
Image:Time.png|Time
 
Image:Time.png|Time
 
Image:Package.png|Package
 
Image:Package.png|Package
 
Image:Information.png|Information
 
Image:Information.png|Information
Image:Audio.png|Audio.png
+
Image:Audio.png|Audio
 
Image:Important.png|Important
 
Image:Important.png|Important
 +
Image:Hardware.png|Hardware
 
Image:Video.png|Video
 
Image:Video.png|Video
 
Image:Monitor1.png|Monitor1
 
Image:Monitor1.png|Monitor1
Line 136: Line 215:
 
Image:Go-next.png|Go-next
 
Image:Go-next.png|Go-next
 
Image:Go-prev.png|Go-prev
 
Image:Go-prev.png|Go-prev
 +
Image:Software-update-available.png|Software-update-available
 +
Image:Dialog-accept.png|Dialog-accept
 
</gallery>
 
</gallery>
 
</center>
 
</center>

Latest revision as of 16:52, 8 August 2017

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
{{UpToDate 0.27}} Software-update-available.png This page is up-to-date as of MythTV version 0.27.6, the current release is 30.0


Note that there will be a separate template for each version number, so that we can use the cross reference ability of MediaWiki to find pages that have been updated for a particular version.

Top of Article
{{UpToDate 0.28}} Software-update-available.png This page is up-to-date as of MythTV version 0.28, the current release is 30.0


Top of Article
{{UpToDate 29}} Software-update-available.png This page is up-to-date as of MythTV version 29, the current release is 30.0


Top of Article
{{Note box|string}}

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

Anywhere
{{Wrongtitle|correct title}}

Important.png Note: The correct title of this article is ssh Forwarding. It appears incorrectly here due to technical restrictions.

Top of Article
{{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
{{PHP|filename|<pre>sourcecode</pre>}}
Php.png hello.php
<?php
echo '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}}

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
{{Outdated2|string}}

Time.png Outdated: This is a sample explanation

Top of Article
{{EOL}}

Time.png End Of Life: This product is no longer being manufactured and may only be available in limited quantities, if it is available at all.

Top of Article
{{EOL2|string}}

Time.png End Of Life: This is a sample explanation

Top of Article
{{HelpUs}}

MythTV logo square.png 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}} 30.0 Anywhere
{{CurrentReleaseDate}} 14-January-2019 Anywhere
{{CurrentFixes}} 29-fixes Anywhere
{{CurrentDevelopment}} 30 Anywhere
{{VersionNote|version|text}}
Version:
0.28
VBox support was added in 0.28
Anywhere
{{Mythtv_version|version}}
The following instruction might be specific for . Please update if it is outdated.
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}}
Yes No Limited Unknown 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.