Шаблон:LinkWrap
Wrap with a link if the link is provided.
This template is used on these pages.
Usage
{{LinkWrap{{#if:text | |text}}{{#if:link | |link}}{{#if: | |{{{param3}}}}}{{#if: | |{{{param4}}}}}{{#if: | |{{{param5}}}}}}} {{#if:text|
- text{{#if:shown text|: shown text}}
}}{{#if:link|
- link{{#if:(Optional) link|: (Optional) link}}
}}{{#if:|
- {{{param3}}}{{#if:|: }}
}}{{#if:|
- {{{param4}}}{{#if:|: }}
}}{{#if:|
- {{{param5}}}{{#if:|: }}
}}{{#if:|
- {{{param6}}}{{#if:|: }}
}}{{#if:|
- {{{param7}}}{{#if:|: }}
}}{{#if:|
- {{{param8}}}{{#if:|: }}
}}{{#if:|
- {{{param9}}}{{#if:|: }}
}}{{#if:|
- {{{param10}}}{{#if:|: }}
}}
{{#if:{{LinkWrap}}{{LinkWrap|Hello there!}}{{LinkWrap||Main Page}}{{LinkWrap|Hello there!|Main Page}} |
Code | Result | ||
---|---|---|---|
{{LinkWrap}} | {{#if:|[[{{{2}}}|{{#if:|{{{1}}}|{{{2}}}}}]]|}}|-no text nor link provided-}} | ||
{{LinkWrap|Hello there!}} | {{#if:|[[{{{2}}}|{{#if:Hello there!|Hello there!|{{{2}}}}}]]|Hello there!}}|-no text nor link provided-}} | ||
{{LinkWrap||Main Page}} | {{#if:Main Page|[[Main Page|{{#if: | }}|-no text nor link provided-}} | |
{{LinkWrap|Hello there!|Main Page}} | {{#if:Main Page|{{#if:Hello there!|Hello there!|Main Page}}|Hello there!}}|-no text nor link provided-}} | ||
}}
{{#ifeq: ШАБЛОН:LINKWRAP | TEMPLATE:DOC/TEMPLATE | | }}