User:Johan G/project infrastructure/infrastructure: Difference between revisions
Jump to navigation
Jump to 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 (+- template: draft → userpage draft) |
||
(One intermediate revision by the same user not shown) | |||
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 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.<br />}}| {{{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 |
Latest revision as of 12:36, 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 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
- {{example}}