Difference between revisions of "Template:Infobox lexicon"

Line 27: Line 27:
  
 
</noinclude><includeonly>{{Infobox
 
</noinclude><includeonly>{{Infobox
| title=Lexicon information
+
| title=Info at a Glance
| above=Stats and definitions
 
 
| bodystyle=font-size: 0.75em; border: 1px solid #222; background: #eee; float: right;
 
| bodystyle=font-size: 0.75em; border: 1px solid #222; background: #eee; float: right;
 
| titlestyle=font-size: 1.4em;
 
| titlestyle=font-size: 1.4em;
Line 35: Line 34:
 
| label1=Number of words
 
| label1=Number of words
 
| data1=<span class="lex_box_all">...</span>
 
| data1=<span class="lex_box_all">...</span>
| label2=Total undefined
+
| label2={{#if:{{{hideundef|}}}||Total undefined}}
| data2=<span class="lex_box_undef">...</span>
+
| data2={{#if:{{{hideundef|}}}||<span class="lex_box_undef">...</span>}}
| label3=Total uncategorized
+
| label3={{#if:{{{hideuncat|}}}||Total uncategorized}}
| data3=<span class="lex_box_uncat">...</span>
+
| data3={{#if:{{{hideuncat|}}}||<span class="lex_box_uncat">...</span>}}
 
| header10={{Infobox | embed=yes
 
| header10={{Infobox | embed=yes
 
| title=Categories
 
| title=Categories

Revision as of 04:33, 5 April 2017

Info at a Glance
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.