Difference between pages "Template:Module sandbox notice" and "Template:Module sandbox notice/doc"

(Difference between pages)
Page 1
Page 2
(fix diff link)
 
m (→‎Example output: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
Line 1: Line 1:
{{#ifeq:
{{Documentation subpage}}
  {{#if: {{{demo|}}}
{{used in system|[[MediaWiki:Scribunto-doc-page-does-not-exist]]}}
    | sandbox
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
    | {{#ifeq: {{NAMESPACE}} | Module
 
      | {{SUBPAGENAME}}
This template is used in the system message [[MediaWiki:Scribunto-doc-page-does-not-exist]] to display a sandbox notice at the top of Lua modules. Normally it only displays on /sandbox subpages in the [[Wikipedia:Module namespace|module namespace]]. However, if you are demonstrating the template, you can override this behaviour using the {{para|demo}} parameter.
      }}
 
  }} | sandbox
This template also puts pages it is transcluded on into [[:Category:Module sandboxes]]. Categorisation is suppressed if the {{para|demo}} parameter is set.
| <!-- We are on a /sandbox page in the module namespace, or the demo parameter is set. -->
 
  {{ombox
== Usage ==
    | image = [[Image:Sandbox.png|50px|alt=|link=]]
 
    | text = This is the [[Wikipedia:Lua|module sandbox]] page for [[:{{NAMESPACE}}:{{BASEPAGENAME}}]]<!--
;Basic usage
  -->{{#if:{{REVISIONID}}
 
      | &#32;([{{fullurl:Special:ComparePages | page1={{NAMESPACEE}}:{{BASEPAGENAMEE}}&page2={{FULLPAGENAMEE}} }} diff])
&#123;{module sandbox notice}}
      | <!-- hide when previewing -->
 
      }}.<!--
;In demonstrations
  -->{{#ifexist: {{#rel2abs: ../testcases}}
 
      | <br /> See also the companion subpage for [[../testcases|test cases]].
&#123;{module sandbox notice|demo=yes}}
      }}
 
  }}<!--
== Example output ==
-->{{#if: {{{demo|}}}
 
    | <!-- Don't categorise demos. -->
{{module sandbox notice|demo=yes}}
    | [[Category:Module sandboxes]]
 
  }}
<includeonly>{{Sandbox other||
| <!-- Not a /sandbox page, or not in the module namespace, and the demo parameter is not set. -->
<!-- Categories go here, and interwikis go in Wikidata -->
}}<noinclude>
[[Category:Module namespace templates]]
{{documentation}}
[[Category:Sandbox templates]]
<!-- Add categories to the /doc subpage and interwikis to Wikidata. -->
 
</noinclude>
}}</includeonly>