Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki

Installing a template (??)

 

 

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded


john.van.v at gmail

Sep 2, 2008, 2:56 PM

Post #1 of 3 (285 views)
Permalink
Installing a template (??)

Hi all,

"installing a template mediawiki" produces about 40,000 pages on google, yet
none tells me how to install a template (??) least of all the template
manual on wikimedia.

Can someone please point me to text telling me how it works?

TIA, John
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


brianna.laugher at gmail

Sep 2, 2008, 6:31 PM

Post #2 of 3 (271 views)
Permalink
Re: Installing a template (??) [In reply to]

2008/9/3 John van V. <john.van.v[at]gmail.com>:
> Hi all,
>
> "installing a template mediawiki" produces about 40,000 pages on google, yet
> none tells me how to install a template (??) least of all the template
> manual on wikimedia.
>
> Can someone please point me to text telling me how it works?

If there is a template on Wikipedia you want to use on your wiki:

METHOD 1
1. Go to the template page (if you find it in an article like {{foo}}
or {{foo|.....}}, type "template:foo" in the search box).
2. Click edit.
3. Copy all the text from the edit box into a template page with
whatever name you want on your wiki.
4. Keeping the original edit box open, scroll down and look for a list
under a heading "Pages transcluded onto the current version of this
page:". Any template here will also need to be copied to your wiki.
5. As a minimum you will very likely need to install the extension
ParserFunctions.
<http://www.mediawiki.org/wiki/Extension:ParserFunctions> Less likely,
but other extensions you may need are Cite, Imagemap and EasyTimeline.
See the full list of Wikipedia-installed extensions here:
<http://en.wikipedia.org/wiki/Special:Version>

METHOD 2

--
They've just been waiting in a mountain for the right moment:
http://modernthings.org/

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


brianna.laugher at gmail

Sep 2, 2008, 6:43 PM

Post #3 of 3 (271 views)
Permalink
Re: Installing a template (??) [In reply to]

Sorry, I hit the wrong button!

2008/9/3 Brianna Laugher <brianna.laugher[at]gmail.com>:
> METHOD 2

Go to <http://en.wikipedia.org/wiki/Special:ExpandTemplates> and in
the "Input text:" box, put an example of the template call as you
would like to use it.
e.g. "{{see also|test}}"
If you just put "{{see also}}" it will expand to an error message!
Probably you will want to do this but also look at the source of the
template to try and get a feel for how it worked.

Note: if you want your templates to look the same as Wikipedia's, you
will almost certainly need to add some CSS to your wiki. In this
example with [[template:see also]], it has "<span class="boilerplate
seealso">", so I need to find the definitions for boilerplate and
seealso.
The splace to look are
* http://en.wikipedia.org/wiki/MediaWiki:Monobook.css (Monobook is the
default skin)
* http://en.wikipedia.org/wiki/MediaWiki:Common.css
* http://en.wikipedia.org/wiki/Wikipedia:Catalogue_of_CSS_classes
(looks very useful but is probably out of date)

...Having said that, I just had a look and I couldn't find boilerplate
or seealso, so... I give up :) Maybe they are relics that are now
having no effect.
The Firefox add-on Firebug can be extremely useful in locating CSS definitions.

Hope this helps,
Brianna

--
They've just been waiting in a mountain for the right moment:
http://modernthings.org/

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.