User:Johan G/project infrastructure

From FlightGear wiki
< User:Johan G
Revision as of 07:22, 8 March 2016 by Johan G (talk | contribs) (Extending)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
This template suggestion is a draft.

I will be back to this shortly. Feel free to have a peek.

I notice that there is a lot of repetition and thus room for a subtemplate.

Main FlightGear repository

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

Goal

This meta template is used by other templates as lookup table. It will return attributes associated with project infrastructure websites.

Usage

{{project infrastructure|infrastructure|attribute|urn=|label=}}

All parameters are optional. The label parameter can only be used when value of the attribute parameter is link. If no parameter is given a link to the SourceForge project page will be returned.

infrastructure
Name of the infrastucture, for example forum, wiki or main. Defaults to main-repo.
attribute
Attribute associated with the infrastructure to return. Defaults to link.
code
Returns an internal code for the host used by other templates (in essence an abbreviation)
link
Returns an external link
name
Returns the name of the infrastructure
url
Returns an url to the infrastructure
urn
Optional string with path, queries, parameters and fragments to use with the url and link attributes.
label
Optional label to use with the link attribute.

Available parameters and attributes:

Infrastructure Attributes urn label
code link name url
buildserver N/A FlightGear build server FlightGear build server http://build.flightgear.org:8080/ Yes Yes
forum N/A FlightGear forum FlightGear forum http://forum.flightgear.org/ Yes Yes
main sf Main FlightGear repository SourceForge http://sourceforge.net/projects/flightgear/ Yes Yes
mapserver N/A FlightGear mapserver FlightGear mapserver http://mapserver.flightgear.org/ Yes Yes
website N/A website website http://flightgear.org/ Yes Yes
wiki N/A FlightGear wiki FlightGear wiki http://wiki.flightgear.org/ Yes Yes

Examples

{{project infrastructure}}

Main FlightGear repository

{{project infrastructure|forum}}

FlightGear forum

{{project infrastructure|forum|code}}

{{User:Johan G/project infrastructure}}: Attribute code invalid for infrastructure forum

{{project infrastructure|forum|link}}

FlightGear forum

{{project infrastructure|forum|name}}

FlightGear forum

{{project infrastructure|forum|url}}

http://forum.flightgear.org/

{{project infrastructure|forum|link|urn=viewtopic.php?f=8&t=28727|label=Forum Rules topic}}

Forum Rules topic

Known issues

Related templates