Template:Sandbox other: Difference between revisions

From Campaigns
Jump to navigation Jump to search
Created page with "<onlyinclude>{{#switch:{{SUBPAGENAME}}|sandbox|doc={{{1|}}}|#default={{{2|}}}}}</onlyinclude> {{documentation}}"
 
Also match subpage names beginning with "sandbox", per edit request
Line 1: Line 1:
<onlyinclude>{{#switch:{{SUBPAGENAME}}|sandbox|doc={{{1|}}}|#default={{{2|}}}}}</onlyinclude>
{{#if:{{#ifeq:{{#invoke:String|sublength|s={{SUBPAGENAME}}|i=0|len=7}}|sandbox|1}}{{#ifeq:{{SUBPAGENAME}}|doc|1}}{{#invoke:String|match|{{PAGENAME}}|/sandbox/styles.css$|plain=false|nomatch=}}|{{{1|}}}|{{{2|}}}}}<!--
{{documentation}}
--><noinclude>{{documentation}}</noinclude>

Revision as of 17:08, 2 April 2020

Template documentation

This template displays different output on sandbox and documentation pages than other ones.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
sandbox text1

Text displayed on sandbox (/sandbox) and documentation (/doc) subpages. Usually this doesn’t contain categories, but it may contain a link to the main template.

Contentsuggested
normal text2

Text displayed everywhere except for sandbox and documentation subpages. Usually this contains categories for the template.

Contentsuggested