Diferencia entre revisiones de «Xpds»
De La Venciclopedia
m (1 revisión importada) |
m (Texto reemplazado: «[[Template» por «[[plantilla») |
||
Línea 3: | Línea 3: | ||
{{Lua|Module:xpd}} | {{Lua|Module:xpd}} | ||
This [[ | This [[plantilla:xpds]] (expansion demo) shows the call of a variable, parser function or template and its result, for documentation. The call is the same as the template call to be demonstrated, except that "<code>xpds{{!}}</code>" is inserted after the opening braces. | ||
The template uses [[Module:Xpd]]; see also [[Module talk:Xpd]]. | The template uses [[Module:Xpd]]; see also [[Module talk:Xpd]]. | ||
Línea 26: | Línea 26: | ||
== See also == | == See also == | ||
* [[ | * [[plantilla:Xpdp]] - the same, except that it starts the result of the template, variable or parser function call in a new paragraph | ||
* [[m:Template:Xpd/doc]] | * [[m:Template:Xpd/doc]] | ||
}} | }} | ||
[[Category:Handbook templates{{#translation:}}|{{PAGENAME}}]] | [[Category:Handbook templates{{#translation:}}|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> |
Revisión actual - 19:36 21 ene 2024
This template uses Lua: |
This plantilla:xpds (expansion demo) shows the call of a variable, parser function or template and its result, for documentation. The call is the same as the template call to be demonstrated, except that "xpds|
" is inserted after the opening braces.
The template uses Module:Xpd; see also Module talk:Xpd.
Examples:
{{xpds|CURRENTTIME}} gives: {{CURRENTTIME}}
→ 22:23
{{xpds|#expr:1/7}} gives: {{#expr:1/7}}
→ 0.14285714285714
{{xpds|2x|abc}} gives: {{2x|[[abc]] }}
→ Plantilla:2x
{{xpds|2x|0.14285714285714}} gives: {{2x|0.14285714285714 }}
→ Plantilla:2x
{{xpds|t2demo|abc}} gives: {{t2demo||abc}}
→ Plantilla:T2demo
{{xpds|hook|ParserBeforeStrip}} gives: {{hook|ParserBeforeStrip}}
→ ParserBeforeStrip
{{xpds|Foreach|hook|delim=,|ParserBeforeStrip|ParserAfterStrip}} gives:
{{Foreach|hook|ParserBeforeStrip|ParserAfterStrip|delim=,}}
→ ParserBeforeStrip ,ParserAfterStrip
See also
- plantilla:Xpdp - the same, except that it starts the result of the template, variable or parser function call in a new paragraph
- m:Template:Xpd/doc
[[Category:Handbook templates{{#translation:}}|Xpds]]