Template:Example: Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
m (adjustments for new approach)
imported>FrozenPlum
m (forgot to account for /doc page)
Line 1: Line 1:
<onlyinclude><includeonly>[[{{#ifeq:{{FULLPAGENAME}}<!-- if current page is
<onlyinclude><includeonly>[[{{#ifeq:{{FULLPAGENAME}}|Template:Example|Criteria for page selection/|{{BASEPAGENAME}}/}}{{#if:{{{nonparam|}}}||Parameter:&nbsp;}}{{{1|}}} (example{{#if: {{{eg|}}}|&nbsp;{{{eg}}}| }})|{{#if:{{{2|}}}|{{{2|}}}|{{{1}}} }} (example{{#if: {{{eg|}}}|&nbsp;{{{eg}}}| }})]]</includeonly></onlyinclude>
-->|Template:Example<!--
-->|Criteria for page selection/<!-- if yes show this link root
-->|{{#ifeq:{{FULLPAGENAME}}<!-- otherwise check if current page is
---->|Template:Example/doc<!--
---->|Criteria for page selection/<!-- if yes show link root
---->|{{BASEPAGENAME}}/}}}}{{#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 00:35, 6 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.