Help:Using Templates in the DNZ: Difference between revisions

From gDams Ngag mDzod
Jump to navigation Jump to search
No edit summary
No edit summary
 
(19 intermediate revisions by 3 users not shown)
Line 1: Line 1:
==Basic DNZ page structure==
*'''Volume Level''' Pages
** Volume dkar chag - Wylie
** Volume dkar chag - Tibetan
** Volume dkar chag - Translation
*** Volume Bibliography
*'''Text Level''' Pages
**Text Wylie
**Text Tibetan
**Text Translation


<pre>
==Templates in Use on the DNZ ==
[[Category:{{#show:{{Get Text Info|translation#}}|?translator#}}]]
===Header Templates===
</pre>
*'''Text Level''' Header Templates - the wylie and Tibetan versions of the text and the translation
**[[Template:Text Wylie]]- ("Wylie" namespace) - '''contains metadata '''
**[[Template:Text Tibetan]] - ("Tibetan" namespace)
**[[Template:Text Translation]] - ("Draft" namespace) - '''contains partial metadata'''
 
*'''Volume Level''' Header Templates, the wylie and Tibetan versions of the text and the translation
**[[Template:Volume Wylie]] - '''contains metadata'''
**[[Template:Volume Tibetan]]
**[[Template:Volume Translation]]
**[[Template:Volume Bibliography]]
 
===Function Templates===
*'''[[Template:Get Text Info]]'''
**Enables you to retrieve the Text Wylie:metadata from any ''Text Level'' page or their subpages (for the current text group)
**Example:
 
*'''[[Template:Get Vol Info]]'''
**Enables you to retrieve the associated Volume Wylie:metadata from any ''Text Level'' page or their subpages
**Example:


===Templates in Use on the DNZ ===
*'''[[Template:Get Person's Works]]'''
*[[Template:Text Wylie]]
**Is a query that gets all works associated with the person (searches all author possibilities)
*[[Template:Text Tibetan]]
**<nowiki>{{Get Person's Works| Name here}}</nowiki>
*[[Template:Text Translation]]


*'''[[Template:Get_Text_for_Vol]]'''
**This template gets text information from the Volume Page to make a TOC
<pre>{{Get Text for Vol
|'phags pa shes rab kyi pha rol tu phyin pa'i man ngag
|[[Bram ze Ārya de ba]] (Āryadeva the Brahmin), translated by [[zhwa ma lo tsA ba]]
|2-7
}}</pre>


*[[Template:Volume Wylie]]
===Other Templates===
====Small Templates====
*[[Template:Translation Info]]
*[[Template:Text Vol Info]]
*[[Template:Volume Bibliography Link]]
*[[Template:WylieFromTranslation]]
*[[Template:Get_Author_Categories]] - Has a series of Arraymaps to get all the Author metadata and create categories
*[[Template:Translation Category Page]]
*[[Template:Nitartha Thanks]]




===Old Templates===
*[[Template:DRL Tibetan text categories]] - Function is being migrated to the [[Template:Text Wylie|Text Wylie]] template as of Jan 11, 2013.
*[[Template:Translation_Metadata]]
*[[Template:དཔེ་ཆ་]] - Function is being migrated to the [[Template:Text Tibetan|Text Tibetan]] template as of Jan 11, 2013.
*[[Template:Tibetan_Text_Metadata]]
<hr>
*[[Template:VolumeWylie]]
*[[Template:Tibetan_Text_Metadata_New]]


<pre>
==Other Useful Things==
===Semantic Calls from Translation Pages===
==useful queries==


*Get ''volwylie'' from text wylie page: {{#ask: [[translation::{{BASEPAGENAME}}]] | ?volwylie# = | mainlabel=-}}
===Old Templates?===
*Get ''voltitleeng'' from vol wylie page:{{#show:Wylie:{{#ask: [[translation::{{BASEPAGENAME}}]] | ?volwylie# = | mainlabel=-}}|?voltitleeng}}
*[[Template:Text Vol Info]]
*[[Template:WylieFromTranslation]]


==Back Link==


*{{#ask: [[-translation:{{BASEPAGENAME}}]] | ?title = | mainlabel=- }}
*{{#ask: [[-translation::Translation:Pure_Honey]] | ?title = | mainlabel=- }}
*{{#ask: [[-title:: <q>[[translation::{{BASEPAGENAME}}]]</q> ]] }}
*{{#ask: [[translation::{{BASEPAGENAME}}]] }}
*{{#ask: [[translation::{{BASEPAGENAME}}]]  | ?title = | mainlabel=-}}




===Show Volume Wylie Page Test===
Using Template
*{{#show:{{WylieFromTranslation}}|?volwylie}}
*{{#show:{{WylieFromTranslation}}|?volwylie = | mainlabel=-}}
*{{#ask:[[{{WylieFromTranslation}}]]|?volwylie = | mainlabel=-}}
Not Using Template
*{{#show:{{#ask: [[translation::{{BASEPAGENAME}}]]  | ?title = | mainlabel=-}}|?volwylie = | mainlabel=-}}
*{{#show:{{#ask: [[translation::{{BASEPAGENAME}}]]  | ?title = | mainlabel=-}}|?volwylie#}}


Get Volume Title
====Semantic Calls ====
*{{#show:Wylie:Zhi byed dang bcod pod gnyis pa|?voltitleeng = | mainlabel=-}}
<pre>
*{{#show:Wylie:Zhi byed dang bcod pod gnyis pa|?voltitleeng}}
[[Category:{{#show:{{Get Text Info|translation#}}|?translator#}}]]
*{{#ask:[[Wylie:Zhi byed dang bcod pod gnyis pa]]|?voltitleeng = | mainlabel=-}}
Get Volume Title with Template
*{{#show:Wylie:{{VolumeFromTranslation}}|?voltitleeng = | mainlabel=-}}
Get Volume Title with no Template
*{{#show:Wylie:{{#show:{{#ask: [[translation::{{BASEPAGENAME}}]]  | ?title = | mainlabel=-}}|?volwylie#}}|?voltitleeng = | mainlabel=-}}
</pre>
</pre>
====base useful queries====
These are contained in the '''Function Templates''' to make it easier to use
*Get ''volwylie'' from text wylie page: {{#ask: [[translation::{{BASEPAGENAME}}]]  | ?volwylie# = | mainlabel=-}}
*Get ''VolumeTitleTrans'' from vol wylie page:'''<nowiki>{{#show:Wylie:{{#ask: [[translation::{{BASEPAGENAME}}]]  | ?volwylie# = | mainlabel=-}}|?VolumeTitleTrans}}</nowiki>'''


[[Category: Help]]
[[Category: Help]]

Latest revision as of 13:53, 18 January 2021

Basic DNZ page structure

  • Volume Level Pages
    • Volume dkar chag - Wylie
    • Volume dkar chag - Tibetan
    • Volume dkar chag - Translation
      • Volume Bibliography
  • Text Level Pages
    • Text Wylie
    • Text Tibetan
    • Text Translation

Templates in Use on the DNZ

Header Templates

Function Templates

  • Template:Get Text Info
    • Enables you to retrieve the Text Wylie:metadata from any Text Level page or their subpages (for the current text group)
    • Example:
  • Template:Get Vol Info
    • Enables you to retrieve the associated Volume Wylie:metadata from any Text Level page or their subpages
    • Example:
  • Template:Get Person's Works
    • Is a query that gets all works associated with the person (searches all author possibilities)
    • {{Get Person's Works| Name here}}
{{Get Text for Vol
|'phags pa shes rab kyi pha rol tu phyin pa'i man ngag
|[[Bram ze Ārya de ba]] (Āryadeva the Brahmin), translated by [[zhwa ma lo tsA ba]]
|2-7
}}

Other Templates



Other Useful Things

Old Templates?



Semantic Calls

[[Category:{{#show:{{Get Text Info|translation#}}|?translator#}}]]

base useful queries

These are contained in the Function Templates to make it easier to use

  • Get volwylie from text wylie page:
  • Get VolumeTitleTrans from vol wylie page:{{#show:Wylie:{{#ask: [[translation::{{BASEPAGENAME}}]] | ?volwylie# = | mainlabel=-}}|?VolumeTitleTrans}}