Difference between revisions of "Template:dict"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
(Delete this if I'm overstepping but this seems like it would be useful)
 
(hmm is this how it works?)
 
Line 1: Line 1:
<includeonly><!--
+
#REDIRECT [[Template:Wiktionary]]
-->[[wiktionary:<!--
 
-->{{#if:{{{1|}}}<!--
 
  -->|{{lcfirst:{{{1}}}}}{{!}}{{{2|{{{1|}}}}}}]]<!--
 
  -->|{{lcfirst:{{PAGENAME}}}}{{!}}{{PAGENAME}}]]<!--
 
-->}}<!--
 
--></includeonly><noinclude>
 
A template to make a link to a Wiktionary entry.
 
 
 
==Usage==
 
*<code><nowiki>{{dict}}</nowiki></code> by itself links to the Wiktionary entry for the page you use the template on, which is probably not useful in the case of the Explain XKCD Wiki:
 
**{{dict}}
 
*<code><nowiki>{{dict|word}}</nowiki></code> links to the Wiktionary entry for "word":
 
**{{dict|word}}
 
*<code><nowiki>{{dict|word|Display}}</nowiki></code> prints "Display" which links to the Wiktionary entry for "word":
 
**{{dict|word|Display}}
 
 
 
The first character of the link target is automatically lowercased, such that e.g. <code><nowiki>{{dict|ravioli}}</nowiki></code> ({{dict|ravioli}}) and <code><nowiki>{{dict|Ravioli}}</nowiki></code> ({{dict|Ravioli}}) both link to the same delicious definition. (Wiktionary entries are case-sensitive. This automatic lowercasing may cause issues in the future, but that's OK because it's not the future yet{{cn}})
 
 
 
[[Category:Templates]]
 
</noinclude>
 

Latest revision as of 19:28, 24 January 2024