Module:AutosortTable/doc: Difference between revisions

Content deleted Content added
mNo edit summary
Reverted 1 edit by 39.60.166.249 (talk): Misplaced content
 
(4 intermediate revisions by 3 users not shown)
Line 1:
{{Module rating|release}}
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
 
== Usage ==
This module helps create data tables in an automatically sorted order. As of this writing it is used primarily for the generation of the huge, dynamic tables at [[list of Wikipedias]] and [[Wikipedia:List of Wikipedias]]. For [[list of Wikipedias#Wikipedia editions|the '''Wikipedia editions''' table]], the module is invoked directly to create the ''framework'' for the table, followed by content for the rows within the module's invocation. For [[Wikipedia:List of Wikipedias#Detailed list|the '''Edition details''' table]], the module is invoked directly to create the ''framework'' for the table while the template {{tlx|Wikipedia stats}} generates content for the individual rows, also within the module's invocation. The template {{tlx|Wikipedia stats}} is intended to be called as an argument within the module's invocation, as it does not produce the regular wikitable (or any standard table) code itself.
Line 136 ⟶ 135:
This table has some special alignment requirements, as it contains several columns containing large numbers, so the ''colstyle'' argument is used extensively. Please view the wikicode to see the details.
 
{{#invoke: AutosortTable|create|class=wikitable plainrowheaders sortable|style=text-align:right;|separator=--|order=13, 1|numeric=13|descending=13, 5, 6, 7, 8, 9, 10, 11, 12|hidden=13|caption=Details of Wikipedia editions|rowheader=1
|header = -- Language -- Language (local) -- Wiki -- Articles -- All pages -- Edits -- Admins -- Users -- Active users -- Files -- Depth -- Percentage
|colstyle = -- text-align:left; -- text-align:left; -- text-align:left; -- -- -- -- -- -- -- -- -- -- <!-- col 13 is hidden so align doesn't matter here -->
Line 153 ⟶ 152:
<!-- Categories below this line; interwikis at Wikidata -->
}}</includeonly>
<noinclude>
[[Category:Module documentation pages]]
</noinclude>