13,208
edits
m (→User messages: split-multiple → splitapart) |
(Removed the message box templates and instead linked to Help:List of message box templates) |
||
Line 1: | Line 1: | ||
This page is meant to help you with the use of '''templates''' on the wiki. | This page is meant to help you with the use of '''templates''' on the wiki. | ||
==Editing or creating templates== | == Editing or creating templates == | ||
Editing a template is almost as easy as editing a normal wiki page. Lets say, you want to edit a template with the name "what you always wanted to know". To do so open "wiki.flightgear.org/Template:what_you_always_wanted_to_know" (mind the underscores, that replace the spaces!). | Editing a template is almost as easy as editing a normal wiki page. Lets say, you want to edit a template with the name "what you always wanted to know". To do so open "wiki.flightgear.org/Template:what_you_always_wanted_to_know" (mind the underscores, that replace the spaces!). | ||
If you created a new template, you can embed it in any wiki article from now on by writing: <nowiki>{{what you always wanted to know}}</nowiki> (insert the template name here). | If you created a new template, you can embed it in any wiki article from now on by writing: <nowiki>{{what you always wanted to know}}</nowiki> (insert the template name here). | ||
===Translating templates=== | === Translating templates === | ||
Translating templates is working different than translating normal articles. All translations are written in the same file. The translated text (in this case a German and a Spanish one) is surrounded by the following construct: | Translating templates is working different than translating normal articles. All translations are written in the same file. The translated text (in this case a German and a Spanish one) is surrounded by the following construct: | ||
Line 24: | Line 24: | ||
== | == Small collection of various templates == | ||
For a rather complete list of message box templates, see [[Help:List of message box templates]]. | |||
{| border=1 cellpadding=3 style="border: 1px #AAAAAA solid; border-collapse: collapse;background:#ffffff;" | {| border=1 cellpadding=3 style="border: 1px #AAAAAA solid; border-collapse: collapse;background:#ffffff;" | ||
|- style="background:#eeeeee;" | |- style="background:#eeeeee;" | ||
Line 33: | Line 35: | ||
|<nowiki>{{abc}}</nowiki> | |<nowiki>{{abc}}</nowiki> | ||
|{{abc}} | |{{abc}} | ||
|Top | |Top | ||
|- | |- | ||
Line 46: | Line 44: | ||
|{{Building}} | |{{Building}} | ||
|Bottom | |Bottom | ||
|- | |- | ||
|<nowiki>{{Main article|Link to article}}</nowiki> | |<nowiki>{{Main article|Link to article}}</nowiki> | ||
|{{Main article|Link to article}} | |{{Main article|Link to article}} | ||
| | | | ||
|} | |} | ||
==Infoboxes== | == Infoboxes == | ||
===Aircraft=== | === Aircraft === | ||
{{infobox Aircraft | {{infobox Aircraft | ||
|image =A380.jpg | |image =A380.jpg | ||
Line 102: | Line 64: | ||
{{-}} | {{-}} | ||
===Airport=== | === Airport === | ||
{{infobox Airport | {{infobox Airport | ||
|name = Amsterdam Airport Schiphol | |name = Amsterdam Airport Schiphol | ||
Line 122: | Line 84: | ||
{{-}} | {{-}} | ||
===User=== | === User === | ||
{{User | {{User | ||
|name = Jack | |name = Jack |