Template:LinkEppsteinRule: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
Confocal (talk | contribs)
add an optional parameter archivedate
Confocal (talk | contribs)
move the bullet out of the template
Line 1: Line 1:
<includeonly>* [{{#if:{{{archivedate|}}}|https://web.archive.org/web/{{{archivedate}}}/|}}http://fano.ics.uci.edu/ca/rules/{{{rule|{{{1}}}}}}/ {{{rulename|{{PAGENAME}}}}}] at [[David Eppstein]]'s Glider Database [[Category:Pages that link to David Eppstein's Glider Database]]</includeonly><noinclude>This is a template for including links to rules at '''[http://fano.ics.uci.edu/ca/ David Eppstein's Glider Database]''' in the "External Links" section of an article. It can take two parameters:
<includeonly>[{{#if:{{{archivedate|}}}|https://web.archive.org/web/{{{archivedate}}}/|}}http://fano.ics.uci.edu/ca/rules/{{{rule|{{{1}}}}}}/ {{{rulename|{{PAGENAME}}}}}] at [[David Eppstein]]'s Glider Database [[Category:Pages that link to David Eppstein's Glider Database]]</includeonly><noinclude>This is a template for including links to rules at '''[https://web.archive.org/web/20190408101245/http://fano.ics.uci.edu/ca/ David Eppstein's Glider Database]''' in the "External Links" section of an article. It can take two parameters:


* ''rule'', which specifies the rule of the census linked to (parameter name may be omitted);
* ''rule'', which specifies the rule of the census linked to (parameter name may be omitted);
Line 8: Line 8:
'''You type:'''
'''You type:'''


<tt><nowiki>{{LinkEppsteinRule|b3678s34678|rulename=Day & Night}}</nowiki></tt>
<tt><nowiki>* {{LinkEppsteinRule|b3678s34678|rulename=Day & Night}}</nowiki></tt>


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


{{LinkEppsteinRule|b3678s34678|rulename=Day & Night}}
* {{LinkEppsteinRule|b3678s34678|rulename=Day & Night}}


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


<tt><nowiki>{{LinkEppsteinRule|b36s245|rulename=Logarithmic replicator rule|archivedate=20150422165243}}</nowiki></tt>
<tt><nowiki>* {{LinkEppsteinRule|b36s245|rulename=Logarithmic replicator rule|archivedate=20150422165243}}</nowiki></tt>


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


{{LinkEppsteinRule|b36s245|rulename=Logarithmic replicator rule|archivedate=20150422165243}}
* {{LinkEppsteinRule|b36s245|rulename=Logarithmic replicator rule|archivedate=20150422165243}}


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

Revision as of 16:57, 3 June 2022

This is a template for including links to rules at David Eppstein's Glider Database in the "External Links" section of an article. It can take two parameters:

  • rule, which specifies the rule of the census linked to (parameter name may be omitted);
  • rulename, which specifies the name of the rule as it will appear in the link text (default: name of the current article).

Here is a simple example of its usage:

You type:

* {{LinkEppsteinRule|b3678s34678|rulename=Day & Night}}

You see:

You type:

* {{LinkEppsteinRule|b36s245|rulename=Logarithmic replicator rule|archivedate=20150422165243}}

You see:

See also