Difference between revisions of "Template:Infobox lexicon"
(19 intermediate revisions by the same user not shown) | |||
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 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: | ||
+ | |||
+ | <pre>|hidederiv=yes</pre> | ||
+ | |||
+ | Hides the ''Total derivations'' line. | ||
+ | (words derived from other words in the lexicon) | ||
+ | |||
+ | <pre>|hideundef=yes</pre> | ||
+ | |||
+ | Hides the ''Total undefined'' line. | ||
+ | (entries in the lexicon without a definition) | ||
+ | |||
+ | <pre>|hideuncat=yes</pre> | ||
+ | |||
+ | Hides the ''Total uncategorized'' line. | ||
+ | (entries in the lexicon without a category) | ||
+ | |||
+ | <pre>|hideuncr=yes</pre> | ||
+ | |||
+ | 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 | ||
− | | title= | + | | title=Info at a Glance |
− | | | + | | bodyclass=infobox_lexicon |
− | |||
| titlestyle=font-size: 1.4em; | | titlestyle=font-size: 1.4em; | ||
| labelstyle=text-align:right; padding-right: 0.75em; | | labelstyle=text-align:right; padding-right: 0.75em; | ||
Line 14: | Line 46: | ||
| label1=Number of words | | label1=Number of words | ||
| data1=<span class="lex_box_all">...</span> | | data1=<span class="lex_box_all">...</span> | ||
− | | label2= | + | | label2={{#if:{{{hidederiv|}}}||Total derivations}} |
− | | | + | | data2={{#if:{{{hidederiv|}}}||<span class="lex_box_deriv">...</span>}} |
+ | | label3={{#if:{{{hideundef|}}}||Total undefined}} | ||
+ | | data3={{#if:{{{hideundef|}}}||<span class="lex_box_undef">...</span>}} | ||
+ | | label4={{#if:{{{hideuncat|}}}||Total uncategorized}} | ||
+ | | 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 | ||
| titlestyle=font-size: 1.2em; | | titlestyle=font-size: 1.2em; | ||
− | | | + | | bodyclass=infobox_lexicon_inner |
| 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; | ||
| 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>)}} | ||
+ | }} | ||
+ | | header20={{Infobox | embed = yes | ||
+ | | bodyclass=infobox_lexicon_button | ||
+ | | bodystyle=width:100%; border-top: 1px dotted #bbb; padding-top: 1em; | ||
+ | | headerstyle=font-weight: normal; | ||
+ | | header1=Hit this button to update the totals above when you load a new batch of words. | ||
+ | | header2={{#tag:localtag|Recalculate|jsbuttonCalculateInfo=}} | ||
+ | }} | ||
+ | | header30={{Infobox | embed = yes | ||
+ | | bodyclass=infobox_lexicon_button infobox_lexicon_sortbutton | ||
+ | | 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 ability to load more words into the lexicon. | ||
+ | | header2={{#tag:localtag|Make Lexicon Sortable|jsbuttonDoApplySort=}} | ||
}} | }} | ||
}}</includeonly> | }}</includeonly> |
Latest revision as of 07:22, 22 May 2018
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. (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)