Difference between revisions of "Template:Collection"

From Rangjung Yeshe Wiki - Dharma Dictionary
Jump to navigation Jump to search
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
 
(42 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly>__NOEDITSECTION____NOTOC__
 
<includeonly>__NOEDITSECTION____NOTOC__
 +
<div class="button-style-all-a group">
 +
<div class="float-right text-right"><span class="discuss-button">[http://rywiki.tsadra.org/index.php?title=User_talk:{{PAGENAMEE}} <i class="fa-duotone fa-comments-question"></i> Discussions][http://rywiki.tsadra.org/index.php?title=User_talk:{{PAGENAMEE}}&action=edit&section=new <i class="fa-duotone fa-comment-pen"></i> Start Discussion Topic]</span>
 +
</div>
 +
</div>
 
<div class="tlw-tabs-wrapper">
 
<div class="tlw-tabs-wrapper">
  
 
<h3 class="tlw-header">
 
<h3 class="tlw-header">
<div class="tlw-tsadra-logo"></div> {{{ ColName | }}}
+
<div class="tlw-tsadra-logo"></div> {{{ ColName | }}} {{#ifeq: {{{ ColPrivate | }}}
 +
|Yes
 +
|<code style="font-size: .5em; margin-left: .5em;"><i class="fa-duotone fa-lock-keyhole fa-xs"></i> Private</code>
 +
|
 +
}}
 
</h3>
 
</h3>
  
Line 10: Line 18:
 
=== Description ===
 
=== Description ===
  
{{{ ColDescription | }}}
+
{{{ ColDescription | }}}{{#if: {{{ ColCollaborator | }}} | <br>
 +
 +
=== Collaborators ===
 +
 
 +
{{#arraymap:  {{{ ColCollaborator | }}}
 +
|;
 +
|@@@
 +
|<div class="card-person"><i class="fa-duotone fa-user-bounty-hunter fa-2x"></i><br>[[@@@|{{PAGENAME:@@@}}]]</div>
 +
|
 +
}} | }}
  
 
=== {{#show: {{FULLPAGENAME}}|?ColCount }} entries in this collection: ===
 
=== {{#show: {{FULLPAGENAME}}|?ColCount }} entries in this collection: ===
Line 18: Line 35:
 
}}
 
}}
  
{| class="smwtable-clean sortable term-table th-left th-pink w-100 filterableContent"
+
<table class="smwtable-clean sortable term-table th-left th-pink w-100 filterableContent">
|-
+
<tr>
! Wylie !! Tibetan !! English !! Definitions
+
<th>Wylie</th>
{{#arraymap:{{{ ColTerms | }}}|;|@@@|
+
<th>Tibetan</th>
{{!}}- class="filterable"
+
<th>English</th>
{{!}}[[@@@]]
+
<th>Definitions</th>
{{!}}<span class="TibInline">{{#show:@@@|?Dict-Tibetan#}}</span>
+
<th>Notes</th>
{{!}}
+
</tr>{{#arraymap:{{{ ColTerms | }}}|;|@@@|
{{!}}{{#show:@@@|?Dict-Definition#}} |\n}}
+
<tr class="filterable">
{{{ ColEntries | }}}
+
<td class="nowrap">[[@@@]]</td>
|}
+
<td class="nowrap"><span class="TibInline">{{#show:@@@|?Dict-Tibetan#}}</span></td>
 +
<td></td>
 +
<td>{{#show:@@@|?Dict-Definition#}}</td>
 +
<td></td>
 +
</tr>| }}
 +
{{{ ColEntries | }}}
 +
</table>
  
 
<div class="ooui-button-style">
 
<div class="ooui-button-style">
Line 38: Line 61:
 
</div>{{#set:
 
</div>{{#set:
 
|ColName={{{ ColName | }}}
 
|ColName={{{ ColName | }}}
 +
|ColPrivate={{{ ColPrivate | No }}}
 
|ColDescription={{{ ColDescription | }}}
 
|ColDescription={{{ ColDescription | }}}
 +
|ColCollaborator={{{ ColCollaborator | }}}|+sep=;
 
|ColTerms={{{ ColTerms | }}}|+sep=;
 
|ColTerms={{{ ColTerms | }}}|+sep=;
 
|ColOwner={{#titleparts: {{FULLPAGENAME}} | 1 }}
 
|ColOwner={{#titleparts: {{FULLPAGENAME}} | 1 }}

Latest revision as of 17:35, 8 June 2021