Template talk:Pkg: Difference between revisions

From Alpine Linux
(please add options)
 
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
This template should have options to specify the architecture and maybe also the repository. Currently packages which are not available in the x86_64 architecture (eg. `linux-asahi`) can't be linked with this template.
This template should have options to specify the architecture and maybe also the repository. Currently packages which are not available in the x86_64 architecture (eg. `linux-asahi`) can't be linked with this template. [[User:Sertonix|Sertonix]] ([[User talk:Sertonix|talk]]) 22:52, 8 November 2023 (UTC)
 
<s>:Hey Sertonix, I've been working on this lately, check out the potential new template @ [[Template:Sandbox]], and I'd love for you to add some test cases to @ [[Sandbox]] too just in case I've missed something!
:Thanks &ndash;[[User:zcrayfish|zcrayfish]] <small>([[User talk:zcrayfish|talk]]•[[Special:Contributions/zcrayfish|contribs]]•[[Special:EmailUser/zcrayfish|send email]])</small> 20:32, 2 January 2024 (UTC)</s>
 
:{{done}}
:The pkg template has been updated!
:&ndash;[[User:zcrayfish|zcrayfish]] <small>([[User talk:zcrayfish|talk]]•[[Special:Contributions/zcrayfish|contribs]]•[[Special:EmailUser/zcrayfish|send email]])</small> 21:40, 9 January 2024 (UTC)
 
::Thanks! [[User:Sertonix|Sertonix]] ([[User talk:Sertonix|talk]]) 14:45, 10 January 2024 (UTC)
 
= '''arch=''' default to all architectures =
 
Most of the time what you say will apply regardless of the architecture,
so this will cut down on the amount of text you need for the common
case.<br>
(The same argument may apply for '''branch=''' too but I have no opinion.)
--[[User:Encode|Encode]] ([[User talk:Encode|talk]]) 00:54, 27 May 2024 (UTC)
 
:Yes I agree, the current version of the {{ic|pkg}} template defaults to {{ic|branch{{=}}edge{{!}}arch{{=}}x86_64}} because that is what the previous versions of the template was hardcoded to. &ndash;[[User:zcrayfish|zcrayfish]] <small>([[User talk:zcrayfish|talk]]•[[Special:Contributions/zcrayfish|contribs]]•[[Special:EmailUser/zcrayfish|send email]])</small> 17:27, 28 May 2024 (UTC)
 
:Also in regards to the {{ic|branch{{=}}}} argument of the template, it has to default to edge for now because it can no longer be left blank. In the future it might be possible to have it default to something along the lines of <nowiki>{{AlpineLatest}}</nowiki>, but I have not figured out how to get this MediaWiki instance to properly deal with numbers like "3.20.0" (it can truncated them to 3.2, which is one digit off of what we need).<br>
:A change to the template to remove the reference to searching all branches is pending. &ndash;[[User:zcrayfish|zcrayfish]] <small>([[User talk:zcrayfish|talk]]•[[Special:Contributions/zcrayfish|contribs]]•[[Special:EmailUser/zcrayfish|send email]])</small> 18:33, 28 May 2024 (UTC)

Latest revision as of 18:33, 28 May 2024

This template should have options to specify the architecture and maybe also the repository. Currently packages which are not available in the x86_64 architecture (eg. `linux-asahi`) can't be linked with this template. Sertonix (talk) 22:52, 8 November 2023 (UTC)

:Hey Sertonix, I've been working on this lately, check out the potential new template @ Template:Sandbox, and I'd love for you to add some test cases to @ Sandbox too just in case I've missed something!

Thanks –zcrayfish (talkcontribssend email) 20:32, 2 January 2024 (UTC)

✔️ Done

The pkg template has been updated!
zcrayfish (talkcontribssend email) 21:40, 9 January 2024 (UTC)
Thanks! Sertonix (talk) 14:45, 10 January 2024 (UTC)

arch= default to all architectures

Most of the time what you say will apply regardless of the architecture, so this will cut down on the amount of text you need for the common case.
(The same argument may apply for branch= too but I have no opinion.) --Encode (talk) 00:54, 27 May 2024 (UTC)

Yes I agree, the current version of the pkg template defaults to branch=edge|arch=x86_64 because that is what the previous versions of the template was hardcoded to. –zcrayfish (talkcontribssend email) 17:27, 28 May 2024 (UTC)
Also in regards to the branch= argument of the template, it has to default to edge for now because it can no longer be left blank. In the future it might be possible to have it default to something along the lines of {{AlpineLatest}}, but I have not figured out how to get this MediaWiki instance to properly deal with numbers like "3.20.0" (it can truncated them to 3.2, which is one digit off of what we need).
A change to the template to remove the reference to searching all branches is pending. –zcrayfish (talkcontribssend email) 18:33, 28 May 2024 (UTC)