Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  





2 Parameters  





3 Examples  





4 Making spaces visible  





5 See also  














Template:Param value/doc







Add links
 









Template
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 

< Template:Param value

  • {{pval}}
  • Provides a lightly bordered box to highlight param values on Template documentation pages. Especially useful in cases where values may have leading or trailing blanks, or multiple embedded blanks.

    Usage[edit]

    {{param value|value}}

    Parameters[edit]

    There is one required positional parameter for the value, and four optional params: three for styling the display, and one replacement parameter for dealing with how to render a blank space:

    |1= – the value to be highlighted; required (no default)
    |border= – may be used to set border attributes. default: thin solid #caa. Alias: |b=.
    |bg-color= – may be used to set background-color. default: white. Alias: |bg=.
    |style= – may be used to set any CSS style attributes, with one or more semicolon-separated attribute:value pairs. default:none.
    |space= – may be used to make spaces visible. Alias: |sp=. See #Making spaces visible below.

    Note on special characters: if the value to be highlighted contains an equal sign, it must be escaped: use {{=}} instead of a bare equal sign character.

    Examples[edit]

    Making spaces visible[edit]

    You may make space characters visible by replacing them with any character you choose using param |space=. Here are some characters that have been historically used for this purpose. In these examples, there are two spaces between one and two:

    See also[edit]


    Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Param_value/doc&oldid=1227074135"

    Hidden category: 
    Template documentation pages
     



    This page was last edited on 3 June 2024, at 14:51 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki