Difference between revisions of "Template:Infobox lexicon"

Line 1: Line 1:
<noinclude>
+
<noinclude>{{Infobox lexicon
{{Infobox lexicon
 
 
|cat1=n
 
|cat1=n
 
|def1=nouns
 
|def1=nouns
 
|cat2=v
 
|cat2=v
 
|def2=verbs}}
 
|def2=verbs}}
 +
<pre>{{Infobox lexicon
 +
|cat1=n
 +
|def1=nouns
 +
|cat2=v
 +
|def2=verbs}}
 +
 +
</pre>
 +
 +
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.
 +
 +
Optional parameters:
 +
 +
<pre>|hideundef=yes</pre>
 +
 +
Hides the ''Total undefined'' line.
 +
 +
<pre>|hideuncat=yes</pre>
 +
 +
Hides the ''Total uncategorized'' line.
 +
 
</noinclude><includeonly>{{Infobox
 
</noinclude><includeonly>{{Infobox
 
| title=Lexicon information
 
| title=Lexicon information
Line 25: Line 46:
 
| datastyle=text-align: left; padding-left: 0.75em; font-weight: normal;
 
| datastyle=text-align: left; padding-left: 0.75em; font-weight: normal;
 
| label1={{{cat1}}}
 
| label1={{{cat1}}}
| data1={{{def1}}}(<span class="lex_box_cat_{{#ifeq:{{{cat1}}}|#|number|{{{cat1}}}}}"></span>)
+
| data1={{{def1}}} (<span class="lex_box_cat_{{#ifeq:{{{cat1}}}|#|number|{{{cat1}}}}}"></span>)
 
| label2={{{cat2|}}}
 
| label2={{{cat2|}}}
| data2={{#if:{{{cat2|}}}|{{{def2|}}}(<span class="lex_box_cat_{{{cat2}}}"></span>)}}
+
| data2={{#if:{{{cat2|}}}|{{{def2|}}} (<span class="lex_box_cat_{{{cat2}}}"></span>)}}
 
| label3={{{cat3|}}}
 
| label3={{{cat3|}}}
| data3={{#if:{{{cat3|}}}|{{{def3|}}}(<span class="lex_box_cat_{{{cat3}}}"></span>)}}
+
| data3={{#if:{{{cat3|}}}|{{{def3|}}} (<span class="lex_box_cat_{{{cat3}}}"></span>)}}
 
| label4={{{cat4|}}}
 
| label4={{{cat4|}}}
| data4={{#if:{{{cat4|}}}|{{{def4|}}}(<span class="lex_box_cat_{{{cat4}}}"></span>)}}
+
| data4={{#if:{{{cat4|}}}|{{{def4|}}} (<span class="lex_box_cat_{{{cat4}}}"></span>)}}
 
| label5={{{cat5|}}}
 
| label5={{{cat5|}}}
| data5={{#if:{{{cat5|}}}|{{{def5|}}}(<span class="lex_box_cat_{{{cat5}}}"></span>)}}
+
| data5={{#if:{{{cat5|}}}|{{{def5|}}} (<span class="lex_box_cat_{{{cat5}}}"></span>)}}
 
| label6={{{cat6|}}}
 
| label6={{{cat6|}}}
| data6={{#if:{{{cat6|}}}|{{{def6|}}}(<span class="lex_box_cat_{{{cat6}}}"></span>)}}
+
| data6={{#if:{{{cat6|}}}|{{{def6|}}} (<span class="lex_box_cat_{{{cat6}}}"></span>)}}
 
| label7={{{cat7|}}}
 
| label7={{{cat7|}}}
| data7={{#if:{{{cat7|}}}|{{{def7|}}}(<span class="lex_box_cat_{{{cat7}}}"></span>)}}
+
| data7={{#if:{{{cat7|}}}|{{{def7|}}} (<span class="lex_box_cat_{{{cat7}}}"></span>)}}
 
| label8={{{cat8|}}}
 
| label8={{{cat8|}}}
| data8={{#if:{{{cat8|}}}|{{{def8|}}}(<span class="lex_box_cat_{{{cat8}}}"></span>)}}
+
| data8={{#if:{{{cat8|}}}|{{{def8|}}} (<span class="lex_box_cat_{{{cat8}}}"></span>)}}
 
| label9={{{cat9|}}}
 
| label9={{{cat9|}}}
| data9={{#if:{{{cat9|}}}|{{{def9|}}}(<span class="lex_box_cat_{{{cat9}}}"></span>)}}
+
| data9={{#if:{{{cat9|}}}|{{{def9|}}} (<span class="lex_box_cat_{{{cat9}}}"></span>)}}
 
| label10={{{cat10|}}}
 
| label10={{{cat10|}}}
| data10={{#if:{{{cat10|}}}|{{{def10|}}}(<span class="lex_box_cat_{{{cat10}}}"></span>)}}
+
| data10={{#if:{{{cat10|}}}|{{{def10|}}} (<span class="lex_box_cat_{{{cat10}}}"></span>)}}
 +
| label11={{{cat11|}}}
 +
| data11={{#if:{{{cat11|}}}|{{{def11|}}} (<span class="lex_box_cat_{{{cat11}}}"></span>)}}
 +
| label12={{{cat12|}}}
 +
| data12={{#if:{{{cat12|}}}|{{{def12|}}} (<span class="lex_box_cat_{{{cat12}}}"></span>)}}
 +
| label13={{{cat13|}}}
 +
| data13={{#if:{{{cat13|}}}|{{{def13|}}} (<span class="lex_box_cat_{{{cat13}}}"></span>)}}
 +
| label14={{{cat14|}}}
 +
| data14={{#if:{{{cat14|}}}|{{{def14|}}} (<span class="lex_box_cat_{{{cat14}}}"></span>)}}
 +
| label15={{{cat15|}}}
 +
| data15={{#if:{{{cat15|}}}|{{{def15|}}} (<span class="lex_box_cat_{{{cat15}}}"></span>)}}
 +
| label16={{{cat16|}}}
 +
| data16={{#if:{{{cat16|}}}|{{{def16|}}} (<span class="lex_box_cat_{{{cat16}}}"></span>)}}
 +
| label17={{{cat17|}}}
 +
| data17={{#if:{{{cat17|}}}|{{{def17|}}} (<span class="lex_box_cat_{{{cat17}}}"></span>)}}
 +
| label18={{{cat18|}}}
 +
| data18={{#if:{{{cat18|}}}|{{{def18|}}} (<span class="lex_box_cat_{{{cat18}}}"></span>)}}
 +
| label19={{{cat19|}}}
 +
| data19={{#if:{{{cat19|}}}|{{{def19|}}} (<span class="lex_box_cat_{{{cat19}}}"></span>)}}
 +
| label20={{{cat20|}}}
 +
| data20={{#if:{{{cat20|}}}|{{{def20|}}} (<span class="lex_box_cat_{{{cat20}}}"></span>)}}
 
}}
 
}}
 
}}</includeonly>
 
}}</includeonly>

Revision as of 04:26, 5 April 2017

Lexicon information
Stats and definitions
Number of words ...
Total undefined ...
Total uncategorized ...
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 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.

Optional parameters:

|hideundef=yes

Hides the Total undefined line.

|hideuncat=yes

Hides the Total uncategorized line.