I'm not quite sure how to do this. I'd like to write a section of text and be able to tag it so I can insert it as is in any other area of my wiki. Does this require an extension?
For my users, I just added another button on the edit toolbar, which adds a skeleton of an article to the editbox, so they can then flesh it out.
http://www.mediawiki.org/wiki/Manual:FAQ#How_do_I_add_more_buttons_on_the_ed...
On the MediaWiki:Common.js page, I added:
================================================================================
mwCustomEditButtons.push( { "imageFile": "/skeleton-22x22.png", "speedTip": "Insert article skeleton", "tagOpen": "'''KEYWORDS:''' \n\n'''APPS INVOLVED:''' \n\n'''MODULES:''' \n\n'''CLIENT REFS:''' \n\n'''JOB# REFS:''' \n\n'''DESCRIPTION OF DOCUMENT:''' \n\n----\n\n", "tagClose": "", "sampleText": "" } );
================================================================================
Maybe not the most elegant solution, but they like it as a time-saver. :)
I have another button that inputs a pipe character "|" as part of its text, which I had to replace with the character code "\u007c", so beware of that if you need special characters.
Hope that helps, James
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of John Meyer Sent: Monday, 23 August 2010 9:49 AM To: mediawiki-l@lists.wikimedia.org Subject: [Mediawiki-l] Templating text
I'm not quite sure how to do this. I'd like to write a section of text and be able to tag it so I can insert it as is in any other area of my wiki. Does this require an extension?
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
You could also just create your text as a template: http://www.mediawiki.org/wiki/Help:Templates
/Sam
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of John Meyer Sent: 23 August 2010 00:49 To: mediawiki-l@lists.wikimedia.org Subject: [Mediawiki-l] Templating text
I'm not quite sure how to do this. I'd like to write a section of text and be able to tag it so I can insert it as is in any other area of my wiki. Does this require an extension?
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
This email was sent to you by Thomson Reuters, the global news and information company. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Thomson Reuters.
mediawiki-l@lists.wikimedia.org