Editing
Template:Version/doc
(section)
Jump to navigation
Jump to search
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!
== Parameters == === Legend box === {| class="wikitable" |- ! Parameter ! Description ! Notes |- | <code>1</code> | Legend type | Either of the following generates a legend box. Acceptable values include: :'''l''': Horizontal legend :'''lv''': Vertical legend :'''t''': Horizontal legend, as a table :'''tv''': Vertical legend, as a table |- | <code>show</code> | Legend contents | This parameter is optional. By default the legend box contains the following six items: # '''Legend:''' (appears bold when the legend type is either "l", "lv", or "t") # Old version, not maintained # Old version, still maintained # '''Current version''' (appears bold) # Latest preview version # Future version This parameter allows each item to be displayed or hidden with digits. Each digit controls the state of its associated item in the above list.<br /> Acceptable digits are "1" (displays the associated legend item) and "0" (hides the associated legend item).<br /> The parameter is "show=XXX" where "XXX" is: * a six-digit number when the legend type is either "l" or "lv" * a five-digit number when the legend type is either "t" or "tv" because the first item ("Legend:") cannot be hidden. Additional digits on the '''left''' are ignored. |- | <code>style</code> | [[Cascading Style Sheets|CSS]] styles | This parameter is optional. Use it to change the template's formatting, style and layout via CSS syntax. In combination with the legend the specified CSS applies to the entire block. |} === Table cells === {| class="wikitable" |- ! Parameter ! Description ! Notes |- | <code>1</code> | Data type | Either of the following change the background color of the cell in which it is inserted: :'''o''': Denotes old version that is not maintained :'''co''': Denotes old version that is maintained :'''c''': Denotes latest stable version :'''cp''': Denotes latest preview version :'''p''': Denotes planned future version |- | <code>2</code> | Text | Specifies the text to display on screen, usually a version number or name of a specific version. |- | <code>style</code> | [[Cascading Style Sheets|CSS]] styles | This parameter is optional. Use it to change the template's formatting, style and layout via CSS syntax. This parameter can be inserted into a table cell to enforce CSS definitions in that cell. |- | <code>sortKey</code>{{anchor|sortKey}} | Sorting key | This parameter is optional. A sortkey is an invisible string used to change the way a certain table cell is sorted. For instance, normally, the phrase "ACME's Bow" is sorted with phrases that start with A. Affixing a sortkey of "Bow" to the phrase causes the phrase to be sorted with other phrases that start with "B" (or, to be more accurate, with "Bow"). For general information on sorting tables, see [[Help:Tables#Sorting|Help:Tables]]. |}
Summary:
By saving changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
This page is a member of a hidden category:
Category:Pages with script errors
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Search
Navigation
Main page
Community portal
Current events
Recent changes
Random page
Help
Donate
Tools
What links here
Related changes
Upload file
Special pages
Page information