Template:User sandbox+/doc

__NOTOC__

{{Documentation subpage}}

Meta page

Help videos

style="max-width:800px; margin-bottom: 0.3em; padding:0.3em; background:#d5e0ee; border-radius:10px; box-shadow: 1px 1px 8px #aaaaaa;" align="center"
style="text-align:center;"| User help

----

  Install
  Seed article in user space
  Locate seeded article
  Edit article
  Move completed article to main space

{{help-collapsible | Level=1 | boxBackground = #d5e0ee | Headline = Extras | Content =

  Add hover highlighting
}}

style="max-width:800px; margin-bottom: 0.3em; padding:0.3em; background:#eee0d5; border-radius:10px; box-shadow: 1px 1px 8px #aaaaaa;" align="center"
style="text-align:center;"| Prepare an editathon

----

  Start building editathon's article library inside instructor's personal sandbox
  Setup editathon library's missing article templates
  Edit (more) a library's article template
  Make editathon library globally visible (temporarily)

{{help-collapsible | Level=1 | boxBackground = #d5e0ee | Headline = Extras | Content =

  Remove editathon library from instructor's sandbox

  Enhance main library with missing editathon's article templates

}}

Usage

Place wiki code (examples just below), on top of user's sandbox page:

{{ user sandbox+ }}

{{ user sandbox+ | lib = Editathon_X }} - declare editathon article template library

{{ user sandbox+ | no_sandbox = yes }} - start writing directly to article space

{{ user sandbox+ | code = yes }} - start page on wikicode editor

{{ user sandbox+ | custom = yes }} - enable user custom article template palette

= Combination =

{{ user sandbox+ | lib = Medicine | no_sandbox = yes }}

Project pages table

class="wikitable"

|+

!Template

!Explanation

colspan="2" |user sandbox+
Template:User sandbox+

|base template that detects space (i.e. main / user / user sub-sandbox), edit mode or not, and page creation origin space, and adapts functionality

  • in central sandbox of user it displays a list of sub-sandboxes of the user and gives the option to click'n'create sub-sandboxes
  • in a user sub-sandbox it gives the option to foolproof click'n'move the sandmoxed page to article space
  • in main (article) space
  • it hides itself if the host pages was originally created in user space
  • it displays in creation messagebox if the page was started directly in main space
Template:User sandbox+/doc

|template documentation

Template:User sandbox+/preload

|default page content for creation of user's main sandbox

Template:User sandbox+/create

|handles new page creation centrally

  • embeds help
  • adapts creation mode and functionality according to parameters given
Template:User sandbox+/new page instructions (ve)

|instructions during page creation, for VE

Template:User sandbox+/new page instructions (ce)

|instructions during page creation, for CE

Template:User sandbox+/flush page

|instructions to hide a sub-sandbox form central sandbox list

  • is enabled inside a sub-sandbox
  • it should be replaced by a button that makes the page a redirect, putting text on its top, using [https://en.wikipedia.org/w/api.php?action=help&modules=edit prependtext] as wiki code editing is not user friendly for newbies or non-computer-literate
  • better yet, if moving a page from other spaces to user space was forbidden for non admins, sandbox (and only sandbox) page delete might be good to be allowed in user space
Template:User sandbox+/move page to article

|foolproof move of a user sandbox to main (article) space

  • is enabled inside a sub-sandbox
  • after move, the page is not displayed any more in the user's central sandbox list
  • leaves a redirect behind - moving a page from user space to other spaces should have the option not to leave a redirect behind
colspan="2" |article templates
Template:Article templates/group

|

Template:Article templates/create

|page creation from library of article templates

  • if page template does not exist (is only declared) it prompts for its creation first
  • also prompts for help page creation of article template, to provide support for delayed substitution
  • merge of two templates
Template:Article templates/lcreate

|page creation from library of article templates by using a "red link"

  • Page creation is directed to user's sandbox space by default but can be also directed to main space or elsewhere
Template:Article templates/preload

|preload for article templates generation (preloads for article types)

Template:Article templates/empty page

|preload for creating an empty page

Template:Article templates/generic article

|preload for creating a generic article

Template:Article templates/generic article (codeedit)

|preload for creating a generic article in code editor

  • code editor is enabled with code=yes parameter in {{Tl|user sandbox+}}
Template:Article templates/libraries/preload

|preload for libraries generation

Template:Article templates/libraries/main

|main library

Template:Article templates/libraries/user palette preload

|preload for generating user custom palette of article templates

Template:Article templates/libraries/user available list

|displays list of available templates to be used in user's palette

includes user's custom page templates.

colspan="2" |assistive
Template:Collapse-mobile

|collapsible functionality, original from meta, without show/hide that displays well in mobiles, even if always expanded

Template:Help-collapsible

|collapsible help functionality, supporting nested help levels

Template:Smallbox-mobile

|tiny message box, for inline use, that does not hide in mobile view

colspan="2" |optical help
Template:Key press

|library to display keyboards buttons and combinations

Template:Blue button
Template:User sandbox+/hoverhighlight.js

|contains .js code for hover highlighting support

  • used as preload for user's common.js (creation link resides in bottom of help)
colspan="2" |useful mediawiki pages
MediaWiki:Sandboxlink-preload-pagename

|select default sandbox while creating user's sabdbox.

  • if page content = Template:User sandbox+/preload then user sandbox+ becomes the default user's sandbox.
  • options for selecting sandbox type can be provided inside for future reference
MediaWiki:Sandboxlink-editintro-pagename

|message to display while user's sandbox is being created.

colspan="2" |other
Template:User sandbox+/translations

|

Template:Article templates

|

= Hover highlighting support: add to [[Mediawiki:Common.js]] =

{{#tag:pre|{{User sandbox+/hoverhighlight.js}}}}

Template:Article templates/libraries/XXXX

{{Special:PrefixIndex/Template:Article templates/libraries/| hideredirects=1 |stripprefix=1}}

Template:Article templates/XXXX

{{Special:PrefixIndex/Template:Article templates/| hideredirects=1 |stripprefix=1}}

{{sandbox other||

Category:Sandbox templates

}}