テンプレート:Xpds

提供: ひつじ小屋別館2代目
2013年6月29日 (土) 19:31時点におけるしが (トーク | 投稿記録)による版 (1版)

(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先: 案内検索


This Template: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}} → 01:09


{{xpds|#expr:1/7}} gives: {{#expr:1/7}} → 0.14285714285714


{{xpds|2x|[[abc]] }} gives: {{2x|[[abc]] }}abc abc


{{xpds|{{#expr:7-5}}x|{{#expr:1/7}} }} gives: {{2x|0.14285714285714 }} → 0.14285714285714 0.14285714285714


{{xpds|t2demo||abc}} gives: {{t2demo||abc}}テンプレート:T2demo


{{xpds|SeeHook|ParserBeforeStrip}} gives: {{SeeHook|ParserBeforeStrip}}ParserBeforeStrip


{{xpds|Foreach|SeeHook|delim=,|ParserBeforeStrip|ParserAfterStrip}} gives:

{{Foreach|SeeHook|ParserBeforeStrip|ParserAfterStrip|delim=,}}ParserBeforeStrip,ParserAfterStrip

See also[編集]