Template:LinkGollyHelp: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
No edit summary
Confocal (talk | contribs)
simplify by removing the format=ref parameter; transclusions changed to specify the bullet explicitly as appropriate
Line 1: Line 1:
<includeonly>{{#ifeq:{{{format}}}|ref||*}}[http://golly.sourceforge.net/Help/{{{1|{{{filename}}}}}} {{{title|{{PAGENAME}}}}}] at [[Golly]]'s online help [[Category:Pages that link to Golly's online help]]</includeonly><noinclude>This is a template for including links to '''[http://golly.sourceforge.net/Help/ Golly's online help]''' in the "External Links" section of an article. It can take three parameters:
<includeonly>[http://golly.sourceforge.net/Help/{{{1|{{{filename}}}}}} {{{title|{{PAGENAME}}}}}] at [[Golly]]'s online help [[Category:Pages that link to Golly's online help]]</includeonly><noinclude>This is a template for including links to '''[http://golly.sourceforge.net/Help/ Golly's online help]''' in the "External Links" section of an article. It can take two parameters:


* ''filename'', which specifies the filename of the page being linked to;
* ''filename'', which specifies the filename of the page being linked to;
* ''title'', which specifies the title to use for the link.
* ''title'', which specifies the title to use for the link.
* ''format'', the way the resulting link should be formatted (optional):
** ''format=ref'', format in a way suitable for <tt><nowiki><ref> ... </ref></nowiki></tt> tags.


Here are two simple examples of its usage:
Here are two simple examples of its usage:
Line 10: Line 8:
'''You type:'''
'''You type:'''


<tt><nowiki>{{LinkGollyHelp|filename=Algorithms/Generations.html|title=Generations}}</nowiki></tt>
<tt><nowiki>* {{LinkGollyHelp|filename=Algorithms/Generations.html|title=Generations}}</nowiki></tt>


'''You see:'''
'''You see:'''


* [http://golly.sourceforge.net/Help/Algorithms/Generations.html Generations] at [[Golly]]'s online help
* {{LinkGollyHelp|filename=Algorithms/Generations.html|title=Generations}}


'''You type:'''
'''You type:'''


<pre><nowiki><ref>{{LinkGollyHelp|filename=Algorithms/Generations.html|title=Generations|format=ref}}</ref>
<pre><nowiki><ref>{{LinkGollyHelp|filename=Algorithms/Generations.html|title=Generations}}</ref>


==References==
==References==

Revision as of 09:47, 3 June 2022

This is a template for including links to Golly's online help in the "External Links" section of an article. It can take two parameters:

  • filename, which specifies the filename of the page being linked to;
  • title, which specifies the title to use for the link.

Here are two simple examples of its usage:

You type:

* {{LinkGollyHelp|filename=Algorithms/Generations.html|title=Generations}}

You see:

You type:

<ref>{{LinkGollyHelp|filename=Algorithms/Generations.html|title=Generations}}</ref>

==References==
<references />

You see: a footnote link1 at the ref tag location, and a reference section containing

1. Generations at Golly's online help

See also