Template:Example: Difference between revisions
Template page
More actions
Created page with "{{Expand |{{#if: {{{num|}}} <!-- Check if 'num' is provided --> | Example {{{num}}}{{#if: {{{title|}}} |: {{{title}}} }} <!-- If 'num' exists, add title if provided --> | {{#if: {{{title|}}} | Example: {{{title}}} | Example }} <!-- If 'num' doesn't exist, fallback to title or just 'Example' --> }}| {{{1}}} }}" |
No edit summary |
||
| Line 1: | Line 1: | ||
{{Expand | {{Expand | ||
|{{#if: {{{num|}}} <!-- Check if 'num' is provided --> | |{{#if: {{{num|}}} <!-- Check if 'num' is provided --> | ||
| Example {{{num}}}{{#if: {{{title|}}} |: {{{title}}} }} | | Example {{{num}}}{{#if: {{{title|}}} |: {{{title}}} }} | {{#if: {{{title|}}} | Example: {{{title}}} | Example }} }}| | ||
}}| | |||
{{{1}}} | {{{1}}} | ||
}} | }} | ||