Hi fellow wiki editors!

To help newly registered users get more familiar with the wiki (and maybe older users too) there is now a {{Welcome to the wiki}} template. Have a look at it and feel free to add it to new users discussion pages (and perhaps your own).

I have tried to keep the template short, but meaningful. /Johan G

Difference between revisions of "User:Johan G/project infrastructure"

From FlightGear wiki
Jump to: navigation, search
m (Update forum url to HTTPS)
m (+- template: draft → userpage draft)
 
Line 1: Line 1:
<noinclude>{{draft|template suggestion|I will be back to this shortly.  Feel free to have a peek.
+
<noinclude>{{userpage draft|template suggestion|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.}}</noinclude>{{#switch: {{{1|main}}}
+
I notice that there is a lot of repetition and thus room for a subtemplate.<br />}}</noinclude>{{#switch: {{{1|main}}}
 
  | buildserver = {{#switch: {{{2|link}}}
 
  | buildserver = {{#switch: {{{2|link}}}
 
   | name = FlightGear build server
 
   | name = FlightGear build server

Latest revision as of 07:35, 4 May 2019

This template suggestion is a draft on a userpage.

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.

Please suggest changes to this draft on the discussion page.

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 https://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}}

https://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