Šablonas:xpdnp/doc
This template:xpdnp ( aptarimas redaguoti istorija nuorodos ) (expansion demo with named parameters) shows the call of a template or switch and its result, for documentation. It works with up to 6 named parameters.
Examples
taisyti- {{xpdnp|tc}} gives: {{
tc
}} gives in [1] - {{xpdnp|t np|1n=q|1v=s}} gives: {{
t np|q=s
}} gives psr [2] - {{xpdnp|t np2|1n=q|1v=u|2n=s|2v=v}} gives: {{
t np2|q=u|s=v
}} gives purvt [3] - {{xpdnp|#switch:q|1n=p|1v=u|2n=q|2v=v}} gives: {{
#switch:q|p=u|q=v
}} gives v [4] - {{xpdnp|p|1n=|1v=q}} gives: {{
p|=q
}} gives (prk.) [5] (the empty string is used as parameter name)
For variables only the ExpandTemplates part works :
- {{xpdnp|CURRENTTIME}} gives: {{
CURRENTTIME
}} gives Šablonas:CURRENTTIME [6]
Therefore, for variables use template:xpd ( aptarimas redaguoti istorija nuorodos ) instead:
- {{xpd|CURRENTTIME}} gives: Šablonas:xpd0