Difference between revisions of "Templates"

From Dietrich Blog (Strato)
Jump to: navigation, search
(New page: '''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...)
 
(Replaced content with "Has been moved to: http://blog.kr8.de/wiki-templates/")
 
Line 1: Line 1:
'''TANGO STYLE TEMPLATES'''
+
Has been moved to: http://blog.kr8.de/wiki-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.
 
 
 
 
 
{| 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
 
|-
 
|<nowiki>{{</nowiki>[[template:Note box|Note box]]<nowiki>|string}}</nowiki>
 
|{{Note box| This is a sample 'Important' note}}
 
| Anywhere
 
|-
 
| <nowiki>{{</nowiki>[[Template:Tip box|Tip box]]<nowiki>|string}}</nowiki>
 
|{{Tip box| This is a sample tip}}
 
| Anywhere
 
|-
 
| <nowiki>{{</nowiki>[[Template:Warning box|Warning box]]<nowiki>|string}}</nowiki>
 
|
 
{{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
 
|-
 
| <nowiki>{{</nowiki>[[Template:Incomplete|Incomplete]]<nowiki>}}</nowiki>
 
|
 
{{Incomplete
 
|nocat=
 
}}
 
| Anywhere
 
|-
 
| <nowiki>{{</nowiki>[[Template:Cleanup|Cleanup]]<nowiki>|string}}</nowiki>
 
|
 
{{Cleanup
 
|nocat=
 
}}
 
| Anywhere
 
|-
 
| <nowiki>{{</nowiki>[[Template:Ready_for_deletion|Ready_for_deletion]]<nowiki>}}</nowiki>
 
|
 
{{Ready_for_deletion
 
|nocat=
 
}}
 
| Top of Article
 
|-
 
| <nowiki>{{</nowiki>[[Template:Outdated|Outdated]]<nowiki>}}</nowiki>
 
|
 
{{Outdated
 
|nocat=
 
}}
 
| Top of Article
 
|-
 
| <nowiki>{{</nowiki>[[Template:Download|Download]]<nowiki>|url|text}}</nowiki>
 
|
 
{{Download |www.some_url.com/downloadfile|this is a link for a download}}
 
| Anywhere
 
|-
 
| <nowiki>{{</nowiki>[[Template:Webpage|Webpage]]<nowiki>|url|text}}</nowiki>
 
|
 
{{Webpage |www.some_url.com/downloadfile|this is a link to a webpage}}
 
| 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:VersionNote|VersionNote]]<nowiki>|version|text}}</nowiki>
 
|
 
{{VersionNote |0.20.1|This version of mythTV works ok}}
 
| Anywhere
 
|}
 
 
 
 
 
For a list of all available Templates see
 
[http://www.mythtv.org/wiki/index.php?title=Special%3AAllpages&from=&namespace=10 All Templates].
 
 
 
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.
 
<center>
 
<gallery caption="Tango icons" widths="50px">
 
Image:Warning.png|Warning
 
Image:Time.png|Time
 
Image:Package.png|Package
 
Image:Information.png|Information
 
Image:Audio.png|Audio.png
 
Image:Important.png|Important
 
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>
 

Latest revision as of 12:46, 23 May 2020

Has been moved to: http://blog.kr8.de/wiki-templates/