Template talk:Repo link: Difference between revisions

Jump to navigation Jump to search
→‎Todo list: Typo; There is a need for a few more parameters in some of the templates.
(→‎Todo list: Special:LinkSearch may be somewhat useful later)
(→‎Todo list: Typo; There is a need for a few more parameters in some of the templates.)
Line 235: Line 235:
::::::: [[User:Red_Leader|<span style="color:red">'''''Red Leader'''''</span>]] ([[User_talk:Red_Leader|Talk]], [[Special:Contributions/Red_Leader|contribs]]) 16:03, 13 September 2015 (EDT)
::::::: [[User:Red_Leader|<span style="color:red">'''''Red Leader'''''</span>]] ([[User_talk:Red_Leader|Talk]], [[Special:Contributions/Red_Leader|contribs]]) 16:03, 13 September 2015 (EDT)


::::::::* What about doing something similar to the new templates, in essence {{obr}}'''fgaddon url'''{{!}}''aircraft''{{!}}''path''{{!}}''commit''{{cbr}}.  Of course for example FGUK's and Helijah's hangars will not handle '''path''' and '''commit''' as those are not repos.
::::::::* What about doing something similar to the new templates, in essence {{obr}}'''fgaddon url'''{{!}}''aircraft''{{!}}''path''{{!}}''<s>commit</s>revision''{{cbr}}.  Of course for example FGUK's and Helijah's hangars will not handle '''path''' and '''commit''' as those are not repos.
::::::::: The aircraft repo/hangar templates will probably differ somewhat in implementation, but hopefully for a wiki editor they will be rather "orthogonal" (in the sense that they would be usable in a way consistent with similar templates).
::::::::: The aircraft repo/hangar templates will probably differ somewhat in implementation, but hopefully for a wiki editor they will be rather "orthogonal" (in the sense that they would be usable in a way consistent with similar templates).
::::::::: I guess for aircraft repos, as opposed to hangars, the template with only the '''aircraft''' parameter given should point to that aircraft directory or submodule.  It would also seem reasonable that a template with no parameters given should point to the repo or hangar top directory, info page or something similar.
::::::::: I guess for aircraft repos, as opposed to hangars, the template with only the '''aircraft''' parameter given should point to that aircraft directory or submodule.  It would also seem reasonable that a template with no parameters given should point to the repo or hangar top directory, info page or something similar.
Line 241: Line 241:
::::::::: I am not really sure how (and why) I imagined that the commit reference would be different in URL and label.  That would probably not (ever) be needed and only confusing if used.
::::::::: I am not really sure how (and why) I imagined that the commit reference would be different in URL and label.  That would probably not (ever) be needed and only confusing if used.
:::::::: —[[User:Johan G|Johan G]] ([[User_talk:Johan_G|Talk]] | [[Special:Contributions/Johan_G|contribs]]) 15:50, 15 September 2015 (EDT)
:::::::: —[[User:Johan G|Johan G]] ([[User_talk:Johan_G|Talk]] | [[Special:Contributions/Johan_G|contribs]]) 15:50, 15 September 2015 (EDT)
:::::::: I have noted that there is a need to be able to link to the tarballs.  I suggest adding a '''tarball=''' property that when not empty will link to the tarball download. (Also mentioned on Template talk:Fgaddon url).
:::::::: —[[User:Johan G|Johan G]] ([[User_talk:Johan_G|Talk]] | [[Special:Contributions/Johan_G|contribs]]) 07:01, 16 September 2015 (EDT)


::::::: {{tl|simgear file}} done. {{done}}
::::::: {{tl|simgear file}} done. {{done}}
Line 250: Line 253:
:::::::: Just remembered a somewhat useful tool when looking for external links to repos to replace with these templates: [[Special:LinkSearch]].  Its main drawback is a large one though:  It only look for domain names, not paths on a web site.  *sigh*  At least there is less than 2000 links to SourceForge, which by far have most links (though most of them developer mailing list posts).
:::::::: Just remembered a somewhat useful tool when looking for external links to repos to replace with these templates: [[Special:LinkSearch]].  Its main drawback is a large one though:  It only look for domain names, not paths on a web site.  *sigh*  At least there is less than 2000 links to SourceForge, which by far have most links (though most of them developer mailing list posts).
:::::::: —[[User:Johan G|Johan G]] ([[User_talk:Johan_G|Talk]] | [[Special:Contributions/Johan_G|contribs]]) 16:35, 15 September 2015 (EDT)
:::::::: —[[User:Johan G|Johan G]] ([[User_talk:Johan_G|Talk]] | [[Special:Contributions/Johan_G|contribs]]) 16:35, 15 September 2015 (EDT)
:::::::: I have noted that the repository templates also may need a '''line=''' and probably also a '''label=''' parameter.  Many articles have links to particular line in a source file and some have links where even a '''nopath=1''' would currently take up too much space (in particular [[Canvas MapStructure Layers]]).
:::::::: In summary there seem to be a few things we have not thought of yet.
:::::::: —[[User:Johan G|Johan G]] ([[User_talk:Johan_G|Talk]] | [[Special:Contributions/Johan_G|contribs]]) 07:01, 16 September 2015 (EDT)

Navigation menu