Difference between revisions of "Template:Grammar Box"

 
(62 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Infobox
+
<div id="ibox" class="toc">
|bodyclass = grammar-box
+
<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>
|label2  = Level
+
<ul class="ibox-list">
|data2  = {{#show: {{PAGENAME}} | ?level}}
+
              <li class="ibox-level-cefr-hsk clearfix">
|rowclass2 = level-row
+
                        {{#arraydefine: LEVELS.array | {{#show: {{PAGENAME}} | ?HSK}} | , | sort=asc, unique}}
|class2 = level
+
<div class="ibox-label">Level</div>
|label3  = Is similar to
+
<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>
|data3  = {{#ask: Conceding with "ba" | ?is similar to | format=ul}}
+
</li>
|class3 = similar
+
<li class="ibox-level clearfix" style="display:none">
|rowclass3 = similar-row
+
<div class="ibox-label">Level</div>
|label4  = Don't confuse with
+
<div class="ibox-info">[[{{#show: {{PAGENAME}} | ?level}} grammar points | {{#show: {{PAGENAME}} | ?level}}]]</div>
|data4  = {{#show: {{PAGENAME}} | ?don't confuse with}}  
+
</li>
|class4 = confuse
+
<li class="ibox-level-hsk clearfix" style="display:none;">
|rowclass4 = confuse-row
+
<div class="ibox-label">Level</div>
|label5  = Is used for
+
<div class="ibox-info">[[{{#show: {{PAGENAME}} | ?HSK |link=none}} grammar points | {{#show: {{PAGENAME}} | ?HSK |link=none}}]]</div>
|data5  = {{#show: {{PAGENAME}} | ?is used for}}  
+
</li>
|class5 = used
+
<li class="ibox-similarto clearfix">
|rowclass5 = used-row
+
<div class="ibox-label">Similar to</div>
 
+
<div class="ibox-info">{{#ask: [[is similar to::{{PAGENAME}}]]
 
+
|?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
 +
}}</div>
 +
</li>
 +
<li class="ibox-usedfor clearfix">
 +
<div class="ibox-label">Used for</div>
 +
<div class="ibox-info">{{#show: {{PAGENAME}} | ?is used for}} </div>
 +
</li>
 +
<li class="ibox-keywords clearfix">
 +
<div class="ibox-label">Keywords</div>
 +
<div class="ibox-info">{{#show: {{PAGENAME}} | ?is related to character}}</div>
 +
</li>
 +
{{#if: {{#show: {{PAGENAME}} | ?translation}} | <li class="ibox-translations clearfix">
 +
<div class="ibox-label">Translations</div>
 +
<div class="ibox-info">{{lc:{{#show: {{PAGENAME}} | ?translation}}}}</div>
 +
</li>}}
 +
</ul>
 +
<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>

Latest revision as of 01:09, 8 October 2019

  • Level
    /
  • Similar to
  • Used for
  • Keywords