Module:Sports series/doc: Difference between revisions

Content deleted Content added
adjust parameter names
update
Line 247:
|style="text-align:center;vertical-align:top"|{{TOC tab|id}}
|style="background-color:#fff"|Adds an [[WP:LINKPART|anchor]] to the top of the table which allows direct linking to the table.
|style="background-color:#fff"|String
 
|-
 
|style="text-align:center;vertical-align:top"|{{TOC tab|section}}
|style="background-color:#fff"|Allows for a custom name to be given to the table for the purposes of transclusion. This is useful when there are multiple instances of this module (or also [[Module:Sports table]]) on the same page within transclusion tags, allowing for selective calling of specific tables on another page. When the parameter is set and the module code is placed in between {{xtag|onlyinclude|p}} tags, other pages transcluding the table and using {{para|transcludesection}} will only show tables with a matching {{para|section}} and not all tables.
 
For example, if the article "Example" has this module placed in between {{xtag|onlyinclude|p}} tags with {{para|section|First round}}, then the table can be transcluded to other articles using <code><nowiki>{{:Example|transcludesection=First round}}</nowiki></code>.
|style="background-color:#fff"|String
 
Line 254 ⟶ 262:
|style="background-color:#fff"|To enable, set to a positive value (e.g. y, yes, 1). Adds a [[Help:Table#Nowrap|nowrap]] value to the table style.
|style="background-color:#fff"|String
 
|-
 
|style="text-align:center;vertical-align:top"|{{TOC tab|size}}
|style="background-color:#fff"|Modifies the text size of the table to a given percentage. The percentage size is optional. Default is <code>100</code>. Due to [[MOS:SMALLTEXT]], values lower than 85% will be converted to 85%.
|style="background-color:#fff"|Number
 
|-