Difference between revisions of "Template:Text"
From Shangpa Resource Center
(32 intermediate revisions by the same user not shown) | |||
Line 15: | Line 15: | ||
|Classification= | |Classification= | ||
|Notes= | |Notes= | ||
+ | |TranslationFileEN= | ||
+ | |TranslationFileFR= | ||
+ | |TranslationAccessLevel= | ||
}} | }} | ||
</pre> | </pre> | ||
Line 30: | Line 33: | ||
{{#arraymap:{{{Classification|}}}|,|x|{{#set:Classification=x}}}} | {{#arraymap:{{{Classification|}}}|,|x|{{#set:Classification=x}}}} | ||
{{#set:Notes={{{Notes|}}}}} | {{#set:Notes={{{Notes|}}}}} | ||
+ | {{#set:TranslationFileEN={{{TranslationFileEN|}}}}} | ||
+ | {{#set:TranslationFileFR={{{TranslationFileFR|}}}}} | ||
+ | {{#set:TranslationAccessLevel={{{TranslationAccessLevel|}}}}} | ||
<div class="text_left_column"> | <div class="text_left_column"> | ||
{| class="text_properties" | {| class="text_properties" | ||
Line 37: | Line 43: | ||
! Title | ! Title | ||
| {{{Wylie Title|}}} | | {{{Wylie Title|}}} | ||
− | |-{{#if: {{{Other titles|}}} | | + | |- |
− | ! Alt. | + | {{#if: {{{Other titles|}}} | |
− | {{!}} {{#arraymap:{{{Other titles|}}}|,|x|x}}|}} | + | ! Alt. title |
+ | {{!}} {{#arraymap:{{{Other titles|}}}|,|x|x|<br/>}} | ||
+ | {{!}}-|}} | ||
{{#if: {{{Subject|}}} | | {{#if: {{{Subject|}}} | | ||
! Topics | ! Topics | ||
− | {{!}} {{#arraymap:{{{Subject|}}}|,|x|[[:Topic:x|x]]}}|}} | + | {{!}} {{#arraymap:{{{Subject|}}}|,|x|[[:Topic:x|x]]}} |
+ | {{!}}-|}} | ||
{{#if: {{{SubTopics|}}}| | {{#if: {{{SubTopics|}}}| | ||
! Sub-Topics | ! Sub-Topics | ||
− | {{!}} {{#arraymap:{{{SubTopics|}}}|,|x|x}}|}} | + | {{!}} {{#arraymap:{{{SubTopics|}}}|,|x|x}} |
+ | {{!}}-|}} | ||
{{#if: {{{Author|}}} | ! Author | {{#if: {{{Author|}}} | ! Author | ||
− | {{!}} {{#arraymap:{{{Author|}}}|,|x|[[x]]}}|}} | + | {{!}} {{#arraymap:{{{Author|}}}|,|x|[[x]]}} |
− | {{#if: {{{Associated Person|}}} | ! Associated Person | + | {{!}}-|}} |
− | {{!}} {{#arraymap:{{{Associated Person|}}}|,|x|[[x]]}}|}} | + | {{#if: {{{Associated Person|}}} | |
− | {{#if: {{{BDRC link|}}}| ! Link | + | ! Associated Person |
− | {{!}} {{{BDRC link|}}}|}} | + | {{!}} {{#arraymap:{{{Associated Person|}}}|,|x|[[x]]|<br/>}} |
− | {{#if: {{{Classification|}}} | ! Classification | + | {{!}}-|}} |
− | {{!}} {{#arraymap:{{{Classification|}}}|,|x|[[x]]}}|}} | + | {{#if: {{{BDRC link|}}}| |
− | {{#if: {{{Notes|}}}| ! Notes | + | ! Link |
− | {{!}} {{{Notes|}}} |}} | + | {{!}} {{{BDRC link|}}} |
+ | {{!}}-|}} | ||
+ | {{#if: {{{Classification|}}} | | ||
+ | ! Classification | ||
+ | {{!}} {{#arraymap:{{{Classification|}}}|,|x|[[x]]}} | ||
+ | {{!}}-|}} | ||
+ | {{#if: {{{Notes|}}}| | ||
+ | ! Notes | ||
+ | {{!}} {{{Notes|}}} | ||
+ | {{!}}-|}} | ||
+ | {{#ifeq:{{{TranslationAccessLevel|}}}|public| | ||
+ | ! Traductions (PDF files) | ||
+ | {{!}} {{#if: {{{TranslationFileFR|}}}|[[Media:{{{TranslationFileFR|}}}|French]]|}} {{#if: {{{TranslationFileEN|}}}|[[Media:{{{TranslationFileEN|}}}|English]]|}} | ||
+ | {{!}}-|}} | ||
+ | {{#ifingroup:{{{TranslationAccessLevel|}}}| | ||
+ | ! Translations (PDF files) | ||
+ | {{!}} {{#if: {{{TranslationFileFR|}}}|[[Media:{{{TranslationFileFR|}}}|French]]|}} {{#if: {{{TranslationFileEN|}}}|<br/>[[Media:{{{TranslationFileEN|}}}|English]]|}} | ||
+ | {{!}}-|}} | ||
|} | |} | ||
</div> | </div> | ||
Line 64: | Line 91: | ||
.firstHeading { | .firstHeading { | ||
− | margin-left: | + | margin-left: 21%; |
+ | text-transform: lowercase; | ||
} | } | ||
}} | }} |
Latest revision as of 14:49, 31 October 2019
This is the "Text" template. It should be called in the following format:
{{Text |Text ID= |Tibetan Title= |Wylie Title= |Other titles= |Subject= |SubTopics= |Author= |Associated Person= |BDRC link= |Classification= |Notes= |TranslationFileEN= |TranslationFileFR= |TranslationAccessLevel= }}
Edit the page to see the template text.