Difference between revisions of "Template:De"

(Added usage info and category)
Line 1: Line 1:
[[Dictionary:{{{1}}}{{#if: {{{2|}}} | {{!}}{{{2}}} }}]]<noinclude><br/>
+
<includeonly>[[Dictionary:{{{1}}}{{#if: {{{2|}}} | {{!}}{{{2}}} }}]]</includeonly><noinclude><br/>
 +
===Usage===
 +
<pre>{{de|pagename|linktext}}</pre>
 +
 
 
Short for 'dictionary entry' - creates a link to the dictionary entry for the word.
 
Short for 'dictionary entry' - creates a link to the dictionary entry for the word.
The first parameter is the name of the entry itself (sans namespace tag), while the second is what the link will appear as. If no second parameter is specified, it displays the name as the link.
+
The first parameter is the name of the pagename (sans 'Dictionary:' tag), while the second is what the link will appear as in the text. If no second parameter is specified, it displays the name as the link.
 +
 
 +
[[Category:Dictionary Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 19:14, 20 July 2016


Usage

{{de|pagename|linktext}}

Short for 'dictionary entry' - creates a link to the dictionary entry for the word. The first parameter is the name of the pagename (sans 'Dictionary:' tag), while the second is what the link will appear as in the text. If no second parameter is specified, it displays the name as the link.