Template talk:Fgaddon aircraft source: Difference between revisions

Jump to navigation Jump to search
Line 18: Line 18:


—[[User:Johan G|Johan G]] ([[User_talk:Johan_G|Talk]] | [[Special:Contributions/Johan_G|contribs]]) 04:18, 8 March 2016 (EST)
—[[User:Johan G|Johan G]] ([[User_talk:Johan_G|Talk]] | [[Special:Contributions/Johan_G|contribs]]) 04:18, 8 March 2016 (EST)
: I'm working on {{tl|fgaddon url/sandbox}} to come up with a functional equivalent.  The current <code><nowiki><URL>/<branch>/Aircraft/<aircraft>/<path>[@<r>][#l<l>]</nowiki></code> construction is quite intuitive.  Though it is very different to any of the other {{obr}}* url{{cbr}} templates, or any of the {{tl|repo link}} family members.  Maybe a good organisation would be:
:* Use {{tl|fgaddon url/sandbox}} for {{tl|fgaddon url}} to provide a standard interface for direct URL creation.  This would match the {{obr}}* source{{cbr}} standardisation.
:* Reserve the file link templates ({{obr}}* file{{cbr}}) for the more unique templates.
:* Recreate {{tl|fgaddon file}} based on {{tl|fgaddon source}}, but with the usage changed from:
::: {{obr}}'''fgaddon file'''{{!}}''aircraft''{{!}}''path''{{!}}''r=''{{!}}''b=''{{!}}''l=''{{!}}''file=''{{cbr}}
:: to maybe:
::: {{obr}}'''fgaddon file'''{{!}}''aircraft''{{!}}''path''{{!}}''file=''{{!}}''cmd=''{{!}}''opt=''{{!}}''protocol=''{{!}}''login=''{{!}}''type=''{{!}}''branch=''{{!}}''commit=''{{!}}''line=''{{!}}''view=''{{!}}''text=''{{!}}{{cbr}}
:: i.e. The {{param|aircraft}} and {{param|path}} parameters are preserved and are used to construct the {{tl|repo link}} {{param|path}} parameter.  And the {{param|file}} parameter is also preserved, and being set will cause the {{tl|repo link}} {{param|text}} parameter to be constructed.  I can then alias {{param|r}} = {{param|c}} = {{param|commit}}, {{param|b}} = {{param|branch}}, and {{param|l}} = {{param|line}}.  This should mimic the current behaviour and not break any linking pages.  I'll try something in {{tl|fgaddon file/sandbox}}.
: Originally I was thinking of creating a {{obr}}* file{{cbr}} set of templates using only the {{tl|repo link}} parameters {{param|protocol}}, {{param|type}}, {{param|user}}, {{param|proj}}, {{param|repo}}, {{param|branch}}, {{param|tag}}, {{param|commit}}, {{param|path}}, {{param|line}}, {{param|view}}, {{param|text}}, {{param|pre}}, {{param|simplepath}}, and {{param|full}}.  But this is a little redundant with the other family members, so I might drop that idea.
: [[User:Bugman|Bugman]] ([[User talk:Bugman|talk]]) 05:36, 8 March 2016 (EST)

Navigation menu