13,208
edits
(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.}}| {{{ | I noticed that there is a lot of repetition and thus room for a subtemplate.}}| {{{2}}} = {{#switch: {{{1|link}}} | ||
| name = {{{ | | name = {{{3}}} | ||
| url = {{{3}}}{{{urn|}}} | | url = {{{3}}}{{{urn|}}} | ||
| link = [{{{ | | link = [{{{4}}}{{{urn|}}} {{{label|{{{3}}}}}}] | ||
| #default = {{error|Attribute '''{{{ | | #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 |