Bureaucrats, Interface administrators, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Editors (Semantic MediaWiki), Suppressors, Administrators, trusted
15,374
edits
(Created page with "'''How to automaticaly go to the wiki page, returned by semantic query?''' There are bookmarks on every page of the ''Secret Doctrine''. Template {{t|SD-page}} makes a link from semantic query: * <nowiki>{{SD-page|v=1|p=45|text=SD, volume 1, page 45}}</nowiki><br> :: → {{SD-page|v=1|p=45|text=SD, volume 1, page 45}} We can get wiki page name by query: * <nowiki>{{#ask: SD volume::1 Page number::45 SD edition::ed.1 |?}}</nowiki> :: → {{#ask: SD vol...") |
mNo edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
There are bookmarks on every page of the ''Secret Doctrine''. Template {{t|SD-page}} makes a link from semantic query: | There are bookmarks on every page of the ''Secret Doctrine''. The book devided on several wiki pages by chapters. Template {{t|SD-page}} makes a link to the wiki page from semantic query: | ||
* <nowiki>{{SD-page|v= | * <nowiki>{{SD-page|v=2|p=45|text=SD, volume 2, page 45}}</nowiki><br> | ||
:: → {{SD-page|v=1|p=45|text=SD, volume | :: → {{SD-page|v=1|p=45|text=SD, volume 2, page 45}} | ||
| Line 28: | Line 28: | ||
</pre> | </pre> | ||
But | But in every case we get a result page with a link to wiki page of the book. '''How to go to that page itself, instaed of getting a page with a link to it?''' | ||
May be the question is: how to implement in MediaWiki form request the functionality of | May be the question is: '''how to implement in MediaWiki form request''' the functionality of <meta> tag of HTML: | ||
<pre> | <pre> | ||
<meta http-equiv="Refresh" content="0; url='https://en.teopedia.org/lib/HPB-SD(ed.1) v.1 p.2 sec.3#335'" /> | <meta http-equiv="Refresh" content="0; url='https://en.teopedia.org/lib/HPB-SD(ed.1) v.1 p.2 sec.3#335'" /> | ||
</pre> | </pre> | ||
Additional form and template with '''#Redirect''' does not work. See {{f|Goto wikipage}} form and {{t|Goto wikipage}} template. | |||
| Line 39: | Line 42: | ||
<nowiki>https://en.teopedia.org/lib/Special:RunQuery/Goto_sd_page?Goto_sd_page[volume]=</nowiki><span style="color: red; font-weight: bold;">2</span>&Goto_sd_page[page]=<span style="color: red; font-weight: bold;">45</span>&_run= | <nowiki>https://en.teopedia.org/lib/Special:RunQuery/Goto_sd_page?Goto_sd_page[volume]=</nowiki><span style="color: red; font-weight: bold;">2</span>&Goto_sd_page[page]=<span style="color: red; font-weight: bold;">45</span>&_run= | ||
{{Style P-No indent|This URL should be redirected to:}} | |||
<span class="plainlinks">https://en.teopedia.org/lib/HPB-SD(ed.1)_v.1_p.1_st.1_sl.7#45</span> | |||
'''Some resources:''' | |||
* https://www.mediawiki.org/wiki/Extension:Page_Forms/Creating_query_forms | |||
* https://www.mediawiki.org/wiki/Extension:Page_Forms/Linking_to_forms | |||