Difference between revisions of "Template:Infobox lexicon"

(Adding derivations)
Line 14: Line 14:
 
Accepts cat/def pairs up to 20.
 
Accepts cat/def pairs up to 20.
  
The "..." in the first three lines will be replaced by the amount of words in the lexicon, the number of undefined words, and the amount of uncategorized words. Similarly, the ()s in the ''Categories'' will become ''(x)'', where ''x'' is the number of words in that category.
+
The "..." in the first four lines will be replaced by the amount of words in the lexicon, the number of derivations, the number of undefined words, and the amount of uncategorized words. Similarly, the ()s in the ''Categories'' will become ''(x)'', where ''x'' is the number of words in that category.
  
 
Optional parameters:
 
Optional parameters:
 +
 +
<pre>|hidederiv=yes</pre>
 +
 +
Hides the ''Total derivations'' line.
  
 
<pre>|hideundef=yes</pre>
 
<pre>|hideundef=yes</pre>
Line 38: Line 42:
 
| label1=Number of words
 
| label1=Number of words
 
| data1=<span class="lex_box_all">...</span>
 
| data1=<span class="lex_box_all">...</span>
| label2={{#if:{{{hideundef|}}}||Total undefined}}
+
| label2={{#if:{{{hidederiv|}}}||Total derivations}}
| data2={{#if:{{{hideundef|}}}||<span class="lex_box_undef">...</span>}}
+
| data2={{#if:{{{hidederiv|}}}||<span class="lex_box_deriv">...</span>}}
| label3={{#if:{{{hideuncat|}}}||Total uncategorized}}
+
| label3={{#if:{{{hideundef|}}}||Total undefined}}
| data3={{#if:{{{hideuncat|}}}||<span class="lex_box_uncat">...</span>}}
+
| data3={{#if:{{{hideundef|}}}||<span class="lex_box_undef">...</span>}}
| label4={{#if:{{{hideuncr|}}}||Waiting to be created}}
+
| label4={{#if:{{{hideuncat|}}}||Total uncategorized}}
| data4={{#if:{{{hideuncr|}}}||<span class="lex_box_uncr">...</span>}}
+
| data4={{#if:{{{hideuncat|}}}||<span class="lex_box_uncat">...</span>}}
 +
| label5={{#if:{{{hideuncr|}}}||Waiting to be created}}
 +
| data5={{#if:{{{hideuncr|}}}||<span class="lex_box_uncr">...</span>}}
 
| header10={{Infobox | embed=yes
 
| header10={{Infobox | embed=yes
 
| title=Categories
 
| title=Categories

Revision as of 03:42, 13 July 2017

Info at a Glance
Number of words ...
Total derivations ...
Total undefined ...
Total uncategorized ...
Waiting to be created ...
Categories
n nouns ()
v verbs ()
{{Infobox lexicon
|cat1=n
|def1=nouns
|cat2=v
|def2=verbs}}

Accepts cat/def pairs up to 20.

The "..." in the first four lines will be replaced by the amount of words in the lexicon, the number of derivations, the number of undefined words, and the amount of uncategorized words. Similarly, the ()s in the Categories will become (x), where x is the number of words in that category.

Optional parameters:

|hidederiv=yes

Hides the Total derivations line.

|hideundef=yes

Hides the Total undefined line.

|hideuncat=yes

Hides the Total uncategorized line.

|hideuncr=yes

Hides the Waiting to be created line.