Template:LinkEppstein: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
Add tracking category
Support style=listitem/raw parameter, similar to Template:LinkCatagolue
Line 1: Line 1:
<includeonly>* [http://fano.ics.uci.edu/ca/gliders/g{{{number|{{{1}}}}}}.html {{{patternname|Glider {{{1}}}}}}] 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 '''[http://fano.ics.uci.edu/ca/ David Eppstein's Glider Database]''' in the "External Links" section of an article. It can take two parameters: ''number'', which specifies the number of the glider (i.e. spaceship) that will be linked to on the Glider Database, and ''patternname'', which specifies the name of the pattern as it will appear in the link text. If patternname is omitted, "Glider" followed by the number provided will be used by default.
<includeonly>{{#ifeq: {{{style|listitem}}} | listitem |* [http://fano.ics.uci.edu/ca/gliders/g{{{number|{{{1}}}}}}.html {{{patternname|Glider {{{number|{{{1}}}}}}}}} ] at David Eppstein's Glider Database | {{#ifeq: {{{style|raw}}} | raw | [http://fano.ics.uci.edu/ca/gliders/g{{{number|{{{1}}}}}}.html {{{patternname|Glider&nbsp;{{{number|{{{1}}}}}}}}} ] }} [[Category:Pages that link to David Eppstein's Glider Database]]</includeonly><noinclude>This is a template for including links to '''[http://fano.ics.uci.edu/ca/ David Eppstein's Glider Database]''' in the "External Links" section of an article. It can take three parameters:  
 
* ''number'' (mandatory), which specifies the number of the glider (i.e. spaceship) that will be linked to on the Glider Database;
* ''patternname'' (optional), which specifies the name of the pattern as it will appear in the link text (default: "Glider" followed by the number provided);
* ''style'' (optional), which specifies how to format the link (style=listitem or style=raw; default: listitem)


Here is a simple example of its usage:
Here is a simple example of its usage:

Revision as of 10:29, 17 July 2017

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

  • number (mandatory), which specifies the number of the glider (i.e. spaceship) that will be linked to on the Glider Database;
  • patternname (optional), which specifies the name of the pattern as it will appear in the link text (default: "Glider" followed by the number provided);
  • style (optional), which specifies how to format the link (style=listitem or style=raw; default: listitem)

Here is a simple example of its usage:

You type:

{{LinkEppstein|number=115|patternname=The Glider (glider 115)}}

You see:

See also