Aller au contenu

Modèle:Brouillon utilisateur+

Une page de Wikipédia, l'encyclopédie libre.

 Documentation[voir] [modifier] [historique] [purger]

Meta page

[modifier le code]

meta:Grants:Project/Rapid/Article template libraries - user sandbox space organization

Help videos

[modifier le code]
User help
  Install
  Seed article in user space
  Locate seeded article
  Edit article
  Move completed article to main space


Extras

  Add hover highlighting



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)


Extras

  Remove editathon library from instructor's sandbox
  Enhance main library with missing editathon's article templates


{{brouillon utilisateur+                     }}
{{brouillon utilisateur+ | lib = Editathon_X }} - Déclarer la bibliothèque de modèles d'article editathon
{{brouillon utilisateur+ | no_sandbox  = yes }} - Commencez à écrire directement dans l'espace de l'article
{{brouillon utilisateur+ | no_main_lib = yes }} - Omettre la bibliothèque de modèles d'article Central
{{brouillon utilisateur+ | code        = yes }} - Page de démarrage sur l'éditeur de wikicode
{{brouillon utilisateur+ | empty       = yes }} - Commencer avec une page vide (au lieu d'un article générique)
{{brouillon utilisateur+ | custom      = yes }} - Activer la palette de modèles d'article personnalisés de l'utilisateur

Combination

[modifier le code]

{{brouillon utilisateur+ | lib = Medicine | no_sandbox = yes }}

Project pages table

[modifier le code]
Template Explanation
                                                                                           
brouillon utilisateur+
Modèle:Brouillon utilisateur+
(modèle:brouillon utilisateur+)
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
Modèle:Brouillon utilisateur+/Documentation
(modèle:brouillon utilisateur+/Documentation))
template documentation
Modèle:User sandbox+/preload default page content for creation of user's main sandbox
Modèle:User sandbox+/create handles new page creation centrally
  • embedds help
  • adapts creation mode and functionality according to parameters given
Modèle:User sandbox+/new page instructions (ve) instructions during page creation, for VE
Modèle:User sandbox+/new page instructions (ce) instructions during page creation, for CE
Modèle: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 prependtext as wiki code editing is not user friendly for newbies or non-computer-literate
  • better yet, if movind 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
Modèle: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
article templates
Modèle:Article templates/group
Modèle: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
Modèle:Article templates/preload preload for article templates generation (preloads for article types)
Modèle:Article templates/empty page preload for creating an empty page
Modèle:Article templates/generic article preload for creating a generic article
Modèle:Article templates/generic article (codeedit) preload for creating a generic article in code editor
  • code editor is enabled with code=yes parameter in (tl)
Modèle:Article templates/libraries/preload preload for libraries generation
Modèle:Article templates/libraries/main main library
Modèle:Article templates/libraries/user palette preload preload for generating user custom palette of article templates
Modèle:Article templates/libraries/user available list displays list of available templates to be used in user's palette

includes user's custom page templates.

assistive
Modèle:Collapse-mobile collapsible functionality, original from meta, without show/hide that diplays well in mobiles, even if always expanded
Modèle:Help-collapsible collapsible help functionality, supporting nested help levels
Modèle:Smallbox-mobile tiny message box, for inline use, that does not hide in mobile view
Modèle:Invisible-main smallbox-mobile, which is only visible in user space
  • used to display inline messages while the page is still a sandbox, i.e. end of article, so newbies do not modify functional section headers (i.e. References) to use as content section headers.
optical help
Modèle:Key press library to display keyboards buttons and combinations
Modèle:Visual edit library for displaying visual elements for help. not optically optimized (i.e. exact colors)
Modèle:TabButton
Modèle:BlueButton
Modèle:WhiteButton
Modèle:VeButton
Modèle: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)
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.
MediaWiki:Sandboxlink-editnotice-pagename message to display while user's sandbox is being edited.
  • options for selecting sandbox type can be provided for reference.
other
Modèle:User sandbox+/translations
Modèle:Article templates

Hover highlighting support: add to Mediawiki:Common.js

[modifier le code]
$('.hover-bgc').hover( function() {
	$(this).attr("data-hover-bgc-original", $(this).css("background-color"))
	var parentSpec = $(this).parent('.hover-bgc-parent').attr('data-hover-bgc-child');
    $(this).css({ "background-color" : ((typeof parentSpec !== typeof undefined) && (parentSpec !== false)) ? parentSpec : $(this).attr('data-hover-bgc') });
}, function() {
    $(this).css({ "background-color" : $(this).attr('data-hover-bgc-original') });
});

Template:Article templates/libraries/XXXX

[modifier le code]

Template:Article templates/XXXX

[modifier le code]