Difference between revisions of "Template:Article"

From Buddha-Nature
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
Line 1: Line 1:
 
<includeonly>{{#widget:ScrollToTopMobile}}{{DEFAULTSORT:{{SUBPAGENAME}}}}{{#set:
 
<includeonly>{{#widget:ScrollToTopMobile}}{{DEFAULTSORT:{{SUBPAGENAME}}}}{{#set:
istranslation=
+
istranslation={{#external_value:istranslation}}
 
|ArticleLayout={{{ ArticleLayout | }}}
 
|ArticleLayout={{{ ArticleLayout | }}}
 
|ArticleParentPage={{{ ArticleParentPage | }}}
 
|ArticleParentPage={{{ ArticleParentPage | }}}
|Has parent page={{#switch:  
+
|Has parent page={{#switch: {{#external_value:BuNayPageType}}
 
|Article=Articles
 
|Article=Articles
 
|Interview=Interviews
 
|Interview=Interviews
Line 9: Line 9:
 
|ArticleTitle={{{ ArticleTitle | }}}
 
|ArticleTitle={{{ ArticleTitle | }}}
 
|ArticleImage={{{ Frontcoverimg | }}}
 
|ArticleImage={{{ Frontcoverimg | }}}
|Frontcoverimg=
+
|Frontcoverimg={{#external_value:frontcoverimg}}
 
|ImageDescription={{{ ImageDescription | }}}
 
|ImageDescription={{{ ImageDescription | }}}
 
|AuthorName={{{ AuthorName | }}}
 
|AuthorName={{{ AuthorName | }}}
|AuthorPage={{#if: {{{ AuthorPage | }}} | {{{ AuthorPage | }}} | }}
+
|AuthorPage={{#if: {{{ AuthorPage | }}} | {{{ AuthorPage | }}} | {{#external_value:authorlibwiki}} }}
 
|AuthorImage={{{ AuthorImage | }}}
 
|AuthorImage={{{ AuthorImage | }}}
 
|AuthorAffiliation={{{ AuthorAffiliation | }}}
 
|AuthorAffiliation={{{ AuthorAffiliation | }}}
Line 21: Line 21:
 
|ArticleReferences={{{ ArticleReferences | }}}
 
|ArticleReferences={{{ ArticleReferences | }}}
 
|PostStatus={{{ PostStatus | }}}|+sep=;
 
|PostStatus={{{ PostStatus | }}}|+sep=;
|ArticleAbstract=
+
|ArticleAbstract={{#external_value:abstract}}
|citation=
+
|citation={{#external_value:citation}}
|subclass=
+
|subclass={{#external_value:subclass}}
 
|AlternateSourceName={{{ AlternateSourceName | }}}
 
|AlternateSourceName={{{ AlternateSourceName | }}}
 
|AlternateSourceLink={{{ AlternateSourceLink | }}}
 
|AlternateSourceLink={{{ AlternateSourceLink | }}}
Line 29: Line 29:
 
|AlternateSourceColor={{{ AlternateSourceColor | }}}
 
|AlternateSourceColor={{{ AlternateSourceColor | }}}
 
|ExtraCategories={{{ ExtraCategories | }}}
 
|ExtraCategories={{{ ExtraCategories | }}}
|Fulltitle=
+
|Fulltitle={{#external_value:fulltitle}}
|BuNayFeatured=
+
|BuNayFeatured={{#external_value:BuNayFeatured}}
|BuNayTitle=
+
|BuNayTitle={{#external_value:BuNayTitle}}
|BuNayPageType=
+
|BuNayPageType={{#external_value:BuNayPageType}}
|BuNayRelevance=
+
|BuNayRelevance={{#external_value:BuNayRelevance}}
|BuNayLevel=
+
|BuNayLevel={{#external_value:BuNayLevel}}
|BuNayGrade=
+
|BuNayGrade={{#external_value:BuNayGrade}}
|BuNayApproach=|+sep=,
+
|BuNayApproach={{#external_value:BuNayApproach}}|+sep=,
|BuNayKarlDescription=
+
|BuNayKarlDescription={{#external_value:BuNayKarlDescription}}
|BuNaySourceInfo=
+
|BuNaySourceInfo={{#external_value:BuNaySourceInfo}}
|BuNayRating=
+
|BuNayRating={{#external_value:BuNayRating}}
|BuNayMediaQual=
+
|BuNayMediaQual={{#external_value:BuNayMediaQual}}
|BuNayInteractive=
+
|BuNayInteractive={{#external_value:BuNayInteractive}}
|BuNayCopyright=
+
|BuNayCopyright={{#external_value:BuNayCopyright}}
|BuNayNotes=
+
|BuNayNotes={{#external_value:BuNayNotes}}
|BuNayKanoAvailable=
+
|BuNayKanoAvailable={{#external_value:BuNayKanoAvailable}}
|BuNayKanoCitation=
+
|BuNayKanoCitation={{#external_value:BuNayKanoCitation}}
|periodical=
+
|periodical={{#external_value:periodical}}
|PosBuNayDefProv=
+
|PosBuNayDefProv={{#external_value:PosBuNayDefProv}}
|PosBuNayDefProvNotes=
+
|PosBuNayDefProvNotes={{#external_value:PosBuNayDefProvNotes}}
|PosDefProv=
+
|PosDefProv={{#external_value:PosDefProv}}
|PosDefProvNotes=
+
|PosDefProvNotes={{#external_value:PosDefProvNotes}}
|PosAllBuddha=
+
|PosAllBuddha={{#external_value:PosAllBuddha}}
|PosAllBuddhaNote=
+
|PosAllBuddhaNote={{#external_value:PosAllBuddhaNote}}
|PosAllBuddhaMoreNotes=
+
|PosAllBuddhaMoreNotes={{#external_value:PosAllBuddhaMoreNotes}}
|PosWheelTurn=
+
|PosWheelTurn={{#external_value:PosWheelTurn}}
|PosWheelTurnNotes=
+
|PosWheelTurnNotes={{#external_value:PosWheelTurnNotes}}
|PosYogaMadhya=
+
|PosYogaMadhya={{#external_value:PosYogaMadhya}}
|PosYogaMadhyaNotes=
+
|PosYogaMadhyaNotes={{#external_value:PosYogaMadhyaNotes}}
|PosZhenRang=
+
|PosZhenRang={{#external_value:PosZhenRang}}
|PosZhenRangNotes=
+
|PosZhenRangNotes={{#external_value:PosZhenRangNotes}}
|PosVehicles=
+
|PosVehicles={{#external_value:PosVehicles}}
|PosVehiclesNotes=
+
|PosVehiclesNotes={{#external_value:PosVehiclesNotes}}
|PosAnalyticMedit=
+
|PosAnalyticMedit={{#external_value:PosAnalyticMedit}}
|PosAnalyticMeditNotes=
+
|PosAnalyticMeditNotes={{#external_value:PosAnalyticMeditNotes}}
|PosEmptyLumin=
+
|PosEmptyLumin={{#external_value:PosEmptyLumin}}
|PosEmptyLuminNotes=
+
|PosEmptyLuminNotes={{#external_value:PosEmptyLuminNotes}}
|PosSvataPrasa=
+
|PosSvataPrasa={{#external_value:PosSvataPrasa}}
|PosSvataPrasaNotes=
+
|PosSvataPrasaNotes={{#external_value:PosSvataPrasaNotes}}
|PosVajrapada=
+
|PosVajrapada={{#external_value:PosVajrapada}}
|BuNayPublisher=
+
|BuNayPublisher={{#external_value:DrlPublisher}}
|ValuesToRedirect={{#titleparts:{{{ ArticleTitle | }}}}};{{#titleparts:{{SUBPAGENAME}}}};{{#titleparts:}};{{#titleparts:}}
+
|ValuesToRedirect={{#titleparts:{{{ ArticleTitle | }}}}};{{#titleparts:{{SUBPAGENAME}}}};{{#titleparts:{{#external_value:BuNayTitle}}}};{{#titleparts:{{#external_value:fulltitle}}}}
|People={{#arraymap:{{{ AuthorName | }}}; {{{ AuthorPage | }}}; |;|@@@|@@@|;}}
+
|People={{#arraymap:{{{ AuthorName | }}}; {{{ AuthorPage | }}}; {{#external_value:authorlibwiki}}|;|@@@|@@@|;}}
|Titles={{{ ArticleTitle | }}}; ;  
+
|Titles={{{ ArticleTitle | }}}; {{#external_value:fulltitle}}; {{#external_value:BuNayTitle}}
|BuNayTopicTags=|+sep=;
+
|BuNayTopicTags={{#external_value:BuNayTopicTags}}|+sep=;
 
|TileDescription={{{ TileDescription | }}}
 
|TileDescription={{{ TileDescription | }}}
|Description=
+
|Description={{#external_value:Description}}
 
|TilePhoto={{{ TilePhoto | }}}
 
|TilePhoto={{{ TilePhoto | }}}
|Citationofsourcetexts=
+
|Citationofsourcetexts={{#external_value:citationofsourcetexts}}
|Sourcetitle=
+
|Sourcetitle={{#external_value:Sourcetitle}}
 
}}{{#ifsysop: {{#switch: {{{ PostStatus | }}}
 
}}{{#ifsysop: {{#switch: {{{ PostStatus | }}}
 
|Needs Copy Editing={{#widget:BootstrapAlert|color=danger|title=Needs Copy Editing|text=This page needs copywriting work to be done. This page was last updated on {{REVISIONMONTH}}-{{REVISIONDAY2}}-{{REVISIONYEAR}}, by {{REVISIONUSER}} }}
 
|Needs Copy Editing={{#widget:BootstrapAlert|color=danger|title=Needs Copy Editing|text=This page needs copywriting work to be done. This page was last updated on {{REVISIONMONTH}}-{{REVISIONDAY2}}-{{REVISIONYEAR}}, by {{REVISIONUSER}} }}
 
|Needs Final Review={{#widget:BootstrapAlert|color=info|title=This page needs a FINAL REVIEW|text=This page was last updated on {{REVISIONMONTH}}-{{REVISIONDAY2}}-{{REVISIONYEAR}}, by {{REVISIONUSER}} }}
 
|Needs Final Review={{#widget:BootstrapAlert|color=info|title=This page needs a FINAL REVIEW|text=This page was last updated on {{REVISIONMONTH}}-{{REVISIONDAY2}}-{{REVISIONYEAR}}, by {{REVISIONUSER}} }}
}}{{#if:
+
}}{{#if: {{#external_value:BuNayNotes}}
 
| {{#widget:BootstrapAlert
 
| {{#widget:BootstrapAlert
 
|color=warning
 
|color=warning
 
|title=Buddha-nature Notes
 
|title=Buddha-nature Notes
|text=
+
|text={{#external_value:BuNayNotes}}
 
}}  
 
}}  
 
|  
 
|  
}} | }}{{TopSysopLinks|research|Article}}{{TopLevelModule|}}<noglossary>
+
}} | }}{{TopSysopLinks|research|Article}}{{TopLevelModule|{{#external_value:BuNayGrade}}}}<noglossary>
 
<div class="bnw-article-heading d-flex justify-content-between align-items-end mb-1 mx-0">
 
<div class="bnw-article-heading d-flex justify-content-between align-items-end mb-1 mx-0">
 
<div>
 
<div>
Line 101: Line 101:
 
| {{#if: {{{ AuthorPage | }}}
 
| {{#if: {{{ AuthorPage | }}}
 
| {{#show: {{{ AuthorPage | }}}|?MainNamePhon }}  
 
| {{#show: {{{ AuthorPage | }}}|?MainNamePhon }}  
| {{#show: |?MainNamePhon }}
+
| {{#show: {{#external_value:authorlibwiki}} |?MainNamePhon }}
 
}}  
 
}}  
 
}}</i>&nbsp;&nbsp;·&nbsp;&nbsp;{{#time: j F Y | {{{ PubDate | }}}}}{{#ifeq: {{{ ArticleLayout | }}}  
 
}}</i>&nbsp;&nbsp;·&nbsp;&nbsp;{{#time: j F Y | {{{ PubDate | }}}}}{{#ifeq: {{{ ArticleLayout | }}}  
Line 126: Line 126:
 
|Interview=<div class="mb-5"></div>
 
|Interview=<div class="mb-5"></div>
 
|#default={{GooglePdfSearch
 
|#default={{GooglePdfSearch
|{{#switch:
+
|{{#switch:{{#external_value:BuNayPageType}}
|Book={{FirstValueOfArray||;}}
+
|Book={{FirstValueOfArray|{{#external_value:authorlibwiki}}|;}}
 
|Article={{{AuthorName|}}}
 
|Article={{{AuthorName|}}}
 
}}
 
}}
Line 141: Line 141:
 
{{!}}-
 
{{!}}-
 
! ''Citation:''
 
! ''Citation:''
{{!}} {{#if: | <br>
+
{{!}} {{#external_value:citation}} {{#if: {{#external_value:citationofsourcetexts}} | <br>
 
{{!}}-
 
{{!}}-
 
! ''Translated texts:''
 
! ''Translated texts:''
{{!}} class="disabled-red-links" {{!}} | }}
+
{{!}} class="disabled-red-links" {{!}} {{#external_value:citationofsourcetexts}} | }}
{{!}}}{{#if:
+
{{!}}}{{#if: {{#external_value:abstract}}
 
| <div><h3> Abstract </h3>
 
| <div><h3> Abstract </h3>
</div>
+
{{#external_value:abstract}}</div>
 
| {{#if: {{{ ArticleSummary | }}}  
 
| {{#if: {{{ ArticleSummary | }}}  
 
| <h3>Article Summary</h3>
 
| <h3>Article Summary</h3>
Line 155: Line 155:
 
}}
 
}}
 
</div>
 
</div>
|Original Content={{#if: |
+
|Original Content={{#if: {{#external_value:abstract}} |
<div class="bnw-panel rounded p-4 mb-5 mr-4 depth-1 text-italic" style="font-size: .9em;">{{#if: |
+
<div class="bnw-panel rounded p-4 mb-5 mr-4 depth-1 text-italic" style="font-size: .9em;">{{#if: {{#external_value:citation}} |
 
<div class="bnw-book-citation mb-3 text-muted clearfix">
 
<div class="bnw-book-citation mb-3 text-muted clearfix">
 
<div style="float: left; padding-right: 7px;">''Citation:''</div>
 
<div style="float: left; padding-right: 7px;">''Citation:''</div>
<div style="display: table-cell;"></div>
+
<div style="display: table-cell;">{{#external_value:citation}}</div>
 
</div> | }}
 
</div> | }}
 
<h3> Abstract </h3>
 
<h3> Abstract </h3>
+
{{#external_value:abstract}}
 
</div> | }}
 
</div> | }}
 
}}
 
}}
Line 168: Line 168:
 
| Interview  
 
| Interview  
 
|<h3 class="mt-0 p-0 no-drop-cap"> About the interview </h3>
 
|<h3 class="mt-0 p-0 no-drop-cap"> About the interview </h3>
<div class="no-drop-cap"></div>
+
<div class="no-drop-cap">{{#external_value:Description}}</div>
  
 
<h3 class="mt-0 p-0 border-0" style="height: 0px;">Clips from the interview</h3>
 
<h3 class="mt-0 p-0 border-0" style="height: 0px;">Clips from the interview</h3>
Line 205: Line 205:
 
{{StickySideBar
 
{{StickySideBar
 
|columns=3<!--
 
|columns=3<!--
|BuNayGrade=-->
+
|BuNayGrade={{#external_value:BuNayGrade}}-->
|BuNayPageType=
+
|BuNayPageType={{#external_value:BuNayPageType}}
|topics={{#ifeq:
+
|topics={{#ifeq: {{#external_value:BuNayPageType}}
 
| Interview
 
| Interview
 
|  
 
|  
|  
+
| {{#external_value:BuNayTopicTags}}
 
}}
 
}}
 
|AuthorPage={{{ AuthorPage | }}}
 
|AuthorPage={{{ AuthorPage | }}}
Line 218: Line 218:
 
|Frontcoverimg={{{ Frontcoverimg | }}}
 
|Frontcoverimg={{{ Frontcoverimg | }}}
 
|ImageDescription={{{ ImageDescription | }}}
 
|ImageDescription={{{ ImageDescription | }}}
|authorlibwiki=
+
|authorlibwiki={{#external_value:authorlibwiki}}
|abstract=
+
|abstract={{#external_value:abstract}}
 
|RelatedContent=
 
|RelatedContent=
 
{{SidebarTopicsList
 
{{SidebarTopicsList
|topics=
+
|topics={{#external_value:BuNayTopicTags}}
 
}}<!--
 
}}<!--
 
{{RelatedVideo
 
{{RelatedVideo
Line 231: Line 231:
 
{{RelatedTilesQuery
 
{{RelatedTilesQuery
 
|label=Introductory Content
 
|label=Introductory Content
|query=[[BuNayGrade::]]
+
|query=[[BuNayGrade::{{#external_value:BuNayGrade}}]]
 
}}
 
}}
 
{{RelatedTilesQuery
 
{{RelatedTilesQuery
Line 239: Line 239:
 
|TsadraLogoLink=Category:Editorial Content
 
|TsadraLogoLink=Category:Editorial Content
 
}}
 
}}
</div>{{#arraymap:Library Items;Articles;;;{{{ ExtraCategories | }}}|;|@@@|[[Category:@@@]]|}}
+
</div>{{#arraymap:Library Items;Articles;{{#external_value:periodical}};{{#external_value:DrlPublisher}};{{{ ExtraCategories | }}}|;|@@@|[[Category:@@@]]|}}
 
</includeonly><noinclude>{{TemplateTag}}</noinclude>
 
</includeonly><noinclude>{{TemplateTag}}</noinclude>

Revision as of 15:25, 3 June 2020