Template:HOPL: Difference between revisions

From Rosetta Code
Content added Content deleted
(ready for testing)
 
(Updated with the new hostname.)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#if: {{{id|}}}
[http://hopl.murdoch.edu.au/findlanguages2.prx?language={{#ifeq: {{PAGENAME}} | C++ | C%2B%2B&which=byname C++ on the HOPL] |{{#ifeq: {{PAGENAME}} | C# | C%28&which=byname C# on the HOPL | {{PAGENAME}}&which=byname {{PAGENAME}} on the HOPL]}}}}<noinclude>
|[http://hopl.info/showlanguage.prx?exp={{urlencode: {{{id}}} }} {{{1| {{PAGENAME}} }}} on the HOPL]
|[http://hopl.info/findlanguages2.prx?language={{urlencode: {{{1| {{PAGENAME}} }}} }}&which=byname {{{1| {{PAGENAME}} }}} on the HOPL]
}}<noinclude>


== Usage ==
Creates a link to the HOPL search for the title of the page it is placed on.
* <nowiki>{{HOPL}}</nowiki> creates a link to the HOPL search for the title of the page it is placed on.
* <nowiki>{{HOPL|Ruby}}</nowiki> searches for "Ruby", not the page title.
* <nowiki>{{HOPL|J|id=1558}} or {{HOPL|id=1558}}</nowiki> creates a direct link to language 1558 "J", bypassing the search page.


{{template}}</noinclude>
{{template}}</noinclude>

Latest revision as of 21:48, 16 December 2015

HOPL on the HOPL

Usage

  • {{HOPL}} creates a link to the HOPL search for the title of the page it is placed on.
  • {{HOPL|Ruby}} searches for "Ruby", not the page title.
  • {{HOPL|J|id=1558}} or {{HOPL|id=1558}} creates a direct link to language 1558 "J", bypassing the search page.



This is a template. There are many others. See Category:RCTemplates for a complete list of templates.