User:Johan G/project infrastructure

From FlightGear wiki
< User:Johan G
Revision as of 17:39, 7 March 2016 by Johan G (talk | contribs) (+ Examples)
Jump to navigation Jump to search
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 template can be used to...

Adding this template to a page will automatically add Category:... to that page.

Caution Caution that might help prevent lost work, very complicated debugging etc...

Note Note that might be helpful or lead the reader in the right direction.

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
One of several attributes associated with the infrastructure, for example name, url or link. Defaults to link.
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:

Infrastructure Attribute urn label
name url link
buildserver Yes Yes Yes Yes Yes
forum Yes Yes Yes Yes Yes
main Yes Yes Yes Yes Yes
mapserver Yes Yes Yes Yes Yes
website Yes Yes Yes Yes Yes
wiki Yes Yes Yes Yes Yes

Examples

{{project infrastructure|forum}}

FlightGear 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

Known issues and workarounds if such are known.

Related templates