Template:Xpdoc/doc
This is a documentation subpage for Template:Xpdoc. It contains usage information, categories, and other content that is not part of the original template page. |
See Help:Expansion demo templates.
"[[{{{1}}}]]"
gives "{{{{{1}}}}}" [1]
Examples
edit{{xpdoc|l=x|tss}} |
"{{tss}}" → "in" [2]
|
{{xpdoc|d=|CURRENTDAY}} |
{{CURRENTDAY}} → 27 [3]
|
{{xpdoc|CURRENTDAY}} |
"{{CURRENTDAY}}" → "27" [4]
|
{{xpdoc|d=''|CURRENTDAY}} |
''{{CURRENTDAY}}'' → 27 [5]
|
{{xpdoc|#expr:2*3}} |
"{{#expr:2*3}}" → "6" [6]
|
{{xpdoc|urlencode:!}} |
"{{urlencode:!}}" → "%21" [7]
|
{{xpdoc|uc:abc}} |
"{{uc:abc}}" → "ABC" [8]
|
If the left side contains an equals sign, the named parameter 1 can and should be used:
{{xpdoc|1=#expr:2+2=4}} |
"{{#expr:2+2=4}}" → "1" [9]
|
Alternatives with Template:Demo inline
edit{{demo inline|<nowiki>{{CURRENTDAY}}</nowiki>}} |
{{CURRENTDAY}} → 27
|
{{demo inline|<nowiki>"{{CURRENTDAY}}"</nowiki>}} |
"{{CURRENTDAY}}" → "27"
|
{{demo inline|<nowiki>''{{CURRENTDAY}}''</nowiki>}} |
''{{CURRENTDAY}}'' → 27
|