Difference between revisions of "Template:Grammar Box"

 
(37 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[{{uc:{{#show: {{PAGENAME}} | ?has hash}}}}| <img src="http://resources.allsetlearning.com/gramwiki/images/f/fd/Link.png" /> ]]
+
<div id="ibox" class="toc">
{{Infobox
+
<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>
|bodyclass = grammar-box
+
<ul class="ibox-list">
|label2  = Level
+
              <li class="ibox-level-cefr-hsk clearfix">
|data2  = [[{{#show: {{PAGENAME}} | ?level}} grammar points | {{#show: {{PAGENAME}} | ?level}}]]
+
                        {{#arraydefine: LEVELS.array | {{#show: {{PAGENAME}} | ?HSK}} | , | sort=asc, unique}}
|rowclass2 = level-row
+
<div class="ibox-label">Level</div>
|class2 = level
+
<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>
|label3  = Is similar to
+
</li>
|data3  = {{#ask: [[is similar to::{{PAGENAME}}]]
+
<li class="ibox-level clearfix" style="display:none">
|?level=
+
<div class="ibox-label">Level</div>
|link=all
+
<div class="ibox-info">[[{{#show: {{PAGENAME}} | ?level}} grammar points | {{#show: {{PAGENAME}} | ?level}}]]</div>
|format=template
+
</li>
|template=Grammar Box Is Similar
+
<li class="ibox-level-hsk clearfix" style="display:none;">
}}
+
<div class="ibox-label">Level</div>
|class3 = similar
+
<div class="ibox-info">[[{{#show: {{PAGENAME}} | ?HSK |link=none}} grammar points | {{#show: {{PAGENAME}} | ?HSK |link=none}}]]</div>
|rowclass3 = similar-row
+
</li>
|label4  = Don't confuse with
+
<li class="ibox-similarto clearfix">
|data4  = {{#show: {{PAGENAME}} | ?don't confuse with}}
+
<div class="ibox-label">Similar to</div>
|class4 = confuse
+
<div class="ibox-info">{{#ask: [[is similar to::{{PAGENAME}}]]
|rowclass4 = confuse-row
+
|?level=
|label5  = Is used for
+
|sort=level,
|data5  = {{#show: {{PAGENAME}} | ?is used for}}  
+
|format=ul
|class5 = used
+
}}</div>
|rowclass5 = used-row
+
</li>
|label6  = Keywords
+
<li class="ibox-similarto-hsk clearfix" style="display:none;">
|data6  = {{#show: {{PAGENAME}} | ?is related to character}}  
+
<div class="ibox-label">Similar to</div>
|class6 = keywords
+
<div class="ibox-info">{{#ask: [[is similar to::{{PAGENAME}}]]
|rowclass6 = keywords-row
+
|?HSK=
|label7  = Translations
+
|sort=HSK,
|data7  = {{lc:{{#show: {{PAGENAME}} | ?translation}}}}
+
|link=subject,
|class7 = translations
+
|format=ul
|rowclass7 = translations-row
+
}}</div>
|label8 = &nbsp;
+
</li>
|data8  =  [[{{uc:{{#show: {{PAGENAME}} | ?has hash}}}}| link ]]
+
<li class="ibox-usedfor clearfix">
|class8 = link
+
<div class="ibox-label">Used for</div>
|rowclass8 = link-row
+
<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