ಟೆಂಪ್ಲೇಟು:URL/doc: ಪರಿಷ್ಕರಣೆಗಳ ನಡುವಿನ ವ್ಯತ್ಯಾಸ

Content deleted Content added
ಚು Reverted edits by Mlpearc (talk) to last version by Racerx11
Edited as explained in the talk page.
೧೩ ನೇ ಸಾಲು:
* <code><nowiki>{{URL|</nowiki>1=''url name''<nowiki>|</nowiki>2=''optional display text''<nowiki>}}</nowiki></code>
** The first parameter is parsed to see if it takes the form of a complete URL. If it doesn't start with a URI scheme (such as "http:", "https:", or "ftp:"), an "http://" prefix will be prepended to the specified generated target URL of the link.
** Parameter 2 is '''deprecated''', except for omitting a leading "www.".
 
'''Warning:''' The parameter 1 must be numbered explicitly if the URL contains an equal sign, as is common in the query string. This applies when the value of the URL is unknown, for example when this template is used in another template specifying the effective URL as a variable value. The ''deprecated'' second parameter for the displayed text, if present, '''must''' also be explicitly numbered if the first parameter is explicitly numbered; otherwise it will override the value of the first parameter.
೭೨ ನೇ ಸಾಲು:
| <tt><nowiki>{{</nowiki> {{BASEPAGENAME}} <nowiki>| 1=www.example.com/foo?page=42 }}</nowiki></tt>
| {{ {{BASEPAGENAME}} | 1=www.example.com/foo?page=42 }}
|-
| <tt><nowiki>{{</nowiki> {{BASEPAGENAME}} <nowiki>| www.example.com | example.com }}</nowiki></tt>
| {{ {{BASEPAGENAME}} | www.example.com | example.com }}
|-
| <tt><nowiki>{{</nowiki> {{BASEPAGENAME}} <nowiki>| http://www.example.com/foo | link }}</nowiki></tt>
Line ೧೦೨ ⟶ ೧೦೫:
"2": {
"label": "Display text",
"description": "The text to be displayed instead of the URL. Mostly '''Deprecateddeprecated'''",
"type": "string",
"required": false
"https://kn.wikipedia.org/wiki/ಟೆಂಪ್ಲೇಟು:URL/doc" ಇಂದ ಪಡೆಯಲ್ಪಟ್ಟಿದೆ