Difference between revisions of "Template:LangStats"

From Apertium
Jump to navigation Jump to search
(:D)
Line 3: Line 3:
{{#explode | "," | {{#var | corpora}} | {{#var | corporaArr}} }}
{{#explode | "," | {{#var | corpora}} | {{#var | corporaArr}} }}


<table class="wikitable">
{{#foreach | {{#var | corporaArr }} || value || {{#var _value}} " " }}
<tr><th>corpus</th><th>words</th><th>coverage</th></tr>
{{#var | temp | = | ^[#lst:Apertium-{{#var | lang }}/stats^!quran-coverage^]}}

{{#var | {{#var | corporaArr }} | 0 }}

{| class="wikitable"
|-
! corpus !! words !! coverage
|-
{{#for | {{#a @= 0}} || {{#a | < | {{#count | {{#var | corporaArr }} }} }} || {{#a ++}} ||
{{#for | {{#a @= 0}} || {{#a | < | {{#count | {{#var | corporaArr }} }} }} || {{#a ++}} ||
{{#var | {{#var | corporaArr }} | {{#a}} }}
<tr><td>{{#var | {{#var | corporaArr }} | {{#a}} }}</td>
* ^[#lst:Apertium-{{#var | lang }}/stats^!{{#var | {{#var | corporaArr }} | {{#a}} }}-words^]
<td>^[#lst:Apertium-{{#var | lang }}/stats^!{{#var | {{#var | corporaArr }} | {{#a}} }}-words^]</td>
* ^[#lst:Apertium-{{#var | lang }}/stats^!{{#var | {{#var | corporaArr }} | {{#a}} }}-coverage^]
<td>^[#lst:Apertium-{{#var | lang }}/stats^!{{#var | {{#var | corporaArr }} | {{#a}} }}-coverage^]</td></tr>
}}
}}
</table>
|}

{| class="wikitable"
|-
! corpus !! words !! coverage
|-
{{#for | {{#a @= 0}} || {{#a | < | {{#count | {{#var | corporaArr }} }} }} || {{#a ++}} ||
| {{#var | {{#var | corporaArr }} | {{#a}} }}
|hi
|hi
|-
}}
|}

Revision as of 23:50, 8 January 2013

{{#var | lang | @= | "kaz" }} {{#var | corpora | @= | "Әуезов,bible,azattyq2010,wp2011,quran" }} {{#explode | "," | {{#var | corpora}} | {{#var | corporaArr}} }}

{{#for | {{#a @= 0}} || {{#a | < | {{#count | {{#var | corporaArr }} }} }} || {{#a ++}} ||

}}

corpuswordscoverage
{{#var | {{#var | corporaArr }} | {{#a}} }} ^[#lst:Apertium-{{#var | lang }}/stats^!{{#var | {{#var | corporaArr }} | {{#a}} }}-words^] ^[#lst:Apertium-{{#var | lang }}/stats^!{{#var | {{#var | corporaArr }} | {{#a}} }}-coverage^]