Editing Template:dict
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
β | # | + | <includeonly><!-- |
+ | -->[[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> |