Help:Using Templates in the DNZ: Difference between revisions

From gDams Ngag mDzod
Jump to navigation Jump to search
No edit summary
Line 33: Line 33:


<hr>
<hr>
==Other Useful Things==
===Old Templates?===
===Old Templates?===
*[[Template:Text Vol Info]]
*[[Template:Text Vol Info]]
*[[Template:WylieFromTranslation]]
*[[Template:WylieFromTranslation]]


==Other Useful Things==


====Semantic Calls ====
<pre>
<pre>
[[Category:{{#show:{{Get Text Info|translation#}}|?translator#}}]]
[[Category:{{#show:{{Get Text Info|translation#}}|?translator#}}]]
</pre>
</pre>
<pre>
====base useful queries====
====Semantic Calls from Translation Pages====
These are contained in the '''Function Templates''' to make it easier to use
====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}}

Revision as of 14:57, 10 January 2013

Basic DNZ page structure

  • Volume Level Pages
    • 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



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 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.