Difference between revisions of "Template:LinkCatagolue"

From LifeWiki
Jump to navigation Jump to search
(Add format= parameter)
 
(16 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>* [https://catagolue.appspot.com/object/{{{code|{{{1}}}}}}/{{{rule|b3s23}}} {{{patternname|{{PAGENAME}}}}}] {{#if:{{{rule|}}} | (rule [https://catagolue.appspot.com/census/{{{rule}}}/ {{{rule}}}]) }} at Adam P. Goucher's [[Catagolue]] {{#if: {{{format|}}} | ({{{format|}}}) }}</includeonly><noinclude>This is a template for including links to '''[https://catagolue.appspot.com/home Adam P. Goucher's Catagolue]''' in the "External Links" section of an article. It can take four parameters:
+
<includeonly>{{#ifeq: {{{style|listitem}}} | listitem |* [https://catagolue.appspot.com/object/{{{code|{{{1|}}}}}}/{{{rule|{{{2|b3s23}}}}}} {{{patternname|{{PAGENAME}}}}}] {{#if:{{{rule|}}} | (rule [https://catagolue.appspot.com/census/{{{rule}}}/ {{{rule}}}]) }} at [[Adam P. Goucher]]'s [[Catagolue]] {{#if: {{{format|}}} | ({{{format|}}}) }} | {{#ifeq: {{{style|listitem}}} | brief | '''[[Catagolue]]''':&nbsp;[https://catagolue.appspot.com/object/{{{code|{{{1}}}}}}/{{{rule|{{{2|b3s23}}}}}}/ {{{patternname|here}}}] | {{#ifeq: {{{style|raw}}} | raw | [https://catagolue.appspot.com/object/{{{code|{{{1}}}}}}/{{{rule|{{{2|b3s23}}}}}}/ {{{patternname|{{{code|{{{1|}}}}}}}}}] }} }} }}[[Category:Pages that link to Adam P. Goucher's Catagolue]]{{#if: {{{code|{{{1|}}}}}} | | [[Category:Pages using the LinkCatagolue template without a code]] }}{{#if: {{{format|}}} | [[Category:Pages using {{{format|}}} apgcodes]] }}</includeonly><noinclude>This is a template for including links to '''[https://catagolue.appspot.com/home Adam P. Goucher's Catagolue]''' in the "External Links" section of an article. It can take four parameters:
  
 
* ''code'' (mandatory), which specifies the [[extended Wechsler code]] of the object linked to;
 
* ''code'' (mandatory), which specifies the [[extended Wechsler code]] of the object linked to;
 
* ''rule'', which specifies the [[rulestring]] to use (default b3s23);
 
* ''rule'', which specifies the [[rulestring]] to use (default b3s23);
* ''patternname'', which specifies the name of the pattern as it will appear in the link text (default: name of the current article);
+
* ''patternname'', which specifies the name of the pattern as it will appear in the link text (default: name of the current article for style=listitem; "here" for style=brief; code for style=raw);
* ''format'', which specifies the code's format (format=extended, or leave blank for regular apgcodes).
+
* ''format'', which specifies the code's format (format=extended, format=pseudo-object, format=linear growth, format=long-lived pattern, or leave out for regular apgcodes).
 +
* ''style'', which specifies how to format the link (style=listitem, style=brief or style=raw; default: listitem)
  
 
Here is a simple example of its usage:
 
Here is a simple example of its usage:
Line 10: Line 11:
 
'''You type:'''
 
'''You type:'''
  
<tt><nowiki>{{LinkCatagolue|xs4_33|patternname=Block}}</nowiki></tt>
+
<tt><nowiki>{{LinkCatagolue|code=xs4_33|patternname=Block}}</nowiki></tt>
  
 
'''You see:'''
 
'''You see:'''
  
* [https://catagolue.appspot.com/object/xs4_33/b3s23 Block] at Adam P. Goucher's [[Catagolue]]
+
* [https://catagolue.appspot.com/object/xs4_33/b3s23 Block] at [[Adam P. Goucher]]'s [[Catagolue]]
  
== See also ==
+
'''You type:'''
 +
 
 +
<tt><nowiki>{{LinkCatagolue|code=xs4_33|style=brief}}</nowiki></tt>
 +
 
 +
'''You see:'''
 +
 
 +
'''[[Catagolue]]''': [https://catagolue.appspot.com/object/xs4_33/b3s23/ here]
 +
 
 +
'''You type:'''
 +
 
 +
<tt><nowiki>{{LinkCatagolue|code=xs4_33|style=raw}}</nowiki></tt>
 +
 
 +
'''You see:'''
  
 +
[https://catagolue.appspot.com/object/xs4_33/b3s23/ xs4_33]
 +
 +
==See also==
 +
*[[:Category:Pages_using_the_LinkCatagolue_template_without_a_code|List of pages using the LinkCatagolue template without a code]]
 
{{ListOfLinkTemplates}}
 
{{ListOfLinkTemplates}}
 +
 
</noinclude>
 
</noinclude>

Latest revision as of 00:34, 3 August 2019

This is a template for including links to Adam P. Goucher's Catagolue in the "External Links" section of an article. It can take four parameters:

  • code (mandatory), which specifies the extended Wechsler code of the object linked to;
  • rule, which specifies the rulestring to use (default b3s23);
  • patternname, which specifies the name of the pattern as it will appear in the link text (default: name of the current article for style=listitem; "here" for style=brief; code for style=raw);
  • format, which specifies the code's format (format=extended, format=pseudo-object, format=linear growth, format=long-lived pattern, or leave out for regular apgcodes).
  • style, which specifies how to format the link (style=listitem, style=brief or style=raw; default: listitem)

Here is a simple example of its usage:

You type:

{{LinkCatagolue|code=xs4_33|patternname=Block}}

You see:

You type:

{{LinkCatagolue|code=xs4_33|style=brief}}

You see:

Catagolue: here

You type:

{{LinkCatagolue|code=xs4_33|style=raw}}

You see:

xs4_33

See also

External link templates