FlightGear wiki:Village pump: Difference between revisions

Jump to navigation Jump to search
m
→‎Default text in Template:Repo link: Hardcode previous template expansion (before it was modified), otherwise this is incomprehensible
m (→‎Default text in Template:Repo link: Hardcode previous template expansion (before it was modified), otherwise this is incomprehensible)
Line 158: Line 158:
when the ''site'' is <code>sourceforge</code>, however the result looks like a bug for other sites (though I understand this may be as intended). To be clear, the URLs are correct but the default link texts look weird because they start with the unqualified site name rather than the fully-qualified domain name. For instance,
when the ''site'' is <code>sourceforge</code>, however the result looks like a bug for other sites (though I understand this may be as intended). To be clear, the URLs are correct but the default link texts look weird because they start with the unqualified site name rather than the fully-qualified domain name. For instance,
  {{obr}}fgmeta source{{cbr}}
  {{obr}}fgmeta source{{cbr}}
yields {{repo link
yields [https://gitlab.com/flightgear/fgmeta gitlab/flightgear/fgmeta/next] rather than [https://gitlab.com/flightgear/fgmeta gitlab.com/flightgear/fgmeta/next]. I suggest to replace <code>gitlab</code> with <code>gitlab.com</code> in the default text (where the HTML comment says “Site advertising”) and do the same for <code>github</code>.
| site                                          = {{project infrastructure|abbrev}}
| cmd{{#if:||NULL}}                  = {{{cmd}}}
| opt{{#if:||NULL}}                  = {{{opt}}}
| protocol{{#if:||NULL}}        = {{{protocol}}}
| login{{#if:||NULL}}              = {{{login}}}
| type{{#if:||NULL}}                = {{{type}}}
| proj                                          = flightgear
| repo                                          = fgmeta
| branch{{#if:||NULL}}    = {{{b}}}
| tag{{#if:||NULL}}                  = {{{tag}}}
| path{{#if:||NULL}} = {{{1}}}
| commit{{#if:||NULL}}    = {{{c}}}
| line{{#if:||NULL}}        = {{{l}}}
| view{{#if:||NULL}}        = {{{v}}}
| text{{#if:||NULL}}        = {{{t}}}
| pre{{#if:||NULL}}                  = {{{pre}}}
| post{{#if:||NULL}}                = {{{post}}}
| simplepath{{#if:||NULL}}    = {{{simplepath}}}
| full{{#if:||NULL}}                = {{{full}}}
}} rather than [https://gitlab.com/flightgear/fgmeta gitlab.com/flightgear/fgmeta/next]. I suggest to replace <code>gitlab</code> with <code>gitlab.com</code> in the default text (where the HTML comment says “Site advertising”) and do the same for <code>github</code>.


Note: the Gitorious web site doesn't exist anymore, maybe that should be removed from the template?
Note: the Gitorious web site doesn't exist anymore, maybe that should be removed from the template?
512

edits

Navigation menu