512
edits
(→Default text in Template:Repo link: new section) |
|||
| Line 149: | Line 149: | ||
:: [[User:Rominet|Rominet]] ([[User talk:Rominet|talk]]) | :: [[User:Rominet|Rominet]] ([[User talk:Rominet|talk]]) | ||
== Default text in Template:Repo link == | |||
Hi, | |||
The default ''text'' in {{tl|Repo link}} gives somewhat pleasant link texts such as | |||
flightgear/flightgear/src/Scripting/NasalSys.cxx | |||
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}} | |||
yields {{repo link | |||
| 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? | |||
Thanks for considering; I can do the replacement if you wish. | |||
[[User:Rominet|Rominet]] ([[User talk:Rominet|talk]]) 10:38, 12 November 2025 (UTC) | |||
edits