User:Johan G/project infrastructure: Difference between revisions

Jump to navigation Jump to search
+ Examples
(Created page with "<noinclude>{{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.}...")
 
(+ Examples)
Line 2: Line 2:


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.}}</noinclude>{{#switch: {{{1|main}}}
  | wiki = {{#switch: {{{2|link}}}
  | buildserver = {{#switch: {{{2|link}}}
   | name = FlightGear wiki
   | name = FlightGear build server
   | url = http://wiki.flightgear.org/{{{urn|}}}
   | url = http://build.flightgear.org:8080/{{{urn|}}}
   | link = [http://wiki.flightgear.org/{{{urn|}}} {{{label|FlightGear wiki}}}]
  | link = [http://build.flightgear.org:8080/{{{urn|}}} {{{label|FlightGear build server}}}]
   | #default = {{error|Attribute '''{{{2}}}''' invalid for infrastructure '''wiki'''|project infrastructure}}
  | #default = {{error|Attribute '''{{{2}}}''' invalid for infrastructure '''buildserver'''|project infrastructure}}
  }}
| forum = {{#switch: {{{2|link}}}
  | name = FlightGear forum
  | url = http://forum.flightgear.org/{{{urn|}}}
   | link = [http://forum.flightgear.org/{{{urn|}}} {{{label|FlightGear forum}}}]
   | #default = {{error|Attribute '''{{{2}}}''' invalid for infrastructure '''forum'''|project infrastructure}}
   }}
   }}
  | main = {{#switch: {{{2|link}}}
  | main = {{#switch: {{{2|link}}}
Line 14: Line 20:
   | link = [http://sourceforge.net/projects/flightgear/{{{urn|}}} {{{label|Main FlightGear repository}}}]
   | link = [http://sourceforge.net/projects/flightgear/{{{urn|}}} {{{label|Main FlightGear repository}}}]
   | #default = {{error|Attribute '''{{{2}}}''' invalid for infrastructure '''main'''|project infrastructure}}
   | #default = {{error|Attribute '''{{{2}}}''' invalid for infrastructure '''main'''|project infrastructure}}
  }}
| buildserver = {{#switch: {{{2|link}}}
  | name = FlightGear build server
  | url = http://build.flightgear.org:8080/{{{urn|}}}
  | link = [http://build.flightgear.org:8080/{{{urn|}}} {{{label|FlightGear build server}}}]
  | #default = {{error|Attribute '''{{{2}}}''' invalid for infrastructure '''buildserver'''|project infrastructure}}
   }}
   }}
  | mapserver = {{#switch: {{{2|link}}}
  | mapserver = {{#switch: {{{2|link}}}
Line 26: Line 26:
   | link = [http://mapserver.flightgear.org/{{{urn|}}} {{{label|FlightGear mapserver}}}]
   | link = [http://mapserver.flightgear.org/{{{urn|}}} {{{label|FlightGear mapserver}}}]
   | #default = {{error|Attribute '''{{{2}}}''' invalid for infrastructure '''mapserver'''|project infrastructure}}
   | #default = {{error|Attribute '''{{{2}}}''' invalid for infrastructure '''mapserver'''|project infrastructure}}
  }}
| forum = {{#switch: {{{2|link}}}
  | name = FlightGear forum
  | url = http://forum.flightgear.org/{{{urn|}}}
  | link = [http://forum.flightgear.org/{{{urn|}}} {{{label|FlightGear forum}}}]
  | #default = {{error|Attribute '''{{{2}}}''' invalid for infrastructure '''forum'''|project infrastructure}}
   }}
   }}
  | website = {{#switch: {{{2|link}}}
  | website = {{#switch: {{{2|link}}}
Line 38: Line 32:
   | link = [http://flightgear.org/{{{urn|}}} {{{label|website}}}]
   | link = [http://flightgear.org/{{{urn|}}} {{{label|website}}}]
   | #default = {{error|Attribute '''{{{2}}}''' invalid for infrastructure '''website'''|project infrastructure}}
   | #default = {{error|Attribute '''{{{2}}}''' invalid for infrastructure '''website'''|project infrastructure}}
  }}
| wiki = {{#switch: {{{2|link}}}
  | name = FlightGear wiki
  | url = http://wiki.flightgear.org/{{{urn|}}}
  | link = [http://wiki.flightgear.org/{{{urn|}}} {{{label|FlightGear wiki}}}]
  | #default = {{error|Attribute '''{{{2}}}''' invalid for infrastructure '''wiki'''|project infrastructure}}
   }}
   }}
<!-- |  = {{#switch: {{{2|link}}}
<!-- |  = {{#switch: {{{2|link}}}
Line 68: Line 68:
; label:  Optional label to use with the '''link''' attribute.
; label:  Optional label to use with the '''link''' attribute.


Available parameters:
{{{!}} class="wikitable"
{{{!}} class="wikitable"
! rowspan="2" valign="top" {{!}} Infrastructure
! rowspan="2" valign="top" {{!}} Infrastructure
Line 76: Line 77:
{{!}} name {{!!}} url {{!!}} link
{{!}} name {{!!}} url {{!!}} link
{{!-}}
{{!-}}
{{!}} SourceForge {{!!}} {{yes}} {{!!}} {{yes}} {{!!}} {{yes}} {{!!}} {{no}} {{!!}} {{yes}}
{{!}} 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 ==
== Examples ==
Examples using different options.
{{obr}}project infrastructure{{!}}forum{{cbr}}
{{User:Johan G/project infrastructure|forum}}
 
{{obr}}project infrastructure{{!}}forum{{!}}link{{cbr}}
{{User:Johan G/project infrastructure|forum|link}}
 
{{obr}}project infrastructure{{!}}forum{{!}}name{{cbr}}
{{User:Johan G/project infrastructure|forum|name}}
 
{{obr}}project infrastructure{{!}}forum{{!}}url{{cbr}}
{{User:Johan G/project infrastructure|forum|url}}
 
{{obr}}project infrastructure{{!}}forum{{!}}link{{!}}urn=viewtopic.php?f=8&t=28727{{!}}label=Forum Rules topic{{cbr}}
{{User:Johan G/project infrastructure|forum|link|urn=viewtopic.php?f=8&t=28727|label=Forum Rules topic}}


== Known issues ==
== Known issues ==

Navigation menu