Template:Project infrastructure: Difference between revisions
(Addition of the 'noprotocol' parameter which, if set, will cause the protocol part of the URL to be dropped.) |
(Reactivation of the 'text' parameter.) |
||
Line 17: | Line 17: | ||
| link = {{{link|yes}}} | | link = {{{link|yes}}} | ||
| url = {{#if:{{{noprotocol|}}}||https://}}sourceforge.net/projects/flightgear/files/unstable | | url = {{#if:{{{noprotocol|}}}||https://}}sourceforge.net/projects/flightgear/files/unstable | ||
| desc = {{LangSwitch | | desc = {{{text | ||
| {{LangSwitch | |||
}} | | en = Nightly builds | ||
}} | |||
}}} | |||
}} | }} | ||
| mapserver = | | mapserver = | ||
Line 26: | Line 28: | ||
| link = {{{link}}} | | link = {{{link}}} | ||
| url = {{#if:{{{noprotocol|}}}||http://}}mapserver.flightgear.org | | url = {{#if:{{{noprotocol|}}}||http://}}mapserver.flightgear.org | ||
| desc = {{LangSwitch | | desc = {{{text | ||
| {{LangSwitch | |||
}} | | en = FlightGear mapserver | ||
}} | |||
}}} | |||
}} | }} | ||
| forum = | | forum = | ||
Line 35: | Line 39: | ||
| url = {{#if:{{{noprotocol|}}}||https://}}forum.flightgear.org | | url = {{#if:{{{noprotocol|}}}||https://}}forum.flightgear.org | ||
| urn{{#if:{{{urn|}}}||NULL}} = {{{urn}}} | | urn{{#if:{{{urn|}}}||NULL}} = {{{urn}}} | ||
| desc = {{LangSwitch | | desc = {{{text | ||
| {{LangSwitch | |||
}} | | en = FlightGear Forum | ||
}} | |||
}}} | |||
}} | }} | ||
| mailing lists = | | mailing lists = | ||
Line 44: | Line 50: | ||
| url = {{#if:{{{noprotocol|}}}||https://}}sourceforge.net/p/flightgear/mailman | | url = {{#if:{{{noprotocol|}}}||https://}}sourceforge.net/p/flightgear/mailman | ||
| urn{{#if:{{{urn|}}}||NULL}} = {{{urn}}} | | urn{{#if:{{{urn|}}}||NULL}} = {{{urn}}} | ||
| desc = {{LangSwitch | | desc = {{{text | ||
| {{LangSwitch | |||
}} | | en = FlightGear Mailing Lists | ||
}} | |||
}}} | |||
}} | }} | ||
| website = | | website = | ||
Line 53: | Line 61: | ||
| url = {{#if:{{{noprotocol|}}}||http://}}flightgear.org | | url = {{#if:{{{noprotocol|}}}||http://}}flightgear.org | ||
| urn{{#if:{{{urn|}}}||NULL}} = {{{urn}}} | | urn{{#if:{{{urn|}}}||NULL}} = {{{urn}}} | ||
| desc = {{LangSwitch | | desc = {{{text | ||
| {{LangSwitch | |||
}} | | en = website | ||
}} | |||
}}} | |||
}} | }} | ||
| wiki = | | wiki = | ||
Line 62: | Line 72: | ||
| url = {{#if:{{{noprotocol|}}}||http://}}wiki.flightgear.org | | url = {{#if:{{{noprotocol|}}}||http://}}wiki.flightgear.org | ||
| urn{{#if:{{{urn|}}}||NULL}} = {{{urn}}} | | urn{{#if:{{{urn|}}}||NULL}} = {{{urn}}} | ||
| desc = {{LangSwitch | | desc = {{{text | ||
| {{LangSwitch | |||
}} | | en = FlightGear wiki | ||
}} | |||
}}} | |||
}} | }} | ||
}}<noinclude> | }}<noinclude> | ||
Line 145: | Line 157: | ||
{{project infrastructure|forum}} | {{project infrastructure|forum}} | ||
{{obr}}project infrastructure{{!}}forum{{!}}urn=search.php{{!}}text=Search the forum{{cbr}} | |||
{{project infrastructure|forum|urn=search.php|text=Search the forum}} | |||
{{obr}}project infrastructure{{!}}forum{{!}}link=no{{cbr}} | {{obr}}project infrastructure{{!}}forum{{!}}link=no{{cbr}} |
Revision as of 08:06, 6 June 2019
Goal
To be a universal template for referencing the current open source infrastructure used by the FlightGear project. Currently all our code and data lives on SourceForge. Collecting everything from gitorious, googlecode and private servers, getting our build server work with the new locations was not a trivial task, took months to complete and was everything but a nice job.[1][2]
However, should the project ever need to be moved again (a discussion that keeps coming up, and is even raised by former core developers [3][4][5]), this template will help isolate required changes. The creation of this template was motivated by the workload caused by the shutdown of gitorious (to become gitlab) and subsequent migration of all repositories to sourceforge[6]. Shortly afterwards, Sourceforge and Slashdot were sold, where most of the FlightGear project's infrastructure had moved at the time [7]. The wiki admins back then realized that the workload due to having to update dozens, if not even hundreds, of articles could be greatly reduced if a common set of templates were to be used for "encapsulating" (hiding) such details. In particular, the creation of the repo link (respectively git/svn link) templates (started by Red Leader and Johan G) will greatly help reduce the amount of work needed to maintain our wiki articles up to date.
Usage
{{project infrastructure | mode | urn = | link = | text = | noprotocol = }}
- 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).
- nightlies
- nightly builds
- buildserver
- The FlightGear build server
- forum
- The FlightGear forum.
- website
- The FlightGear website.
- wiki
- The FlightGear wiki.
- mailing lists
- The FlightGear mailing lists.
- urn
- The optional uniform resource name, the part of the URL after the domain name.
- 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.
- text
- The optional custom text to use for the link.
- noprotocol
- If set, then the protocol part of the URL will not be added. This is, for example, https://.
Examples
Name
{{project infrastructure|name}}
{{project infrastructure|name|link=no}}
SourceForge
{{project infrastructure|nightlies}}
Abbreviation
{{project infrastructure|abbrev}}
sf
Build Server
{{project infrastructure|buildserver}}
Forum
{{project infrastructure|forum}}
{{project infrastructure|forum|urn=search.php|text=Search the forum}}
{{project infrastructure|forum|link=no}}
site:{{project infrastructure|forum|link=no|noprotocol=yes}}
site:forum.flightgear.org
Website
{{project infrastructure|website}}
{{project infrastructure|website|link=no}}
Wiki
{{project infrastructure|wiki}}
{{project infrastructure|wiki|link=no}}
Related templates