Difference between revisions of "Category:Template"

From SME Server
Jump to navigationJump to search
m (Added Template:Request for deletion)
m
 
(46 intermediate revisions by 7 users not shown)
Line 1: Line 1:
===Templates===
+
{{Languages}}
 +
==How to make a new Template==
  
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.
+
For certain purposes like if you want to maintain some works on redundant pages without efforts, you may need to write a Template of your page.
 +
 
 +
A template is just like a page, so a "make-it-easy" template would reside at the URL:
 +
http://wiki.contribs.org/Template:Make-it-easy
 +
 
 +
Create it and copy and paste the wiki markup for what you have already done relating to "Make-it-easy" into it and save it. Then where you want to include the template on any other page just use <nowiki>{{Make-it-easy}}</nowiki>.
 +
 
 +
==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 looks like" column inserted on the page.
 +
 
 +
Click on the template name for '''usage options''' that may not be apparent, translators should see [[Template:Languages#Templates|Languages]]
  
 
{| border="1" cellspacing="0" cellpadding="5" style="border-collapse:collapse; border-color:#8eabd0; background:#e7edf5"
 
{| border="1" cellspacing="0" cellpadding="5" style="border-collapse:collapse; border-color:#8eabd0; background:#e7edf5"
 
|- style="background: lightsteelblue"
 
|- style="background: lightsteelblue"
! What to type !! What it makes !! Where&nbsp;it&nbsp;goes
+
! What&nbsp;to&nbsp;insert !! What&nbsp;it&nbsp;looks&nbsp;like !! Where&nbsp;to&nbsp;insert
 
|-
 
|-
 
|<nowiki>{{</nowiki>[[template:Note box|Note box]]<nowiki>|string}}</nowiki>
 
|<nowiki>{{</nowiki>[[template:Note box|Note box]]<nowiki>|string}}</nowiki>
Line 18: Line 30:
 
|
 
|
 
{{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
 
| Anywhere
 
|-
 
|-
|<nowiki>{{</nowiki>[[template:Python|Python]]<nowiki>|filename|<pre>sourcecode</pre>}}</nowiki>
+
| <nowiki>{{</nowiki>[[Template:Level|Level]]<nowiki>|level|comment}}</nowiki>
|{{Python|hello.py|<pre>#!/bin/python
+
|
print "Hello world!"</pre>}}
+
{{Level}}
| Anywhere
+
| Under title
|-
 
|<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>
 
| <nowiki>{{</nowiki>[[Template:Incomplete|Incomplete]]<nowiki>}}</nowiki>
Line 43: Line 44:
 
| Anywhere
 
| Anywhere
 
|-
 
|-
| <nowiki>{{</nowiki>[[Template:Cleanup|Cleanup]]<nowiki>|string}}</nowiki>
+
| <nowiki>{{</nowiki>[[Template:Cleanup|Cleanup]]<nowiki>}}</nowiki>
 
|
 
|
 
{{Cleanup
 
{{Cleanup
Line 70: Line 71:
 
}}
 
}}
 
| Top of Article
 
| Top of Article
<!-- |-
+
|-
| <nowiki>{{</nowiki>[[Template:Download|Download]]<nowiki>|url|text}}</nowiki>
+
| <nowiki>{{</nowiki>[[Template:Needs review|Needs review]]<nowiki>}}</nowiki>
 +
|
 +
{{Needs review
 +
|nocat=
 +
}}
 +
| Top of Article
 +
|-
 +
| <nowiki>{{</nowiki>[[Template:WIP box|WIP box]]<nowiki>}}</nowiki> or
 +
<nowiki>{{</nowiki>[[Template:WIP box|WIP box]]<nowiki>|Username}}</nowiki>
 
|
 
|
{{Download |www.some_url.com/downloadfile|this is a link for a download}}
+
{{WIP box}} or
| Anywhere
+
{{WIP box|Username}}
 +
| Top of Article
 
|-
 
|-
| <nowiki>{{</nowiki>[[Template:Webpage|Webpage]]<nowiki>|url|text}}</nowiki>
+
| <nowiki>{{</nowiki>[[Template:Languages|Languages]]<nowiki>|pagename of English version}}</nowiki>
 
|
 
|
{{Webpage |www.some_url.com/downloadfile|this is a link to a webpage}}
+
{{Languages|Main Page}}
| Anywhere
+
| Top of Article
 
|-
 
|-
| <nowiki>{{</nowiki>[[Template:Pdf|Pdf]]<nowiki>|url|text}}</nowiki>
+
| <nowiki>{{</nowiki>[[Template:Repository|Repository]]<nowiki>|Repositoryname}}</nowiki>
 
|
 
|
{{Pdf |www.some_url.com/downloadfile|this is a link to a PDF file}}
+
{{Repository|snetram}}
 
| Anywhere
 
| Anywhere
 
|-
 
|-
| <nowiki>{{</nowiki>[[Template:VersionNote|VersionNote]]<nowiki>|version|text}}</nowiki>
+
|<nowiki>{{</nowiki>#smeversion<nowiki>:package|description}}</nowiki>
|
+
|<div style="float:left; background: #EFE9E9; border: 1px solid #AAA; padding: 5px; margin: 5px; width: 97%">
{{VersionNote |0.20.1|This version of mythTV works ok}}
+
  <div style="float:right; background: #EFE9E9; border: 1px solid #AAA; padding: 5px; margin-left: 5px">
| Anywhere-->
+
    <div style="font-size: 80%"><b>Devel:</b></div>
 +
    <div style="font-size: 120%; font-weight: bold">[http://mirror.contribs.org/smeserver/releases/8/smetest/i386/repoview/index.html dev ver]</div>
 +
  </div>
 +
  <div style="float:right; background: #EFE9E9; border: 1px solid #AAA; padding: 5px; margin-left: 5px">
 +
    <div style="font-size: 80%"><b>Contrib:</b></div>
 +
    <div style="font-size: 120%; font-weight: bold">[http://mirror.contribs.org/smeserver/releases/8/smecontribs/i386/repoview/index.html rel ver]</div>
 +
  </div>
 +
  <div style="font-size: 120%; font-weight: bold;">package-name</div>
 +
  <div>The latest version of package is available in the SME repository, click on the version number(s) for more information.</div>
 +
</div>
 +
|-
 +
| <nowiki>{{</nowiki>[[Template:Donate|Donate]]<nowiki>}}</nowiki>
 +
|{{Tip box|to call the Donate template then use it in the top of a page}}
 +
| Top of Article
 +
|-
 +
| <nowiki>{{</nowiki>[[Template:BugzillaFileBug]]<nowiki>}}</nowiki>
 +
|{{Tip box|When you want to call the BugzillaFileBug template then use it in the bottom of a page to raise a bug under bugzilla in the wiki documentation. By example <nowiki>{{BugzillaFileBug|product=SME%20Contribs|component=smeserver-openvpn-bridge|title=this link}}</nowiki>. You have to choose a valid contrib name }}
 +
| Bottom of Article
 
|}
 
|}
  
 
+
'''Credits:''' Some of these templates have been integrally taken from the [http://www.mythtv.org/wiki/index.php?title=Templates MythTV wiki] others are heavily based on them.
'''Disclaimer:''' These templates have been taken from the [http://www.mythtv.org/wiki/index.php?title=Templates MythTV wiki]
 

Latest revision as of 20:24, 3 January 2017


How to make a new Template

For certain purposes like if you want to maintain some works on redundant pages without efforts, you may need to write a Template of your page.

A template is just like a page, so a "make-it-easy" template would reside at the URL: http://wiki.contribs.org/Template:Make-it-easy

Create it and copy and paste the wiki markup for what you have already done relating to "Make-it-easy" into it and save it. Then where you want to include the template on any other page just use {{Make-it-easy}}.

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 looks like" column inserted on the page.

Click on the template name for usage options that may not be apparent, translators should see Languages

What to insert What it looks like Where to insert
{{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
{{Level|level|comment}}
PythonIcon.png Skill level: {{{1}}}
The instructions on this page can be followed by a beginner.

[[Category: {{{1}}}]]

Under title
{{Incomplete}}
Incomplete.png Incomplete:
This article or section 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
{{Request_for_deletion}}
Delete.png Request for Deletion:
This article or section should be removed. Please help to correct all links to it or discuss the issue on the talk page

Top of Article
{{Ready_for_deletion}}
Stop.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 maybe no longer relevant.

Top of Article
{{Needs review}}
Edit-find-replace.png Not reviewed:
This howto or contrib has not been reviewed and might contain code that could harm your installation. For more information on the review process have a look at the Development Review page.

Top of Article
{{WIP box}} or

{{WIP box|Username}}

Warning.png Work in Progress:
This page is a Work in Progress. The contents off this page may be in flux, please have a look at this page history the to see list of changes.

or
Warning.png Work in Progress:
Username has marked this page as a Work in Progress. The contents off this page may be in flux, please have a look at this page history the to see list of changes.

Top of Article
{{Languages|pagename of English version}}
Top of Article
{{Repository|Repositoryname}}

The following command will configure the snetram repository on SME Server. Snetram After adding it to the database we have to update the changes to the configuration file:

signal-event yum-modify
Anywhere
{{#smeversion:package|description}}
Devel:
Contrib:
package-name
The latest version of package is available in the SME repository, click on the version number(s) for more information.
{{Donate}}
Information.png Tip:
to call the Donate template then use it in the top of a page

Top of Article
{{Template:BugzillaFileBug}}
Information.png Tip:
When you want to call the BugzillaFileBug template then use it in the bottom of a page to raise a bug under bugzilla in the wiki documentation. By example {{BugzillaFileBug|product=SME%20Contribs|component=smeserver-openvpn-bridge|title=this link}}. You have to choose a valid contrib name

Bottom of Article

Credits: Some of these templates have been integrally taken from the MythTV wiki others are heavily based on them.

Subcategories

This category has only the following subcategory.

Pages in category "Template"

The following 4 pages are in this category, out of 4 total.