Template:Votings/sorted

From Wikinews, the free news source you can write!
Jump to navigation Jump to search

Articles needing review: 5  Categories to be populated: 10  Protected edit requests: 36  Protection requests: 1  Pages marked for speedy deletion: 293  Unblock requests: 1  Flagged discussions: 12  Accreditation requests: 2  Requests for permissions: 1  Deletion discussions: 2  Developing articles: 3 of ≤ 104  Articles under review: 0  Flagged revs requests: 0  FA candidates: 0  Bot requests: 0  Edit

[edit] Template documentation

Usage

This template provides a variant of the attention-list of {{votings}}, with all the non-zero items first, followed by the zero items.

As for {{votings}}, optional parameter row excludes entries not earmarked for the specified row.

Internals

The sorting is accomplished by calling {{votings}} twice, first with parameter x=+, then with x=0. The parameter is passed down through {{votings}} (along with parameter row) to the subtemplates that generate the entries.