Template:Block: Difference between revisions
(Test) |
(Working) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#if:{{{2|}}} <!-- If there's a second parameter --> | {{#if:{{{2|}}} <!-- If there's a second parameter (format at link)--> | ||
|<code>[[{{{2}}}|{{{1}}}]]</code> | |{{#ifeq:{{{1}}}|l <!-- If the link would just be "l" (shorthand for use the same name)--> | ||
|<code>[[{{{2}}}]]</code> | |||
|<code>[[{{{1}}}|{{{2}}}]]</code> | |||
|}} | |||
|<code>{{{1}}}</code> <!-- Return the name in code blocks --> | |<code>{{{1}}}</code> <!-- Return the name in code blocks --> | ||
|}} | |}} |
Latest revision as of 20:16, 9 August 2022
{{{1}}}