Template:LinkGollyHelp: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
No edit summary
expanded templates to avoid placing self in category
 
(3 intermediate revisions by one other user not shown)
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]''', either in the "External Links" section of an article or in a footnote. 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:'''
Line 18: Line 16:
'''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==
Line 26: Line 24:
'''You see:''' a footnote link<sup>1</sup> at the '''ref''' tag location, and a reference section containing
'''You see:''' a footnote link<sup>1</sup> at the '''ref''' tag location, and a reference section containing


1. [http://golly.sourceforge.net/Help/Algorithms/Generations.html Generations] at [[Golly]]'s online help
# [http://golly.sourceforge.net/Help/Algorithms/Generations.html Generations] at [[Golly]]'s online help


==See also==
==See also==

Latest revision as of 04:23, 17 June 2022

This is a template for including links to Golly's online help, either in the "External Links" section of an article or in a footnote. 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