Template:LS/link

{{#ifeq:{{{nw|}}}|y|{{#if:{{{link|}}}|{{#NewWindowLink:http://{{{link|www.example.com}}}|{{{1}}}}}|{{#NewWindowLink:{{fullurl:{{{1|{{FULLPAGENAME}}}}}}}|{{{2|{{{1}}}}}}}}}}|{{#if:{{{link|}}}||www.example.com}}} {{{1}}}|[{{fullurl:{{{1|{{FULLPAGENAME}}}}}}} {{{2|{{{1}}}}}}}}] {{LS/link|Foo}} {{LS/link|Foo|Bar}} {{LS/link|Foo|link=google.com/search?q=foo+bar}} {{LS/link|Foo|nw=y}} {{LS/link|Foo|nw=y|Bar}} {{LS/link|Foo|nw=y|link=google.com/search?q=foo+bar}}