Difference between revisions of "Template:User sandbox"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Import from Wikipedia (CC BY-SA license))
 
m (Trim out WP functionality we don't need.)
 
Line 8: Line 8:
 
       -->This is {{#if:{{{list|}}}|a|the}} user sandbox of '''[[{{NAMESPACE}}:{{{1|{{ROOTPAGENAME}}}}}|{{{1|{{ROOTPAGENAME}}}}}]]'''. <!--
 
       -->This is {{#if:{{{list|}}}|a|the}} user sandbox of '''[[{{NAMESPACE}}:{{{1|{{ROOTPAGENAME}}}}}|{{{1|{{ROOTPAGENAME}}}}}]]'''. <!--
 
       -->A user sandbox is a subpage of the user's [[w:Wikipedia:User pages|user page]]. <!--
 
       -->A user sandbox is a subpage of the user's [[w:Wikipedia:User pages|user page]]. <!--
       -->It serves as a testing spot and page development space for the user and is '''not an encyclopedia article'''. <!--
+
       -->It serves as a testing spot and page development space for the user and is '''not an article'''. <!--
 
       -->{{#ifeq: {{{plain|}}} | all  
 
       -->{{#ifeq: {{{plain|}}} | all  
 
           | <!--blank-->
 
           | <!--blank-->
Line 16: Line 16:
 
           | <p>This user's sandboxes: {{{list}}}</p>
 
           | <p>This user's sandboxes: {{{list}}}</p>
 
         }}<!--
 
         }}<!--
       -->{{#if: {{{plain|}}}
+
       -->{{#if: {{{plain|yes}}}
 
           | <!--blank-->
 
           | <!--blank-->
 
           | <p><!--
 
           | <p><!--
Line 31: Line 31:
 
   --></div><!--
 
   --></div><!--
  
  -->{{#if: {{{selectskin|}}}
 
      | <div style="font-size:x-small; text-align:center;">{{selectskin}}</div>
 
      }}<!--
 
  -->{{#ifeq: {{{afc|}}} | no
 
      | <!-- blank -->
 
      | {{#if: {{{plain|}}}
 
          | <!-- blank -->
 
          | <hr />{{#invoke:AFC submission catcheck|submitted
 
            | This draft has been submitted and is currently awaiting review.
 
            | Writing an article and ready to request its creation? {{#if: {{REVISIONID}}<noinclude>0</noinclude>
 
                | <span class="afc-draft-submit-button">{{Clickable button 2|Submit your draft for review!|url={{fullurl:{{FULLPAGENAME}}|action=edit&section=new&preload=Template:AFC_submission/Subst&editintro=Template:AFC_submission/Subst/Editintro}}|class=mw-ui-progressive|style=line-height: 1.9em; padding: 0 1.6em 0 1.6em}}</span>
 
                | Save your work by pressing the "Save page" button below, and a button will appear here allowing you to submit your draft for review.
 
              }}
 
            }}
 
        }}
 
      }}<!--
 
 
   -->{{#ifeq:{{{noindex|yes}}}|yes| __NOINDEX__ }}
 
   -->{{#ifeq:{{{noindex|yes}}}|yes| __NOINDEX__ }}
  
 
   }}
 
   }}
  | 2 = {{draft other|1= |2= {{error|This sandbox is in the {{#if:{{NAMESPACE}}|{{NAMESPACE}}|article}} namespace. Either [[Special:MovePage/{{FULLPAGENAME}}|move]] this page into your [[WP:Userpages|userspace]], or remove the {{tp|User sandbox}} template.}}|demospace = {{{demospace|}}} }}<includeonly>[[Category:Non-userspace pages using User sandbox]]</includeonly>
+
  | 2 = {{error|This sandbox is in the {{#if:{{NAMESPACE}}|{{NAMESPACE}}|article}} namespace. Either [[Special:MovePage/{{FULLPAGENAME}}|move]] this page into your [[w:WP:Userpages|userspace]], or remove the {{tp|User sandbox}} template.}}<includeonly>[[Category:Non-userspace pages using User sandbox]]</includeonly>
 
  | demospace = {{{demospace|<noinclude>user</noinclude>}}}
 
  | demospace = {{{demospace|<noinclude>user</noinclude>}}}
 
}}<noinclude>
 
}}<noinclude>

Latest revision as of 01:26, 10 June 2015

Documentation icon Template documentation[view] [edit] [history] [purge]Pages that link to Template:User sandbox

This template is for placement at the top of sandbox pages in the User namespace so that readers understand it is not an active/live article or Wikipedia project page.

Non-userspace uses of this template are tracked in Category:Non-userspace pages using User sandbox.

Usage

Basic usage (shown above)
{{user sandbox}}
Plain version
{{user sandbox|plain=yes}}
All parameters
{{user sandbox|Username|plain=all|list=[[w:Personalization|Custom]] [[w:WP:USERSUBPAGE|list]] of [[w:Help:My sandbox|sandboxes]]|selectskin=yes|afc=no|noindex=yes|demospace=User}}

Parameters

  • The first positional parameter is the username of the editor the sandbox belongs to. This is not necessary if the sandbox is located in that user's userspace.
  • plain - this removes most of the extra links. If this is equal to "all", only the basic message is left. If this parameter is present but not equal to "all", the text "For a sandbox of your own, create it here" is still visible.
  • list - a list of your user sandboxes can be inserted here. This needs to be done with square brackets, e.g. [[User:Example/Sandbox1]], [[User:Example/Sandbox2]].
  • selectskin - if this is set to "yes", a menu appears allowing you to select different skins to use with the sandbox.
  • afc - if this is set to "no", the text "If you are writing an article, and are ready to request its creation, click here" is suppressed. This parameter is unnecessary if the |plain= parameter is specified.
  • noindex - by default, pages with this template transcluded on them are not indexed by search engines. If this parameter is set to anything other than "yes", indexing by search engines is allowed.
  • demospace - if this is set to the name of a Wikipedia namespace, the template acts as if it was transcluded in that namespace no matter what the actual current namespace is. This is useful for demonstration purposes.

Template data

This is the TemplateData documentation for this template used by VisualEditor and other tools.

TemplateData for User sandbox

<templatedata>{ "description": "This template creates a box marking the current page as a user sandbox.", "params": {

   "1": {
       "label": "Username",
       "description": "The username of the editor who owns the page.  If the page is in that editor's userspace, this parameter is optional.",
       "type": "string/wiki-user-name",
       "required": false
   },
   "plain": {
       "label": "Plain",
       "description": "If set to 'all', this hides all of the extra links.  If set to something else, this hides nearly all of the extra links.",
       "type": "string",
       "required": false
   },
   "list": {
       "label": "List",
       "description": "Can be set to a list of other sandboxes owned by this editor.  Optional.",
       "type": "string",
       "required": false
   },
   "selectskin": {
       "label": "Show skin selector",
       "description": "Set to 'yes' to include a menu for displaying the sandbox with different skins.",
       "type": "string",
       "required": false
   },
   "afc": {
       "label": "Show AFC notice",
       "description": "Set to 'no' to hide the AFC notice ('If you are writing an article...'), which is shown by default.",
       "type": "string",
       "required": false
   },
   "noindex": {
       "label": "Hide from search engines",
       "description": "Set to something other than 'yes' to make this page visible to search engines like Google.",
       "type": "string",
       "required": false
   },
   "demospace": {
       "label": "Demo namespace",
       "description": "Set to a namespace to make this template behave as if it is in that namespace.",
       "type": "string",
       "required": false
   }

} }</templatedata>