Difference between revisions of "Template:Infobox lexicon"

(final style mod (I hope))
Line 21: Line 21:
  
 
Hides the ''Total derivations'' line.
 
Hides the ''Total derivations'' line.
 +
(words derived from other words in the lexicon)
  
 
<pre>|hideundef=yes</pre>
 
<pre>|hideundef=yes</pre>
  
 
Hides the ''Total undefined'' line.
 
Hides the ''Total undefined'' line.
 +
(entries in the lexicon without a definition)
  
 
<pre>|hideuncat=yes</pre>
 
<pre>|hideuncat=yes</pre>
  
 
Hides the ''Total uncategorized'' line.
 
Hides the ''Total uncategorized'' line.
 +
(entries in the lexicon without a category)
  
 
<pre>|hideuncr=yes</pre>
 
<pre>|hideuncr=yes</pre>
  
 
Hides the ''Waiting to be created'' line.
 
Hides the ''Waiting to be created'' line.
 +
(entries in the lexicon where a category and/or definition exists, but no word)
  
 
</noinclude><includeonly>{{Infobox
 
</noinclude><includeonly>{{Infobox
Line 101: Line 105:
 
| bodystyle=width:100%; border-top: 1px dotted #bbb; padding-top: 1em;
 
| bodystyle=width:100%; border-top: 1px dotted #bbb; padding-top: 1em;
 
| headerstyle=font-weight: normal;
 
| headerstyle=font-weight: normal;
| header1=Sorting is disabled on lexicons greater than 200 words. This is in order to save browser processing.
+
| header1=Hit this button to update the totals above when you load a new batch of words.
 +
| header2={{#tag:localtag|Recalculate|jsbutton=calculateInfo()}}
 +
| header30={{Infobox | embed = yes
 +
| bodyclass=infobox_lexicon_sort
 +
| bodystyle=width:100%; border-top: 1px dotted #bbb; padding-top: 1em;
 +
| headerstyle=font-weight: normal;
 +
| header1=Note that making the lexicon sortable will remove the option to load more words into the lexicon.
 
| header2={{#tag:localtag|Make Lexicon Sortable|jsbutton=doApplySort()}}
 
| header2={{#tag:localtag|Make Lexicon Sortable|jsbutton=doApplySort()}}
 
}}
 
}}
 
}}</includeonly>
 
}}</includeonly>

Revision as of 17:39, 19 May 2018

{{Infobox | title=Info at a Glance | bodyclass=infobox_lexicon | titlestyle=font-size: 1.4em; | labelstyle=text-align:right; padding-right: 0.75em; | datastyle=padding-left: 0.75em; | label1=Number of words | data1=... | label2=Total derivations | data2=... | label3=Total undefined | data3=... | label4=Total uncategorized | data4=... | label5=Waiting to be created | data5=...

| header10=

Categories
n nouns ()
v verbs ()

| header20=

Hit this button to update the totals above when you load a new batch of words.
Recalculate
Note that making the lexicon sortable will remove the option to load more words into the lexicon.
Make Lexicon Sortable
{{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. (words derived from other words in the lexicon)

|hideundef=yes

Hides the Total undefined line. (entries in the lexicon without a definition)

|hideuncat=yes

Hides the Total uncategorized line. (entries in the lexicon without a category)

|hideuncr=yes

Hides the Waiting to be created line. (entries in the lexicon where a category and/or definition exists, but no word)