Template:Wiktionary/doc: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
No edit summary
No edit summary
Line 4: Line 4:
{{wiktionary}}
{{wiktionary}}
If our PAGENAME is different, then enter the Wiktionary name thus: {{tlx|Wiktionary|Wiktionary PAGENAME}}.  If I wanted to link this page to the wiktionary page on baseball, I'd type {{tlx|Wiktionary|baseball}}.  
If our PAGENAME is different, then enter the Wiktionary name thus: {{tlx|Wiktionary|Wiktionary PAGENAME}}.  If I wanted to link this page to the wiktionary page on baseball, I'd type {{tlx|Wiktionary|baseball}}.  
{{wiktionary|baseball}}
== Wiktionary is case sensitive ==
Unlike this wiki, Wiktionary is ''strictly'' case sensitive. Here, these two things mean the same thing when entered into our search bar:
*gorilla
*Gorilla
 
However, these two things are quite different:
*[[wiktionary:gorilla]]
*[[wiktionary:Gorilla]]
 
Because ''most'' pages at Wiktionary are in full lowercase, this template ''forces'' the entire PAGENAME to render in the lower case.  This is usually the behaviour we want.  But on a page like [[PC Plod]], we'll end up with [[wiktionary:pc plod]], which isn't what we want.
 
'''Therefore, if you want capital letters to appear, you must override the default, and define the precise page you want, such as {{tlx|wiktionary|PC Plod}}.'''
 
== Link as close to the definition as possible ==
Wiktionary pages have a lot of white space.  ''Tons''.  And they offer definitions for cognates in other languages.  The point of this template is to offer a definition that's relative to the term's use '''in ''Doctor Who'''''.  Therefore, in the case of extremely common words with very long Wiktionary pages, you'll want to link to a specific section.  For instance, on our page '''[[Frog (insult)]]''',
*{{tlx|wiktionary|frog#Etymology 2}}
is better than just
*{{tlx|wiktionary}}
 
<noinclude>[[category:template documentation|{{PAGENAME}}]]</noinclude>
<noinclude>[[category:template documentation|{{PAGENAME}}]]</noinclude>

Revision as of 18:16, 26 January 2013

{{Wiktionary/doc}} is a template that puts a little link to Wikitionary on a page. It's designed mainly for use on pages in category:jargon, slang and colloquialisms to help non-British readers understand better the slang that appears in Doctor Who fiction.

To use where our PAGENAME is the same as the Wiktionary PAGENAME, just type {{Wiktionary}}.

If our PAGENAME is different, then enter the Wiktionary name thus: {{Wiktionary|Wiktionary PAGENAME}}. If I wanted to link this page to the wiktionary page on baseball, I'd type {{Wiktionary|baseball}}.

Wiktionary is case sensitive

Unlike this wiki, Wiktionary is strictly case sensitive. Here, these two things mean the same thing when entered into our search bar:

  • gorilla
  • Gorilla

However, these two things are quite different:

Because most pages at Wiktionary are in full lowercase, this template forces the entire PAGENAME to render in the lower case. This is usually the behaviour we want. But on a page like PC Plod, we'll end up with wiktionary:pc plod, which isn't what we want.

Therefore, if you want capital letters to appear, you must override the default, and define the precise page you want, such as {{wiktionary|PC Plod}}.

Link as close to the definition as possible

Wiktionary pages have a lot of white space. Tons. And they offer definitions for cognates in other languages. The point of this template is to offer a definition that's relative to the term's use in Doctor Who. Therefore, in the case of extremely common words with very long Wiktionary pages, you'll want to link to a specific section. For instance, on our page Frog (insult),

is better than just