Difference between revisions of "Template:LinkPentadecathlonObject"

From LifeWiki
Jump to: navigation, search
(implement patternname for style=raw)
m (Fixed error in docs)
 
Line 13: Line 13:
 
'''You see:'''
 
'''You see:'''
  
* [http://pentadecathlon.com/objects/object-info.php?objid=96P16.1 Achim's other p16] at Game of Life Object Catalogs
+
* [http://pentadecathlon.com/objects/object-info.php?objid=96P16.1 Achim's other p16] at Heinrich Koenig's Game of Life Object Catalogs
  
 
'''You type:'''
 
'''You type:'''

Latest revision as of 15:18, 7 July 2019

This is a template for including links to Heinrich Koenig's Game of Life Object Catalogs on Pentadecathlon.com in the "External Links" section of an article. It can take three parameters:

  • id, which specifies the ID of the object linked to;
  • patternname, which specifies the name of the pattern as it will appear in the link text (default: object's ID)
  • 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:

{{LinkPentadecathlonObject|id=96P16.1|patternname=Achim's other p16}}

You see:

You type:

{{LinkPentadecathlonObject|id=96P16.1|style=raw}}

You see:

96P16.1

See also

External link templates