Skip to content

Instantly share code, notes, and snippets.

@agelastic
Created November 20, 2017 01:44
Show Gist options
  • Save agelastic/4527f3d4b6e659e587410c303bc16b7a to your computer and use it in GitHub Desktop.
Save agelastic/4527f3d4b6e659e587410c303bc16b7a to your computer and use it in GitHub Desktop.
Anki back template for Chinese cards
<div class=tags> {{#Tags}}{{Tags}} -- {{/Tags}}{{Deck}}</div>
<br>
{{#Russian}}{{Russian}}<p/>{{/Russian}}
{{English}}<p/>
<br>
<div class=chinese>{{Hanzi}}</div></p>
{{Pinyin}}
</p>
{{#Measure Word}}<div class=chinese><span class=comment>MW:</span> {{Measure Word}}</div>{{/Measure Word}}
{{#Simplified}}<div class=chinese><span class=comment>S:</span> {{Simplified}}</div>{{/Simplified}}
{{#Traditional}}<div class=chinese><span class=comment>T:</span> {{Traditional}}</div>{{/Traditional}}
{{#Also Written}}<div class=chinese><span class=comment>Also written:</span> {{Also Written}}</div>{{/Also Written}}
{{#Notes}}<div class=note>{{Notes}}</div>{{/Notes}}<br>
<div class=comment>
<!-- Word lookup -->
<a href="plecoapi://x-callback-url/s?mode=df&hw={{Hanzi}}sec=dict&x-source=Anki">Pleco</a>&nbsp;|
<a href="https://www.mdbg.net/chinese/dictionary?page=worddict&wdrst=0&wdqtm=0&wdqcham=1&wdqt={{Hanzi}}">MDBG</a>&nbsp;|
<a href="https://bkrs.info/slovo.php?ch={{Hanzi}}">BKRS</a>&nbsp;|
<a href="https://dictionary.writtenchinese.com/#sk={{Hanzi}}&svt=pinyin">WriCh</a>
<p/>
<a href="http://www.qianyix.com/words/index.php?q={{Hanzi}}">Qianyix</a>&nbsp;|
<a href="https://www.yellowbridge.com/chinese/sentsearch.php?word={{Hanzi}}">YBridge</a>&nbsp;|
<a href="https://www.purpleculture.net/sample-sentences/?word={{Hanzi}}">PurpleC</a>&nbsp;|
<a href="http://cca.xingtanlu.cn/?action=page&pid=8&do=search&name={{Hanzi}}">Collocs</a>
<p/>
<a href="https://characterpop.com/explode/{{Hanzi}}">ChPop</a>&nbsp;|
<a href="https://visualchinesesearch.com/?query={{Hanzi}}">SimCh</a>&nbsp;|
<a href="http://www.hanzicraft.com/character/{{Hanzi}}">Stats</a>&nbsp;|
<p/>
<br><br>
<a href="https://www.google.com.au/search?q={{Hanzi}}&tbm=isch">Google Images</a><p/>
<a href="https://namakajiri.net/kanjigen/#{{Hanzi}}">Char lookup site</a>
</div>
<div id="qinput" hidden>{{Hanzi}}</DIV>
<div id="ziyuanid" class=comment></div>
<script>
var input = document.getElementById('qinput').innerHTML.charAt(0);
var urlkey = encodeURIComponent(input).replace(/%/g,"").toLowerCase();
document.getElementById('ziyuanid').innerHTML ='<a href="http://www.fantizi5.com/zi/ziyuantu/'+urlkey+'.png">Fantizi5 Image</a>';
</script>
{{Sound}}
<div class="btm">
Ease:{{info:factor}}&nbsp;Lapses:{{info:lapses}}</p>
<font color="red">{{info:Mature}} {{info:Learn}} {{info:Learning}}{{info:New}} {{info:Young}}</font></p>
Last seen:
{{info:LastReview}}
</div>
<!--Requires http://finpapa.ucoz.ru/ankitest-plugins.html#YMCF for full functionality
will work with https://ankiweb.net/shared/info/441235634 after trivial editing.
Based on Chinese-Support model https://ankiweb.net/shared/info/3448800906
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment