Template:Example: Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
m (Changed my mind on the inline variant for paramters)
imported>FrozenPlum
m (change my approach for this)
Line 1: Line 1:
<onlyinclude><includeonly>[[{{#if:{{{p|}}}|Parameter:_|}}{{{1|}}}{{#if:{{{p|}}}|_(examples)|_(example)}}{{#if:{{{2|}}}|{{!}}{{{2}}}|{{!}}{{{1}}}}}{{#if:{{{p|}}}|&nbsp;(examples)|&nbsp;(example)}}]]</includeonly></onlyinclude>
<onlyinclude><includeonly>[[{{#if:{{{nonparam|}}}||Parameter:&nbsp;}}{{{1|}}} (example{{#if: {{{eg|}}}|&nbsp;{{{eg}}}| }})|{{#if:{{{2|}}}|{{{2|}}}|{{{1}}} }} (example{{#if: {{{eg|}}}|&nbsp;{{{eg}}}| }})]]</includeonly></onlyinclude>
{{Documentation}}
{{Documentation}}

Revision as of 23:58, 5 April 2022

[view | edit | purge]Template Documentation

Creates a "view result" and "text in sandbox" link

Usage

  • {{example|category}}
  • {{example|category|noparam=any value}}
  • {{example|category|base=Main Page}}
  • {{example|base=Criteria for page selection|category}} category (example)
[view | edit | purge]The above documentation is transcluded from Template:Example/doc.