Template:Project infrastructure: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
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}}}
should the project ever need to be moved again, this template will help isolate required changes
| 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=
modes to be supported:
__NOTOC__
forum
== Goal ==
website
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.
wiki
mailing lists


-->
== 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>

Revision as of 07:34, 26 February 2016

SourceForge


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

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

{{project infrastucture
| mode
| link  =
}}
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

{{project infrastructure|name}}

SourceForge

{{project infrastructure|name|link=no}}

SourceForge

Abbreviation

{{project infrastructure|abbrev}}

sf

Forum

{{project infrastructure|forum}}

FlightGear Forum

{{project infrastructure|forum|link=no}}

http://forum.flightgear.org/

Website

{{project infrastructure|website}}

FlightGear website

{{project infrastructure|website|link=no}}

http://flightgear.org/

Wiki

{{project infrastructure|wiki}}

FlightGear wiki

{{project infrastructure|wiki|link=no}}

http://wiki.flightgear.org/