6,609
edits
No edit summary |
|||
| Line 111: | Line 111: | ||
::: [[User:Rominet|Rominet]] ([[User talk:Rominet|talk]]) | ::: [[User:Rominet|Rominet]] ([[User talk:Rominet|talk]]) | ||
:::: Not a problem. For the <code>simplepath</code> parameter, that is the designed behaviour in the {{tl|repo link}} template. In most cases our repositories have complex directory structures and the desired output is the absolute file path, removing the protocol and URL parts of the path. Do you wish to simply have the file name there? No one had asked for that before, so I never added an option for that. In the case of the source repositories, you often want to remove the first part of the absolute path so that for example in SimGear, {{simgear source|path=simgear/scene/util/QuadTreeBuilder.hxx|simplepath=1}} (<nowiki>{{simgear source|path=simgear/scene/util/QuadTreeBuilder.hxx|simplepath=1}}</nowiki>) would be shown as {{simgear source|path=simgear/scene/util/QuadTreeBuilder.hxx|text=scene/util/QuadTreeBuilder.hxx}} (<nowiki>{{simgear source|path=simgear/scene/util/QuadTreeBuilder.hxx|text=scene/util/QuadTreeBuilder.hxx}}</nowiki>. This is not scriptable in MediaWiki so I left it all for the text parameter. | |||
:::: For the protocol, I have now added the <code>protocol</code> parameter. E.g. <nowiki>{{fgmeta clone | protocol = https}}</nowiki>. That will give <code>{{fgmeta clone | protocol = https}}</code> (as of today generated as <code><nowiki>git clone https://gitlab.com/flightgear/fgmeta.git</nowiki></code>). | |||
:::: [[User:Bugman|Bugman]] ([[User talk:Bugman|talk]]) 08:51, 24 March 2025 (UTC) | |||