Jump to content

ទំព័រគំរូ:Template sandbox/doc

ពីវិគីភីឌា

This template can be used to create proper file titles, both if the name space was omitted or supplied by the user.

It is primarily of use in templates and should not be used in articles directly.

  • "{{Template sandbox| Example.svg }}" → "

If you defined parameters such as {{Template sandbox|First|Second|name="Named"}}:

First
Example.svg
Second
{{{2}}}
Name
{{{name}}}

"

  • "{{Template sandbox| File:Example.svg }}" → "

If you defined parameters such as {{Template sandbox|First|Second|name="Named"}}:

First
File:Example.svg
Second
{{{2}}}
Name
{{{name}}}

"

  • "{{Template sandbox| :File:Example.svg }}" → "

If you defined parameters such as {{Template sandbox|First|Second|name="Named"}}:

First
:File:Example.svg
Second
{{{2}}}
Name
{{{name}}}

"

This template could be expanded to a series of "Namespace title" templates, if needed.