Difference between revisions of "Template:Infobox lexicon"
(Adding derivations) |
(adding calc button if over 500 items) |
||
Line 44: | Line 44: | ||
| label2={{#if:{{{hidederiv|}}}||Total derivations}} | | label2={{#if:{{{hidederiv|}}}||Total derivations}} | ||
| data2={{#if:{{{hidederiv|}}}||<span class="lex_box_deriv">...</span>}} | | data2={{#if:{{{hidederiv|}}}||<span class="lex_box_deriv">...</span>}} | ||
+ | | rowclass2=infobox_lexicon_info | ||
| label3={{#if:{{{hideundef|}}}||Total undefined}} | | label3={{#if:{{{hideundef|}}}||Total undefined}} | ||
| data3={{#if:{{{hideundef|}}}||<span class="lex_box_undef">...</span>}} | | data3={{#if:{{{hideundef|}}}||<span class="lex_box_undef">...</span>}} | ||
+ | | rowclass3=infobox_lexicon_info | ||
| label4={{#if:{{{hideuncat|}}}||Total uncategorized}} | | label4={{#if:{{{hideuncat|}}}||Total uncategorized}} | ||
| data4={{#if:{{{hideuncat|}}}||<span class="lex_box_uncat">...</span>}} | | data4={{#if:{{{hideuncat|}}}||<span class="lex_box_uncat">...</span>}} | ||
+ | | rowclass4=infobox_lexicon_info | ||
| label5={{#if:{{{hideuncr|}}}||Waiting to be created}} | | label5={{#if:{{{hideuncr|}}}||Waiting to be created}} | ||
| data5={{#if:{{{hideuncr|}}}||<span class="lex_box_uncr">...</span>}} | | data5={{#if:{{{hideuncr|}}}||<span class="lex_box_uncr">...</span>}} | ||
+ | | rowclass5=infobox_lexicon_info | ||
| header10={{Infobox | embed=yes | | header10={{Infobox | embed=yes | ||
| title=Categories | | title=Categories | ||
| titlestyle=font-size: 1.2em; | | titlestyle=font-size: 1.2em; | ||
− | | bodyclass=infobox_lexicon_inner | + | | bodyclass=infobox_lexicon_inner infobox_lexicon_info |
| labelstyle=text-align: right; padding-right: 0.75em; | | labelstyle=text-align: right; padding-right: 0.75em; | ||
| datastyle=text-align: left; padding-left: 0.75em; font-weight: normal; | | datastyle=text-align: left; padding-left: 0.75em; font-weight: normal; | ||
Line 96: | Line 100: | ||
| label20={{{cat20|}}} | | label20={{{cat20|}}} | ||
| data20={{#if:{{{cat20|}}}|{{{def20|}}} (<span class="lex_box_cat_{{{cat20}}}"></span>)}} | | data20={{#if:{{{cat20|}}}|{{{def20|}}} (<span class="lex_box_cat_{{{cat20}}}"></span>)}} | ||
+ | }} | ||
+ | | header20={{Infobox | embed = yes | ||
+ | | bodyclass=infobox_lexicon_calc | ||
+ | | bodystyle=width:100% | ||
+ | | header1={{#tag:localtag|Calculate All Info|jsbutton=calcLexiconInfo()}} | ||
}} | }} | ||
}}</includeonly> | }}</includeonly> |
Revision as of 05:05, 22 July 2017
Number of words | ... | ||||
---|---|---|---|---|---|
Total derivations | ... | ||||
Total undefined | ... | ||||
Total uncategorized | ... | ||||
Waiting to be created | ... | ||||
| |||||
|
{{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.