Open main menu
Home
Random
Donate
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:AutosortTable/doc
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== "Details of Wikipedia editions" example === Here is an abbreviated version of the [[List of Wikipedias#Details table|'''Details of Wikipedia editions''' table]] at [[List of Wikipedias]]. This table uses templates (using this module) to produce the individual rows for the table which this module will generate. Like the above example, this is a manually sortable wikitable which uses the class "plainrowheaders" (no bold, not centered) for row headers (specified here as only column 1). However, this table is auto-sorted by the second column (based on number of articles) ''which is '''hidden''''' (although the same values are used again β and shown β in column 5 as "Articles"), and which is a numeric field and should be used for auto-sorting in descending order (highest at the top). The content of each row in the table is generated by one of the WP''n'' templates and the call to each template is entered as a separate argument (starting with a pipe <nowiki>[|]</nowiki> symbol). 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:center; | separator = -- | order = 2 | numeric = 2 | descending = 2, 5, 6, 7, 8, 9, 10, 11, 12 | hidden = 2 | caption=Details of Wikipedia editions | rowheader = 1 | header = --Language--Language (local)--Wiki--Articles--Total pages--Edits--Admins--Users--Active users--Images--Depth | colstyle = <!--col 1 is language name: --> -- text-align:center; <!--col 2 is hidden so align doesn't matter here: --> -- -- text-align:center; -- text-align:center; <!--col 5-12 (4-11 displayed) are numeric so right align: --> -- text-align:right; -- text-align:right; -- text-align:right; -- text-align:right; -- text-align:right; -- text-align:right; -- text-align:right; -- text-align:right; | {{WP7|af|Afrikaans}} | {{WP7|als|Alemannic}} | {{WP7c|de|German|Deutsche Sprache}} | {{WP7c|en|English|English language}} | {{WP7c|ceb|Cebuano|Sinugboanon}} | {{WP7a|kr|Kanuri}} }} <includeonly>{{Sandbox other|| <!-- Categories below this line; interwikis at Wikidata --> }}</includeonly>
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)