Template:Example: Difference between revisions
Content added Content deleted
imported>FrozenPlum m (forgot to account for /doc page) |
imported>FrozenPlum m (reuse this, needed styles will come next) |
||
Line 1: | Line 1: | ||
<div class="demo-inputbox-wrapper"> |
|||
<onlyinclude><includeonly>[[{{#ifeq:{{FULLPAGENAME}}<!-- if current page is |
|||
<div class="demo-inputbox"> |
|||
-->|Template:Example<!-- |
|||
<inputbox> |
|||
-->|Criteria for page selection/<!-- if yes show this link root |
|||
type=comment |
|||
-->|{{#ifeq:{{FULLPAGENAME}}<!-- otherwise check if current page is |
|||
default=Special:Mypage/Sandbox |
|||
---->|Template:Example/doc<!-- |
|||
hidden=yes |
|||
---->|Criteria for page selection/<!-- if yes show link root |
|||
buttonlabel=test in sandbox |
|||
---->|{{BASEPAGENAME}}/}}}}{{#if:{{{nonparam|}}}||Parameter: }}{{{1|}}} (example{{#if: {{{eg|}}}| {{{eg}}}| }})|{{#if:{{{2|}}}|{{{2|}}}|{{{1}}} }} (example{{#if: {{{eg|}}}| {{{eg}}}| }})]]</includeonly></onlyinclude> |
|||
preload={{{base|{{FULLPAGENAME}}}}}/{{#if:{{{noparam}}}|<!-- not empty -->|Parameter: }}{{{1|}}} (example{{#if:{{{eg|}}}| {{{eg|}}} }}) |
|||
{{Documentation}} |
|||
</inputbox> |
|||
</div> |
|||
<div class="demo-viewpage"> |
|||
[[{{{base|{{FULLPAGENAME}}}}}/{{#if:{{{noparam|}}}|<!-- not empty -->|Parameter: }}{{{1|}}} (example{{#if:{{{eg|}}}| {{{eg|}}}}})|View Result]] |
|||
</div> |
|||
</div><noinclude> |
Revision as of 03:57, 6 April 2022
<inputbox> type=comment default=Special:Mypage/Sandbox hidden=yes buttonlabel=test in sandbox preload=Template:Example/ (example) </inputbox>