Template:LinkLexicon: Difference between revisions
Jump to navigation
Jump to search
Apple Bottom (talk | contribs) Since this is used for things other than patterns, support name= as an alternative to patternname= |
Apple Bottom (talk | contribs) Let's try and use {{#switch:}} instead of nested {{#ifeq:}}'s. |
||
| Line 1: | Line 1: | ||
<includeonly>{{# | <includeonly>{{#switch: {{{style|listitem}}} | ||
| listitem = * [http://www.conwaylife.com/ref/lexicon/{{{filename|{{{1}}}}}} {{{name|{{{patternname|{{PAGENAME}}}}}}}}] at the Life Lexicon | |||
| raw = [http://www.conwaylife.com/ref/lexicon/{{{filename|{{{1}}}}}} {{{name|{{{patternname|{{{filename|{{{1}}}}}}}}}}}}] | |||
}} [[Category:Pages that link to the Life Lexicon]]</includeonly><noinclude>This is a template for including links to the '''[http://www.conwaylife.com/ref/lexicon/lex_home.htm Life Lexicon]''' in the "External Links" section of an article. It can take three parameters: | |||
* ''filename'', which specifies the HTML file (including anchor) that will be linked to on the Life Lexicon; | * ''filename'', which specifies the HTML file (including anchor) that will be linked to on the Life Lexicon; | ||
Revision as of 20:59, 5 March 2018
This is a template for including links to the Life Lexicon in the "External Links" section of an article. It can take three parameters:
- filename, which specifies the HTML file (including anchor) that will be linked to on the Life Lexicon;
- patternname (alternatively: name), which specifies the name of the pattern as it will appear in the link text (default: name of the current article for style=listitem, or filename for style=raw);
- style, which specifies how to format the link (style=listitem or style=raw; default: listitem)
Here is a simple example of its usage:
You type:
{{LinkLexicon|filename=lex_1.htm#a1234|patternname=1-2-3-4}}
You see:
- 1-2-3-4 at the Life Lexicon
You type:
{{LinkLexicon|filename=lex_1.htm#a1234|patternname=1-2-3-4|style=raw}}
You see:
See also
- Pages that link to external sites (category)
External link templates
- Template:Cata
- Template:LinkCallahan
- Template:LinkCatagolue
- Template:LinkCatagolueRule
- Template:LinkEppstein
- Template:LinkEppsteinRule
- Template:LinkForumThread
- Template:LinkGoLDictionary
- Template:LinkGoLNews
- Template:LinkGollyHelp
- Template:LinkLexicon
- Template:LinkMathworld
- Template:LinkMirek
- Template:LinkNiemiec
- Template:LinkPentadecathlonObject
- Template:LinkWikipedia
- Template:LinkYouTube
- Template:MathGenealogy
- Template:OEIS