Difference between revisions of "Module:Infobox/utilities/doc"

From blackwiki
Jump to navigation Jump to search
test>Trappist the monk
m (ce;)
test>Trappist the monk
(ce;)
Line 5: Line 5:
 
**<code>ethnicity_sort()</code> – sorts the various ethnicity parameters and renders an unbulleted list of same
 
**<code>ethnicity_sort()</code> – sorts the various ethnicity parameters and renders an unbulleted list of same
 
**<code>occupation_sort()</code> – sorts the various occupation parameters and renders an unbulleted list of same
 
**<code>occupation_sort()</code> – sorts the various occupation parameters and renders an unbulleted list of same
 
+
*for {{tlx|Infobox book}}
 +
**<code>set_italics()</code> – used to ensure that book-titles in cjk scripts are not italicized
 +
***<code>is_cjk_code()</code> – (private) returns true when language code represents a cjk language
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
  
 
}}</includeonly>
 
}}</includeonly>

Revision as of 21:42, 23 July 2020

This module is intended to be a repository for miscellaneous utility functions that support various infoboxes.

  • for {{Infobox U.S. congressional district}}
    • distribution_sort() – sorts the various distribution parameters and renders an unbulleted list of same
    • ethnicity_sort() – sorts the various ethnicity parameters and renders an unbulleted list of same
    • occupation_sort() – sorts the various occupation parameters and renders an unbulleted list of same
  • for {{Infobox book}}
    • set_italics() – used to ensure that book-titles in cjk scripts are not italicized
      • is_cjk_code() – (private) returns true when language code represents a cjk language