Template:Ready: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(Added a 'spacetrip' target.)
(Added a caption for the 'spacetrip' target, and added an examples section for testing.)
Line 7: Line 7:
|tutorials = [[File:Tutorial-ready.png|30px|alt=Tutorials|link=Tutorials]]
|tutorials = [[File:Tutorial-ready.png|30px|alt=Tutorials|link=Tutorials]]
|airrefuel = [[File:Airrefuel-ready.png|30px|alt=Mid-air refueling|link=Howto:Aerial refueling]]<includeonly>[[Category:Air refueling ready]]</includeonly>
|airrefuel = [[File:Airrefuel-ready.png|30px|alt=Mid-air refueling|link=Howto:Aerial refueling]]<includeonly>[[Category:Air refueling ready]]</includeonly>
|spacetrip = [[File:Spacetripready.png|30px|alt=Space trip|link=Reaching for the stars]]<includeonly>[[Category:Spaceflight]]</includeonly>
|spacetrip = [[File:Spacetripready.png|30px|Space trip ready|alt=Space trip|link=Reaching for the stars]]<includeonly>[[Category:Spaceflight]]</includeonly>
}}}}<noinclude>{{Informative template|1=
}}}}<noinclude>{{Informative template|1=
__NOTOC__
__NOTOC__
Line 30: Line 30:


; category: You can optionally add a category that the aircraft will be added to when the ready icon is used.
; category: You can optionally add a category that the aircraft will be added to when the ready icon is used.
== Examples ==
=== Space trip ===
{{obr}}ready{{!}}spacetrip{{cbr}}
{{ready|spacetrip}}


== Related category ==
== Related category ==

Revision as of 09:54, 25 May 2016

The following template description is not displayed when the template is inserted in an article.

Goal

Used by {{Infobox aircraft}} to display the appropriate "ready" symbols.

Usage

Do not use this template, use {{Infobox aircraft}} instead.

Adding icons to the template

Add one line per icon to this template:

|name = [[File:image.png|30px|alt=text|link=page]]<includeonly>[[Category]]</includeonly>
name
(Short) name of the icon, to be added as |ready = in the aircraft infobox.
image
Icon image file, including the File: prefix.
text
Alt text to show when the image is hovered over.
page
Name of the page to link to (optional).
category
You can optionally add a category that the aircraft will be added to when the ready icon is used.

Examples

Space trip

{{ready|spacetrip}}

Space trip

Related category