Template:LevelModule: Difference between revisions

From Buddha-Nature
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div id="levelModuleContainer">
<includeonly>{{#switch:{{{ 1 | }}}
<div class="levelModuleTrigger {{#switch:{{#external_value:BuNayGrade}}
|I
|I=btn-level-one
|II
|II=btn-level-two
|III
|III=btn-level-three
|IV=
|IV=btn-level-four
<div class="level-module position-relative">
}} depth-1">{{#switch:{{#external_value:BuNayGrade}}
<div class="levelModuleTriggerStyle levelModuleTrigger {{#switch:{{{ 1 | }}}
|I=[[File:Buddha icon.png|15px|link=|]]
|I=btn-level-one
|II=[[File:Buddha icon.png|15px|link=|]] [[File:Buddha icon.png|15px|link=|]]
|II=btn-level-two
|III=[[File:Buddha icon.png|15px|link=|]] [[File:Buddha icon.png|15px|link=|]] [[File:Buddha icon.png|15px|link=|]]
|III=btn-level-three
|IV=[[File:Buddha icon.png|15px|link=|]] [[File:Buddha icon.png|15px|link=|]] [[File:Buddha icon.png|15px|link=|]] [[File:Buddha icon.png|15px|link=|]]
|IV=btn-level-four
}}
}} d-flex justify-content-between align-items-center align-middle">{{#if: {{{ 1 | }}} |
</div>
<div class="text-center" style="width: 100%;">{{#switch:{{{ 1 | }}}
<div id="levelModuleContent">
|I=[[File:Buddha icon.png|15px|link=|]]
<div id="levelCloseModule"><i class="fal fa-times fa-4x"></i></div>
|II=[[File:Buddha icon.png|15px|link=|]] [[File:Buddha icon.png|15px|link=|]]
<div class="h1 large" style="color: #fff;">Related Material</div>
|III=[[File:Buddha icon.png|15px|link=|]] [[File:Buddha icon.png|15px|link=|]] [[File:Buddha icon.png|15px|link=|]]
<div class="row">{{#if: {{#ask:[[Category:Articles]][[BuNayGrade::{{#external_value:BuNayGrade}}]] OR [[Category:Multimedia]][[BuNayGrade::{{#external_value:BuNayGrade}}]]}} |
|IV=[[File:Buddha icon.png|15px|link=|]] [[File:Buddha icon.png|15px|link=|]] [[File:Buddha icon.png|15px|link=|]] [[File:Buddha icon.png|15px|link=|]]
<div class="col-lg-6">
}}</div> | <span class="pt-1">No category set</span> }}
{{#ask:[[Category:Articles]][[BuNayGrade::{{#external_value:BuNayGrade}}]]
|?AuthorRaw
|?citation
|?Author
|?AuthorPage
|?ArticleSummary
|?description
|?performer
|?MediaSeries
|?Frontcoverimg
|?AuthorImage
|?TranslatorRaw
|link=none
|format=template
|template=PageTile
|limit=10000
}}
{{#ask:[[Category:Multimedia]][[BuNayGrade::{{#external_value:BuNayGrade}}]]
|?AuthorRaw
|?citation
|?Author
|?AuthorPage
|?ArticleSummary
|?description
|?performer
|?MediaSeries
|?Frontcoverimg
|?AuthorImage
|?TranslatorRaw
|link=none
|format=template
|template=PageTile
|limit=10000
}}
</div> | }}{{#if: {{#ask:[[Category:Books]][[BuNayGrade::{{#external_value:BuNayGrade}}]] OR [[Category:Source Texts]][[BuNayGrade::{{#external_value:BuNayGrade}}]]}} |
<div class="col-lg-6">
{{#ask:[[Category:Books]][[BuNayGrade::{{#external_value:BuNayGrade}}]]
|?AuthorRaw
|?citation
|?Author
|?AuthorPage
|?ArticleSummary
|?description
|?performer
|?MediaSeries
|?Frontcoverimg
|?AuthorImage
|?TranslatorRaw
|link=none
|format=template
|template=PageTile
|limit=10000
}}
{{#ask: [[Category:Source Texts]] [[BuNayGrade::{{#external_value:BuNayGrade}}]]
|?AuthorRaw
|?citation
|?Author
|?AuthorPage
|?ArticleSummary
|?description
|?performer
|?MediaSeries
|?Frontcoverimg
|?AuthorImage
|?TranslatorRaw
|link=none
|format=template
|template=PageTile
|limit=10000
}}
</div> | }}
</div>
</div>
</div>
</div>  
</div>
|#default= }}</includeonly><noinclude>{{TemplateTag}}</noinclude>
<div class="level-module position-relative">
<div class="levelModuleTrigger {{#switch:{{#external_value:BuNayGrade}}
|I=btn-level-one
|II=btn-level-two
|III=btn-level-three
|IV=btn-level-four
}} d-flex justify-content-between align-items-center align-middle">{{#if: {{#external_value:BuNayGrade}} | <div class="text-center" style="width: 100%;">{{#switch:{{#external_value:BuNayGrade}}
|I=[[File:Buddha icon.png|15px|link=|]]
|II=[[File:Buddha icon.png|15px|link=|]] [[File:Buddha icon.png|15px|link=|]]
|III=[[File:Buddha icon.png|15px|link=|]] [[File:Buddha icon.png|15px|link=|]] [[File:Buddha icon.png|15px|link=|]]
|IV=[[File:Buddha icon.png|15px|link=|]] [[File:Buddha icon.png|15px|link=|]] [[File:Buddha icon.png|15px|link=|]] [[File:Buddha icon.png|15px|link=|]]
}}</div> | '''No category set''' }}
</div>
</div></includeonly><noinclude>{{TemplateTag}}</noinclude>

Latest revision as of 07:40, 10 July 2019