Difference between revisions of "Template:Grammar Box"
(26 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<div id="ibox" class="toc"> | <div id="ibox" class="toc"> | ||
− | <div class="ibox-link">< | + | <div class="ibox-link"><span class="plainlinks">[[{{uc:{{#show: {{PAGENAME}} | ?has hash}}}}|<img src="https://resources.allsetlearning.com/gramwiki/images/silk/link.png"/>]]</span></div> |
<ul class="ibox-list"> | <ul class="ibox-list"> | ||
− | <li class="ibox-level clearfix"> | + | <li class="ibox-level-cefr-hsk clearfix"> |
+ | {{#arraydefine: LEVELS.array | {{#show: {{PAGENAME}} | ?HSK}} | , | sort=asc, unique}} | ||
+ | <div class="ibox-label">Level</div> | ||
+ | <div class="ibox-info"><span style="font-size: 1.4em;">[[{{#show: {{PAGENAME}} | ?level}} grammar points | {{#show: {{PAGENAME}} | ?level}}]]</span> / <span style="font-size:0.75em;">{{#arrayprint:LEVELS.array||@@@@|[[@@@@_grammar_points|@@@@]]|print=pretty }}</span></div> | ||
+ | </li> | ||
+ | <li class="ibox-level clearfix" style="display:none"> | ||
<div class="ibox-label">Level</div> | <div class="ibox-label">Level</div> | ||
<div class="ibox-info">[[{{#show: {{PAGENAME}} | ?level}} grammar points | {{#show: {{PAGENAME}} | ?level}}]]</div> | <div class="ibox-info">[[{{#show: {{PAGENAME}} | ?level}} grammar points | {{#show: {{PAGENAME}} | ?level}}]]</div> | ||
+ | </li> | ||
+ | <li class="ibox-level-hsk clearfix" style="display:none;"> | ||
+ | <div class="ibox-label">Level</div> | ||
+ | <div class="ibox-info">[[{{#show: {{PAGENAME}} | ?HSK |link=none}} grammar points | {{#show: {{PAGENAME}} | ?HSK |link=none}}]]</div> | ||
</li> | </li> | ||
<li class="ibox-similarto clearfix"> | <li class="ibox-similarto clearfix"> | ||
Line 11: | Line 20: | ||
|?level= | |?level= | ||
|sort=level, | |sort=level, | ||
+ | |format=ul | ||
+ | }}</div> | ||
+ | </li> | ||
+ | <li class="ibox-similarto-hsk clearfix" style="display:none;"> | ||
+ | <div class="ibox-label">Similar to</div> | ||
+ | <div class="ibox-info">{{#ask: [[is similar to::{{PAGENAME}}]] | ||
+ | |?HSK= | ||
+ | |sort=HSK, | ||
+ | |link=subject, | ||
|format=ul | |format=ul | ||
}}</div> | }}</div> | ||
Line 27: | Line 45: | ||
</li>}} | </li>}} | ||
</ul> | </ul> | ||
− | <div class="ibox-image">{{#ifexist: File:{{Select Image}} | [[File:{{Select Image}} | 300px]]}}</div> | + | <div class="ibox-image">{{#ifexist: File:{{Select Image}} | [[File:{{Select Image}} | 300px]]}}{{#ifexist: File:{{Select Image}} | {{#seo: section=ignore|author={{SEO Author}}|publisher={{SEO Publisher}}|published_time={{Revision ISO Format}}|modified_time={{Revision ISO Format}}|type=article|image={{SEO Image|{{Select Image}}}}| image_width=300px| image_height=300px}}}}</div> |
</div> | </div> |