Template talk:wikipedia

Definition from Wiktionary, a free dictionary

Jump to: navigation, search

Contents

[edit] Documentation

[edit] Usage

Including this template on a page will add the sister-project box to the right.

  1. {{wikipedia}}
  2. {{wikipedia|article}}
  3. {{wikipedia|article|link title}}
  4. {{wikipedia|lang=language code}}
  5. {{wikipedia|article|lang=language code}}
  6. {{wikipedia|article|link title|lang=language code}}
  7. {{wikipedia|dab=disambiguation page}}
  8. {{wikipedia|dab=disambiguation page|link title}}
  9. {{wikipedia|article|link title|mul=second article}}
  10. {{wikipedia|article|link title|mul=second article|mullabel=second link title}}
  11. {{wikipedia|cat=category}}
  12. {{wikipedia|cat=category|link title}}
  13. {{wikipedia|cat=category|link title|mulcat=second category}}
  14. {{wikipedia|cat=category|link title|mulcat=second category|mulcatlabel=second link title}}
  • All parameters are optional.
  • The value article defaults to the base page name.
  • The value link title defaults to article, disambiguation page, or category; second link title to second article or second category.
  • dab or disambiguation is used for links to disambiguation pages
  • cat or category is used for links to categories
  • mul inputs a second article; mullabel inputs a link title for a second article
  • mulcat inputs a second category; mulcatlabel inputs a link title for a second category
  • The language edition of the Wikipedia can be specified as the named parameter lang. These usually use a two-letter code. (but the Min Nan Wikipedia is "zh-min-nan")

[edit] Examples

{{wikipedia|afterlife}}
Wikipedia has an article on:
Wikipedia
{{wikipedia|Trunk (botany)|trunk}}
Wikipedia has an article on:
Wikipedia
{{wikipedia|Roma|lang=it}}
Italian Wikipedia has an article on:
Wikipedia it
{{wikipedia|dab=authoring}}
Wikipedia has articles on:
Wikipedia
{{wikipedia|dab=wrong (disambiguation)|wrong}}
Wikipedia has articles on:
Wikipedia
{{wikipedia|monarchy|kingdom (biology)}}
Wikipedia has articles on:
Wikipedia Wikipedia
{{wikipedia|monarchy|tyranny|mul=kingdom (biology)|mullabel=lionny}}
Wikipedia has articles on:
Wikipedia Wikipedia
{{wikipedia|category=colors}}
Wikipedia has a category on:
Wikipedia
{{wikipedia|category=colors|mulcat=national colours}}
Wikipedia has a category on:
Wikipedia Wikipedia
{{wikipedia|lang=es|category=colores|colors|mulcat=pintura|mulcatlabel=painting}}
Spanish Wikipedia has a category on:
Wikipedia esWikipedia es

[edit] Placement

The template should be placed inside the section it refers to, immediately after the header. In the default case (a reference to the English Wikipedia) that is immediately following the ==English== header. If there are also images, box templates such as this should appear first.

[edit] Comments

Why are we saying that Wikipedia DOES have and article? That usually is the case, not always, e.g. colline. --Connel MacKenzie 13:56, 13 Apr 2005 (UTC)

  • The template should not be used if there is not an article in Wikipedia; are you suggesting that the template might be added robotically or casually? Ceyockey 20:39, 30 July 2005 (UTC)

[edit] color

Can somebody put a colored background over the table of this template? That would be pretty. I've played about with trying out colouring on a small pedia project, but to no avail. --Expurgator t(c) 16:16, 18 July 2005 (UTC)

[edit] Alternate version?

Is there an alternate version of this template that lets you specify what the article name is? example, link oolong tea to wikipedia:oolong but have it use the formatted box? JillianE 15:33, 29 October 2005 (UTC)

Yes, use {{wikipediapar|Oolong}}. SemperBlotto|Talk 16:03, 29 October 2005 (UTC)

Since this discussion, a new version that takes parameters has made this possible with the wikipedia template itself. See documentation above. Davilla 09:38, 7 June 2006 (UTC)

[edit] Watch out for lists

Note that this template cannot be used (successfully) as an item in a list. I made that mistake just now (then fixed it). - dcljr 21:21, 1 February 2006 (UTC)

I agree that all "div" tags are evil. This is only one manefestation of that. --Connel MacKenzie 18:20, 8 July 2006 (UTC)
How should boxes be used in lists? — Vildricianus 18:22, 8 July 2006 (UTC)

[edit] Why allow other language 'pedia links?

Why do we have the LANG= parameter again? The purpose of having separate language Wiktionaries is to describe words in a language. To me, it makes sense only to use interwiki links for language-crossing. Am I off base? --Connel MacKenzie 18:18, 8 July 2006 (UTC)

SemperBlotto wanted links to the Italian Wikipedia. Why not? Pretty useful I'd say. — Vildricianus 18:22, 8 July 2006 (UTC)
Other language Wikis are useful as sample texts and they also work in a way as references. In some cases, the term may be so obscure or specific that there is no equivalent entry in the English Wikipedia.--Jyril 22:52, 13 February 2007 (UTC)

[edit] Interwiki

Please add to the source code the following interwiki [[es:Template:Wikipedia]] Thanks in advance. --Elwikipedista 18:38, 9 September 2006 (UTC)

[edit] Cosmetics

Moved from cosmetics documentation above --Hroðulf 14:23, 11 September 2006 (UTC) Then why is it listed here? This entire section is disputed. Davilla 09:38, 7 June 2006 (UTC)

Seems to me (and this is what I've been doing), the link to the English Wikipedia should be just after the English header; that link won't necessarily apply to words in other languages spelled the same way. Similarily, links to other Wikipedias should be just inside the top of the respective language sections! Robert Ullmann 16:00, 18 July 2006 (UTC)

[edit] Parameter number

Wikipedia has an article on:
Ruler (1)

I would like to add a new parameter to this template. It would be intended to precise which meaning of the word the Wikipedia's article describes. For exmample, the word ruler has two main meanings and the template says that "Wikipedia has an article on Ruler" but which one? So I think we should add a parameter named number or nb for short. 16@r 13:40, 14 April 2007 (UTC)

Can't do it. No way to keep it current. That's why we avoid using numbers in translations sections etc. If you want to use the gloss for the definition or something the template already permits that, in alt text.

{{wikipedia|ruler|ruler (measuring device)}}

Wikipedia

But it may look bad sometimes, and there is no way of keeping that current if/when WP changes. Robert Ullmann 14:07, 14 April 2007 (UTC)
Eh ouais, pas bête :o. Bright idea, I didn't think of it. 16@r 15:26, 14 April 2007 (UTC)

[edit] Literal "Wikipedia" word added

It looks like a change to this template on June 6 added the word "Wikipedia" with a link to the sister article in Wikipedia, in addition to the sister-project box off to the right. Was this intentional? It looks somewhat odd to me. --Dajagr 18:55, 8 June 2007 (UTC)

Try looking at it on a page other than a template. It makes up for the fact that the floating box can screw up formatting, or be invisible when vieing sections in a long page. In any case, the current box is not ideal, and I would like to see it phased out. Dmcdevit·t 21:12, 8 June 2007 (UTC)

[edit] Exciting developments

These new changes are great... Two questions:

  • Can we get rid of the box now? It's always been sort of Wikipedia-ish...
  • Would it be appropriate to apply these changes to other templates of the same form in Category:Interwiki templates? -- Visviva 11:50, 25 June 2007 (UTC)

[edit] Something wrong with the lang= parameter

Please see the dodraug article. __meco 19:50, 15 December 2007 (UTC)

What? I don't see anything wrong? Robert Ullmann 07:26, 16 December 2007 (UTC)
Perhaps you could try following the links? __meco 11:34, 7 April 2008 (UTC)
So? It takes me to w:no:Dodraugen. Which is what it should do. What do you think is wrong? Robert Ullmann 12:03, 7 April 2008 (UTC)
My mistake entirely. I was confused by the link in the status bar showing up as http://en.wikipedia.org/wiki/no:Dodraugen, not realizing that that would actually lead the user to the Norwegian wikipedia./ __meco 08:38, 28 May 2008 (UTC)

[edit] Error in documentation

In the examples section there is as reference to deleted template {{wikipediamul}}. __meco 11:35, 7 April 2008 (UTC)

fixed. Any you didn't fix it why? Robert Ullmann 12:05, 7 April 2008 (UTC)
Because I wasn't sure what to do. __meco 08:41, 28 May 2008 (UTC)

[edit] class=interProject

What do we need to do to get that kewl class="interProject" (the nifty link in the left pane) to work on a small, third-world project? Otherwise, if you feel like it, you may add fy to the list of other languages.

If, as I somewhat suspect, the answer lies in editing the global main.js or css, you'll have to give me one more sentence to tell me where to find that source. (Yes, I know that's an admin thing.) Thanks! Snakesteuben 09:39, 27 April 2008 (UTC)

I don't understand; what is it you are trying to do exactly? Robert Ullmann 09:47, 27 April 2008 (UTC)
I assume he wants to know how to get that class on fy.wikt. Dmcdevit·t 10:05, 27 April 2008 (UTC)
Does this help? Compare fy:User:Snakesteuben/wikipediatempatedemo with User:Snakesteuben/wikipediatempatedemo
Well, anyway, I think Mr./Ms. EditConflict there (Dmcdevit-t) just hit it. ;-) Snakesteuben 10:23, 27 April 2008 (UTC)
(P.S. it's a she. :-) ) -Winter

Ah, IC. You want to look at Mediawiki:monobook.js and steal the appropriate section for your project. You are admin on fy.wikt? Robert Ullmann 11:14, 27 April 2008 (UTC) The CSS class is in Mediawiki:common.css. Robert Ullmann 11:17, 27 April 2008 (UTC)

You are admin on fy.wikt?
Ugh, and I'm supposed to be the tech one. Pretty pathetic, huh? Are you just curious, or could I do something for you over there? Chip away at the "I owe you one" list? Winter (User:Snakesteuben 07:53, 30 April 2008 (UTC))
I was just wondering if you were the one that would be adding it to the .css and .js there, or whether we needed to explain it to someone else ;-) Robert Ullmann 08:59, 30 April 2008 (UTC) (now with snapdragon)

Wey-yull...

Yeah...

http://en.wikipedia.org/w/index.php?title=MediaWiki:Common.css 894 lines

http://fy.wikipedia.org/w/index.php?title=MediaWiki:Common.css 12 lines

common.js almost identical line count.

but if I search both your common.js and common.css files for "interp," the string's not found. Hmm.. But don't go to any more trouble just yet. I'll poke around myself until/unless I get stuck again. There's probably an include or import or or some such, whatever it's called. Thanks much (again), Petal. Winter (User:Snakesteuben 11:45, 27 April 2008 (UTC))

I hate to think of you struggling, and you seem to be linking to Wikipedia's css not ours. You need the javascript from here and the CSS:
.interProject {
   display:none; 
   clear: both; 
   border-top: 2px dotted #AAAAAA; 
   margin-top: 2em;
}

Hope that clarifies. Conrad.Irwin 12:06, 27 April 2008 (UTC)

D'oh! Why Winter can't read ... Boy do I feel stupid. (But in my slight defense, I did manage to figure it out when I came back to link it for somebody today.) Thanks, Conrad. <blush> Snakesteuben 08:53, 29 April 2008 (UTC)
P.S., but--just to check my understanding, a general question not just this case--if I want to snag more than that, I should start with common.js, for that applies to all users, while monobook.js governs only those using the monobook skin? Right? Or maybe wrong? Snakesteuben 09:00, 29 April 2008 (UTC)
You could, but it only works for people using Monobook (at the moment), so there is no point. Conrad.Irwin 09:16, 29 April 2008 (UTC)
Personal tools