Template:Votings/sorted/doc
This is a documentation subpage for Template:Votings/sorted (see that page for the template itself). It contains usage information, categories and other content that is not part of the original template page. |
Usage
editThis 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
editThe 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.