Gebruiker:Pjetter/klad: verschil tussen versies

Verwijderde inhoud Toegevoegde inhoud
Pjetter (overleg | bijdragen)
+log (met toestemming overgenomen)
Pjetter (overleg | bijdragen)
opmaak
Regel 1:
<pre>
<Londenp> Hi. Question for someone who knows the Parser functions: Is there a way how I can find out with parser language if a certain article is in a category.
Something like if AAA is in CAT:BBB then display a certain image?
<Splarka> probably need DPL for that (depending on what you wanna do exactly)
<Londenp> In fact it is for Wikibooks
Regel 46 ⟶ 47:
<Splarka> only way I can think of is the API, but on the mainpage that would be a lot of queries to it (and it isn't cached)
<Splarka> or a custom extension
<Londenp> The information for the status of the book is with a DPL-thing in a hidden category and the template would look in which
hidden category for the status it is and then display the according image
<Londenp> OK too bad then
<Splarka> OR.. you could create subpages for each book, that indicate the status
Informatie afkomstig van https://nl.wikibooks.org Wikibooks NL.
Wikibooks NL is onderdeel van de wikimediafoundation.