Template:Doc/subpage: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{Doc}}</noinclude>
{{Documentation}}
<includeonly><onlyinclude>
<includeonly>
{{#ifeq:{{NAMESPACE}}|{{#if:{{{namespace-ignore|}}}|{{NAMESPACE}}|Template}}
 
| {{#if:{{{force|{{#titleparts:{{FULLPAGENAME}}|2|1}}}}}
<onlyinclude>{{Doc/subpagename
    | {{Metanotice
| force = {{{force|false}}}
| id = [[File:Edit-copy.png|40px|link=]]
| {{Metanotice
| opacity =.05
  | id = [[File:Edit-copy.png|40px|link=]]
| rgb = 255, 255, 255
  | opacity = .05
| text = {{Doc/strings|Docsp}}
  | rgb = 255, 255, 255
| text-right = <div class="plainlinks" style="display:flex; align-items:center; justify-content:center; margin-left:auto">
  | text = <span class="plainlinks">{{Doc/strings|Docsp}}</span>
<div>[{{fullurl:{{NAMESPACE}}:{{BASEPAGENAME}}|action=purge}} <font style="display:inline-flex; background:#36C; border-radius:3px; color:#FFF; font-weight:bold; white-space:nowrap; position:relative; z-index:10; padding:6px 10px">{{Doc/strings|Purge}}</font>]
  | text-right = <div class="plainlinks" style="display:flex; align-items:center; justify-content:center; margin-left:auto">
</div>
<div>[{{fullurl:{{NAMESPACE}}:{{BASEPAGENAME}}|action=purge}} <font style="display:inline-flex; background:#36C; border-radius:3px; color:#FFF; font-weight:bold; white-space:nowrap; position:relative; z-index:10; padding:6px 10px">{{Doc/strings|Purge}}</font>]</div>
</div>
</div>[[Category:Template documentation pages]]
[[Category:Template documentation pages]]
  }}
}}
}}</onlyinclude>
    | <!-- We're on the base template page, don't show -->
 
  }}
</includeonly>
| {{Error|Cannot add {{T|doc/subpage}} on a non-template page!}}
}}
</onlyinclude></includeonly>

Latest revision as of 13:49, 10 May 2025

English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history

The replacement of <noinclude>{{doc|0}}</noinclude>.

Usage

{{Doc/subpage}}

Parameters

  • {{{1}}} - Optional: Parameter for switching the template assignment. Default is 0.
    • 0 – will display the message “This is a documentation subpage for <page>”.
    • 1 – will display the message “This is the sandbox subpage for <page>”.
    • 2 – will display the message “This page is not a sandbox”.
    • 3 – will display the message “This is the <page> info subpage”. Useful for user subpages.
    • 4 – will display the message “This is a documentation subpage for use on multiple pages”. If the {{{list}}} parameter is used, then the text will be: “This is a documentation subpage for use on multiple pages listed in <list page>”.
  • {{{list}}}: specifies a page or category that lists pages using a particular documentation page. Used only if parameter {{{1}}} is set to 4.
Quoted from Template:Doc/doc
  • {{{force}}}: forces the template to show on base pages.

Preview

Edit-copy.png
This is a documentation subpage for Template:Doc.
Don't forget to purge the contents of the base page upon creating or editing this subpage.