Help:Templates: Difference between revisions

From TotalcmdWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
Templates could be used to avoid recurred typing of the same text. They make it easier to edit and translate articles and help to unify the appearance of the TCWiki.
Templates sind Vorlagen, die in einem Wiki verwendet werden können, um immer wiederkehrende Tastatureingaben zu vermeiden.
 
Sie erleichtern die Bearbeitung und Übersetzung und vereinheitlichen das Aussehen im Wiki.
[http://meta.wikimedia.org/wiki/Help:Template Here]    you can find additional information about Wiki templates.




Line 8: Line 8:
== Existing Templates in the english TCWiki: ==
== Existing Templates in the english TCWiki: ==


----
[[Cross-ref|Template:Cross-ref]]
 
Template
 
[[Template:Cross-ref]]
 
{{cross-ref|Links= }}
 
----
 
Hello I have created three (or better six- as for 3 each language) Templates for the backlinks.
 
[[template:backlink]]
 
for use as first backlink
 
[[template:back]]
 
if more than one site is linked to the article to provide a second or more backlinks
 
 
and [[template:de]] for linking to the german Wiki.
 
Since it is not much mor comfortable to use these templates it provides at least a unique look of the Wiki.
 
To use these templates simply insert:
 
'''<nowiki>{{backlink|Link to the upper level|Label to be displayed}}</nowiki>'''
 
'''<nowiki>{{back| second Link to the upper level|Label of the second link}}</nowiki>'''
 
 
why we have to use 2 parameters pls have a look at the 'discussion' of these templates.
 
'''<nowiki>{{de|Link to the german article}}</nowiki>'''
 
I replaced the site
 
For the german Wiki are similar templates:
 
[[:de:Template:Rückverweis]]
 
[[:de:Template:Zurück]]
 
[[:de:Template:en]]
 
'''Another Template'''
 
I created another template:
 
Stance has prepared a nice page wich points to the english site if there is no translation available yet.
 
To not always have to write it again you could use the [[:de:template:Übersetzung|template:Übersetzung]]
 
Simply write
 
'''<nowiki>{{Übersetzung|link to english page|link to upper level}}</nowiki>'''
 
and you will get the site.
 
I editet the site for [[:de:Eraser]] as example.
 
'''Small bug in this template?'''
 
I tried to edit: "http://www.ghisler.ch/wikide/index.php?title=Dateilistensymbole"<br/>
with that code: <nowiki>{{Übersetzung|Dateilistensymbole|Konfiguration}}</nowiki><br/>
and I received a wrong entry in "Other language" ->Supposed to be the english name: "Filelist icons"<br/>
not: englisch: http://www.ghisler.ch/wiki/index.php/Dateilistensymbole<br/>
Please check it out, anyway a fantastic Idea! Maybe I did something wrong? --[[User:Stance|Stance]] 10:41, 30 Sep 2005 (EST)
 
'''No bug, a feature ;-)'''
Maybe I did not explain clearly:
 
You need to find first the link to the english page and have to insert indeed
 
<nowiki>{{Übersetzung|Filelist icons|Konfiguration}}
</nowiki>
 
How should the WIKI know where the related english page is? That you have to know.
 
BTW the idea is from Lefteous, I just had a look how to create and use templates.
 
--[[User:Sheepdog|Sheepdog]] 13:51, 30 Sep 2005 (EST)
 
----
'''Template:De:Hauptseite'''
 
[[Template:De:Hauptseite]]
 
Code:
Zurück zur [[:de:Hauptseite|Hauptseite]]
 
 
----
 
 
 
 
 
 
 


[[Backlink|template:backlink]]


[[Back|template:back]]


[[de|template:de]]


[[DEHauptseite|template:DEHauptseite]]


[[translation|Template:translation]]




== Requested Templates for the english TCWiki ==





Revision as of 23:03, 11 October 2005

Templates could be used to avoid recurred typing of the same text. They make it easier to edit and translate articles and help to unify the appearance of the TCWiki.

Here you can find additional information about Wiki templates.



Existing Templates in the english TCWiki:

Template:Cross-ref

template:backlink

template:back

template:de

template:DEHauptseite

Template:translation


Requested Templates for the english TCWiki