ExternalData New Method
((by SublimeText.Mediawiker)) |
((by SublimeText.Mediawiker)) |
||
Line 1: | Line 1: | ||
− | === Simple | + | === Simple value from DRL === |
'''Value on DRL:''' | '''Value on DRL:''' | ||
Line 15: | Line 15: | ||
✅ | ✅ | ||
− | === Complex | + | === Complex value from DRL === |
'''Value on DRL:''' | '''Value on DRL:''' | ||
Line 31: | Line 31: | ||
❌ | ❌ | ||
− | === Complex | + | === Complex value from DRL that is URL encoded === |
'''Value on DRL:''' | '''Value on DRL:''' | ||
Line 48: | Line 48: | ||
{{#urldecode:{{#external_value:Encodedcitationofsourcetexts|source=https://research.tsadra.org/index.php?title=Special%3AAsk&q={{urlencode:[[A Direct Path to the Buddha Within]]}}&po=Encodedcitationofsourcetexts&p[format]=csv|format=CSV with header}}}} | {{#urldecode:{{#external_value:Encodedcitationofsourcetexts|source=https://research.tsadra.org/index.php?title=Special%3AAsk&q={{urlencode:[[A Direct Path to the Buddha Within]]}}&po=Encodedcitationofsourcetexts&p[format]=csv|format=CSV with header}}}} | ||
+ | |||
+ | ✅ | ||
+ | |||
+ | === Simple value from Commons === | ||
+ | |||
+ | '''Value on Commons:''' | ||
+ | |||
+ | <pre>Great Vehicle</pre> | ||
+ | |||
+ | '''Function:''' | ||
+ | |||
+ | <pre>{{#external_value:Glossary-English|source=https://commons.tsadra.org/index.php?title=Special%3AAsk&q={{urlencode:[[Mahāyāna]]}}&po=Glossary-English&p[format]=csv&p[sep]=;&p[valuesep]=;|format=CSV with header}}</pre> | ||
+ | |||
+ | '''Result:''' | ||
+ | |||
+ | {{#external_value:Glossary-English|source=https://commons.tsadra.org/index.php?title=Special%3AAsk&q={{urlencode:[[Mahāyāna]]}}&po=Glossary-English&p[format]=csv&p[sep]=;&p[valuesep]=;|format=CSV with header}} | ||
+ | |||
+ | ✅ |
Revision as of 13:16, 5 December 2022
Simple value from DRL[edit]
Value on DRL:
A Direct Path to the Buddha Within
Function:
{{#external_value:BuNayTitle|source=https://research.tsadra.org/index.php?title=Special%3AAsk&q={{urlencode:[[A Direct Path to the Buddha Within]]}}&po=BuNayTitle&p[format]=csv|format=CSV with header}}
Result:
A Direct Path to the Buddha Within
✅
Complex value from DRL[edit]
Value on DRL:
#[['gos lo tsA ba gzhon nu dpal]]. [[Theg pa chen po rgyud bla ma'i bstan bcos kyi 'grel bshad de kho na nyid rab tu gsal ba'i me long]]. In ''[['Gos Lo tsā ba gZhon nu dpal's Commentary on the Ratnagotravibhāgavyākhyā]]''. Nepal Research Centre Publications, 24. Edited by Klaus-Dieter Mathes. Stuttgart: Franz Steiner Verlag, 2003.
Function:
{{#external_value:Citationofsourcetexts|source=https://research.tsadra.org/index.php?title=Special%3AAsk&q={{urlencode:[[A Direct Path to the Buddha Within]]}}&po=Citationofsourcetexts&p[format]=csv|format=CSV with header}}
Result:
- 'gos lo tsA ba gzhon nu dpal. Theg pa chen po rgyud bla ma'i bstan bcos kyi 'grel bshad de kho na nyid rab tu gsal ba'i me long. In 'Gos Lo tsā ba gZhon nu dpal's Commentary on the Ratnagotravibhāgavyākhyā. Nepal Research Centre Publications, 24. Edited by Klaus-Dieter Mathes. Stuttgart: Franz Steiner Verlag, 2003.
❌
Complex value from DRL that is URL encoded[edit]
Value on DRL:
#[['gos lo tsA ba gzhon nu dpal]]. [[Theg pa chen po rgyud bla ma'i bstan bcos kyi 'grel bshad de kho na nyid rab tu gsal ba'i me long]]. In ''[['Gos Lo tsā ba gZhon nu dpal's Commentary on the Ratnagotravibhāgavyākhyā]]''. Nepal Research Centre Publications, 24. Edited by Klaus-Dieter Mathes. Stuttgart: Franz Steiner Verlag, 2003.
Encoded into:
%23%5B%5B%27gos+lo+tsA+ba+gzhon+nu+dpal%5D%5D.+%5B%5BTheg+pa+chen+po+rgyud+bla+ma%27i+bstan+bcos+kyi+%27grel+bshad+de+kho+na+nyid+rab+tu+gsal+ba%27i+me+long%5D%5D.+In+%27%27%5B%5B%27Gos+Lo+ts%C4%81+ba+gZhon+nu+dpal%27s+Commentary+on+the+Ratnagotravibh%C4%81gavy%C4%81khy%C4%81%5D%5D%27%27.+Nepal+Research+Centre+Publications%2C+24.+Edited+by+Klaus-Dieter+Mathes.+Stuttgart%3A+Franz+Steiner+Verlag%2C+2003.
Function:
{{#urldecode:{{#external_value:Encodedcitationofsourcetexts|source=https://research.tsadra.org/index.php?title=Special%3AAsk&q={{urlencode:[[A Direct Path to the Buddha Within]]}}&po=Encodedcitationofsourcetexts&p[format]=csv|format=CSV with header}}}}
Result:
- 'gos lo tsA ba gzhon nu dpal. Theg pa chen po rgyud bla ma'i bstan bcos kyi 'grel bshad de kho na nyid rab tu gsal ba'i me long. In 'Gos Lo tsā ba gZhon nu dpal's Commentary on the Ratnagotravibhāgavyākhyā. Nepal Research Centre Publications, 24. Edited by Klaus-Dieter Mathes. Stuttgart: Franz Steiner Verlag, 2003.
✅
Simple value from Commons[edit]
Value on Commons:
Great Vehicle
Function:
{{#external_value:Glossary-English|source=https://commons.tsadra.org/index.php?title=Special%3AAsk&q={{urlencode:[[Mahāyāna]]}}&po=Glossary-English&p[format]=csv&p[sep]=;&p[valuesep]=;|format=CSV with header}}
Result:
Great Vehicle
✅