[Wikide-l] Fwd: [Wikitech-l] Multiple categories

"DaB." at gmx.de "DaB." at gmx.de
Di Jun 29 14:13:13 UTC 2004


Hallo Leute,

die angehängte Nachricht kam heute über die Tech-Liste. Wenn ich's richtig übersetze bedeutet das, dass wir bald Kategorieabfragen machen können.

Ein Beispiel:

Liest mir alle Autoren auf, die in in der Antike gelebt haben UND aus Griechenland kamen.

Den Code-teil am Ende der Nachricht habe ich entfernt, der ist IMHO nicht wichtig für diese Liste.

Mit freundlichen Grüssen
DaB.

On 29/Jun/2004 01:16:43, Nikola Smolenski  wrote:
> ----------  Forwarded Message  ----------
> 
> Subject: [Wikitech-l] Multiple categories
> Date: Sun, 30 May 2004 12:07:09 +0200
> From: Nikola Smolenski <smolensk at EUnet.yu>
> To: Wikimedia developers <wikitech-l at Wikipedia.org>
> 
> I have made a patch which enables display of all articles that belong to
> multiple categories. Thus, for example, Category:Female/Orthodox/Saint would
> return all female orthodox saints (that is, all articles which are
> categorised with at least [[Category:Female]], [[Category:Orthodox]] and
> [[Category:Saint]]).
> 
> I am not sure would this make for much greater database load, but that
>  remains to be seen in practice. Line if(strchr($t,"/")) { and corresponding
>  else block are actually not needed but I have left them because I figure
>  that display of a single category is slightly faster this way, and that at
>  that point it would be easier to turn off this feature if needed. It should
>  also be easy to limit to number of categories if that turns out to be
>  neccesary.