Template:Sandbox other: Difference between revisions

From Campaigns
Jump to navigation Jump to search
Also match subpage names beginning with "sandbox", per edit request
m 1 revision imported
Line 1: Line 1:
{{#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|}}}}}<!--
<onlyinclude>{{#switch:{{SUBPAGENAME}}|sandbox|doc={{{1|}}}|#default={{{2|}}}}}</onlyinclude>
--><noinclude>{{documentation}}</noinclude>
{{documentation}}

Revision as of 19:57, 3 November 2021

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