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
Line 1: Line 1:
==Basic DNZ page structure==
* Volume dkar chag - Wylie
* Volume dkar chag - Tibetan
* Volume dkar chag - Translation
** Volume Bibliography


<pre>
==Templates in Use on the DNZ ==
[[Category:{{#show:{{Get Text Info|translation#}}|?translator#}}]]
===Header Templates===
</pre>
*Used for Text level pages, 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)
 
*[[Template:Volume Wylie]] - '''contains metadata'''
*[[Template:Volume Tibetan]]
*[[Template:Volume Translation]] - '''contains partial metadata'''
*[[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:
 
===Other Templates===


===Templates in Use on the DNZ ===
*[[Template:Text Wylie]]
*[[Template:Text Tibetan]]
*[[Template:Text Translation]]




*[[Template:Volume Wylie]]
<hr>
====Small Templates====
===Old Templates?===
*[[Template:Text Vol Info]]
*[[Template:Text Vol Info]]
*[[Template:WylieFromTranslation]]
*[[Template:WylieFromTranslation]]




===Old Templates===
*[[Template:Translation_Metadata]]
*[[Template:Tibetan_Text_Metadata]]
*[[Template:VolumeWylie]]
*[[Template:Tibetan_Text_Metadata_New]]


==Other Useful Things==
<pre>
[[Category:{{#show:{{Get Text Info|translation#}}|?translator#}}]]
</pre>
<pre>
<pre>
===Semantic Calls from Translation Pages===
====Semantic Calls from Translation Pages====
==useful queries==
====useful queries====


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


==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
*{{#show:Wylie:Zhi byed dang bcod pod gnyis pa|?voltitleeng = | mainlabel=-}}
*{{#show:Wylie:Zhi byed dang bcod pod gnyis pa|?voltitleeng}}
*{{#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>


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

Revision as of 14:50, 10 January 2013

Basic DNZ page structure

  • Volume dkar chag - Wylie
  • Volume dkar chag - Tibetan
  • Volume dkar chag - Translation
    • Volume Bibliography

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:

Other Templates


Old Templates?


Other Useful Things

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

Semantic Calls from Translation Pages

useful queries

*Get volwylie from text wylie page: *Get voltitleeng from vol wylie page:The page type input value "Wylie:" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.