Difference between revisions of "Template talk:AUR?"

From ArchWiki
Jump to: navigation, search
(A case for case-sensitivity: re 2x)
m (A case for case-sensitivity: disable transclusion of deleted template which was polluting special pages)
Line 27: Line 27:
 
* Aur: {{Aur|tor-browser-en}}
 
* Aur: {{Aur|tor-browser-en}}
  
* AUR?: {{AUR?|tor-browser-}}
+
* AUR?: <nowiki>{{AUR?|tor-browser-}}</nowiki>
* Aur?: {{Aur?|tor-browser-}} - why doesn't this work?
+
* Aur?: <nowiki>{{Aur?|tor-browser-}}</nowiki> - why doesn't this work?
* aur?: {{aur?|tor-browser-}}
+
* aur?: <nowiki>{{aur?|tor-browser-}}</nowiki>
  
 
Pkg template also supports two ways of calling the template:
 
Pkg template also supports two ways of calling the template:

Revision as of 01:58, 5 October 2014

Opinions

IMHO this template is not necessary, we could just implement a default value for the 4th argument in Template:App:

{{{4|not packaged? [https://aur.archlinux.org/ search in AUR]}}}

This will just show the AUR home, but searching for some predefined strings like this template is doing now is pointless since if a user adds this template, he should search for a package himself, and if he finds nothing why should he bias the search of other users in the future with his own keywords? And in any case, even if we don't consider biasing, thinking of some keywords should be such an easy task that giving some predefined ones seems to be overkill, if not an insult to other users' intelligence :P Finally, all the instances of this template that I've tested return 0 results in their searches, so the given keywords are not helping anyway.

-- Kynikos 11:26, 30 January 2012 (EST)

>> this template is not necessary
How will we find missing links then? Using this template looks like the simplest way.
>> we could just implement a default value for the 4th argument
>> searching for some predefined strings like this template is doing now is pointless
Looks good for me; my proposal: use
{{{4|{{AUR?{{1}}}}}
as 4th argument in Template:App.
Searching for application title works in 90% of cases.
--AlexanderR 18:28, 30 January 2012 (EST)
Discussion continues in Template talk:App#Introducing default argument . -- Kynikos 07:53, 1 February 2012 (EST)
Template:META Missing package points to the AUR website automatically when no 4th argument is given to Template:App, so Template:AUR? is now obsolete: all its instances should be simply removed together with the last | of the Template:App that was hosting it. -- Kynikos (talk) 17:50, 20 March 2014 (UTC)

A case for case-sensitivity

This template behaves differently than the AUR template, where both 'AUR' and 'Aur' work as the template name:

  • AUR?: {{AUR?|tor-browser-}}
  • Aur?: {{Aur?|tor-browser-}} - why doesn't this work?
  • aur?: {{aur?|tor-browser-}}

Pkg template also supports two ways of calling the template:

It's not a big deal, just something I noticed. -- Karol (talk) 08:54, 19 March 2014 (UTC)

Yeah this template doesn't have any helper redirects. I'm still supporting my idea at the bottom of Template talk:App#Introducing default argument though (replace it with Template:META Missing package): anybody else does? -- Kynikos (talk) 18:39, 19 March 2014 (UTC)
I like your idea. -- Karol (talk) 01:16, 20 March 2014 (UTC)
Thanks, it's implemented now, see #Opinions. -- Kynikos (talk) 17:55, 20 March 2014 (UTC)
Note that in this case only the uppercase variant is correct according to Help:Template#Style. Template:Aur should not even exist, but removing it would probably break a lot of pages. -- Lahwaacz (talk) 18:59, 19 March 2014 (UTC)
True, I've fixed the majority of Template:Aur instances with the bot, however I don't know if deleting it could confuse some users expecting the lower-case variant to work. It's a very easy fix anyway, even on many articles. -- Kynikos (talk) 17:55, 20 March 2014 (UTC)