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

From FlightGear wiki
Jump to: navigation, search
(Created page with "<noinclude>{{draft|template suggestion|I will be back to this shortly. Feel free to have a peek. I noticed that there is a lot of repetition and thus room for a subtemplate....")
 
m (Some fixin')
Line 1: Line 1:
 
<noinclude>{{draft|template suggestion|I will be back to this shortly.  Feel free to have a peek.
 
<noinclude>{{draft|template suggestion|I will be back to this shortly.  Feel free to have a peek.
  
I noticed that there is a lot of repetition and thus room for a subtemplate.}}| {{{1}}} = {{#switch: {{{2|link}}}
+
I noticed that there is a lot of repetition and thus room for a subtemplate.}}| {{{2}}} = {{#switch: {{{1|link}}}
   | name = {{{2}}}
+
   | name = {{{3}}}
 
   | url = {{{3}}}{{{urn|}}}
 
   | url = {{{3}}}{{{urn|}}}
   | link = [{{{3}}}{{{urn|}}} {{{label|{{{2}}}}}}]
+
   | link = [{{{4}}}{{{urn|}}} {{{label|{{{3}}}}}}]
   | #default = {{error|Attribute '''{{{2}}}''' invalid for infrastructure '''{{{1}}}'''|User:Johan G/project infrastructure}}
+
   | #default = {{error|Attribute '''{{{1}}}''' invalid for infrastructure '''{{{2}}}'''|User:Johan G/project infrastructure}}
 
   }}<noinclude>
 
   }}<noinclude>
 
{{Informative template|1=
 
{{Informative template|1=
Line 19: Line 19:
  
 
== Usage ==
 
== Usage ==
  {{obr}}'''User:Johan G/project infrastructure/infrastructure'''{{!}}infrastructure{{!}}name{{!}}url{{!}}link{{!}}''urn=''{{!}}''label=''{{cbr}}
+
  {{obr}}'''User:Johan G/project infrastructure/infrastructure'''{{!}}case{{!}}infrastructure{{!}}name{{!}}url{{!}}link{{!}}''urn=''{{!}}''label=''{{cbr}}
  
 
All parameters are mandatory, but can be empty.
 
All parameters are mandatory, but can be empty.
  
 +
; case: Switch case
 
; infrastructure:  Name of the infrastucture for use within the [[User:Johan G/project infrastructure]] template, for example '''forum''', '''wiki''' or '''main'''.
 
; infrastructure:  Name of the infrastucture for use within the [[User:Johan G/project infrastructure]] template, for example '''forum''', '''wiki''' or '''main'''.
 
; name:  Name to describe the infrastructure
 
; name:  Name to describe the infrastructure

Revision as of 21:24, 27 February 2016

This template suggestion is a draft.

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

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

| {{{2}}} = [{{{4}}} {{{3}}}]

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

{{User:Johan G/project infrastructure/infrastructure|case|infrastructure|name|url|link|urn=|label=}}

All parameters are mandatory, but can be empty.

case
Switch case
infrastructure
Name of the infrastucture for use within the User:Johan G/project infrastructure template, for example forum, wiki or main.
name
Name to describe the infrastructure
url
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.

Examples

Examples using different options.

Known issues

Known issues and workarounds if such are known.

Related templates