6,566
edits
m (Bugman moved page Template:Project URL to Template:Project infrastructure: Conversion of this template to be a universal reference for the FlightGear infrastructure.) |
(Large expansion of the template.) |
||
Line 1: | Line 1: | ||
{{#switch: {{{1|name}}} | |||
| name = {{#ifeq: {{{link|yes}}} | yes | |||
| [http://sourceforge.net/projects/flightgear/ SourceForge] | |||
[http://sourceforge.net/projects/flightgear/ SourceForge] | | SourceForge | ||
}} | |||
| abbrev = sf | |||
| forum = {{#ifeq: {{{link|yes}}} | yes | |||
| [http://forum.flightgear.org/ FlightGear Forum] | |||
| <nowiki>http://forum.flightgear.org/</nowiki> | |||
}} | |||
| website = {{#ifeq: {{{link|yes}}} | yes | |||
| [http://flightgear.org/ FlightGear website] | |||
| <nowiki>http://flightgear.org/</nowiki> | |||
}} | |||
| wiki = {{#ifeq: {{{link|yes}}} | yes | |||
| [http://wiki.flightgear.org/ FlightGear wiki] | |||
| <nowiki>http://wiki.flightgear.org/</nowiki> | |||
}} | |||
}}<noinclude> | |||
{{Informative template|1= | |||
__NOTOC__ | |||
== Goal == | |||
To be a universal template for referencing the current open source infrastructure used by the FlightGear project. Should the project ever need to be moved again, this template will help isolate required changes. | |||
== Usage == | |||
{{obr}}'''project infrastucture | |||
{{!}} ''mode'' | |||
{{!}} ''link'' = | |||
{{cbr}} | |||
; mode: The type of infrastructure. This defaults to '''name''', but can be one of: | |||
::* name: The name of the hosting infrastructure. | |||
::* abbrev: An abbreviation for the hosting infrastructure, mainly for use in other templates (no link, and current returns '''sf'''). | |||
::* forum: The FlightGear forum. | |||
::* website: The FlightGear website. | |||
::* wiki: The FlightGear wiki. | |||
::* mailing lists: The FlightGear mailing lists. | |||
; link: If set to '''yes''', then a Mediawiki link will be created, when appropriate. The value of '''no''' will cause plain text to be returned. This defaults to '''yes'''. | |||
== Examples == | |||
=== Name === | |||
{{obr}}project infrastructure{{!}}name{{cbr}} | |||
{{project infrastructure|name}} | |||
{{obr}}project infrastructure{{!}}name{{!}}link=no{{cbr}} | |||
{{project infrastructure|name|link=no}} | |||
=== Abbreviation === | |||
{{obr}}project infrastructure{{!}}abbrev{{cbr}} | |||
{{project infrastructure|abbrev}} | |||
=== Forum === | |||
{{obr}}project infrastructure{{!}}forum{{cbr}} | |||
{{project infrastructure|forum}} | |||
{{obr}}project infrastructure{{!}}forum{{!}}link=no{{cbr}} | |||
{{project infrastructure|forum|link=no}} | |||
=== Website === | |||
{{obr}}project infrastructure{{!}}website{{cbr}} | |||
{{project infrastructure|website}} | |||
{{obr}}project infrastructure{{!}}website{{!}}link=no{{cbr}} | |||
{{project infrastructure|website|link=no}} | |||
=== Wiki === | |||
{{obr}}project infrastructure{{!}}wiki{{cbr}} | |||
{{project infrastructure|wiki}} | |||
{{obr}}project infrastructure{{!}}wiki{{!}}link=no{{cbr}} | |||
{{project infrastructure|wiki|link=no}} | |||
}} | |||
</noinclude> |