Template:Example: Difference between revisions
Content added Content deleted
imported>FrozenPlum m (adjustments for new approach) |
imported>FrozenPlum m (forgot to account for /doc page) |
||
Line 1:
<onlyinclude><includeonly>[[{{#ifeq:{{FULLPAGENAME}}<!-- if current page is
<onlyinclude><includeonly>[[{{#ifeq:{{FULLPAGENAME}}|Template:Example|Criteria for page selection/|{{BASEPAGENAME}}/}}{{#if:{{{nonparam|}}}||Parameter: }}{{{1|}}} (example{{#if: {{{eg|}}}| {{{eg}}}| }})|{{#if:{{{2|}}}|{{{2|}}}|{{{1}}} }} (example{{#if: {{{eg|}}}| {{{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
▲
{{Documentation}}
|
Revision as of 00:35, 6 April 2022
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.