Difference between revisions of "Template:picl/doc"

From WikiCorporates
Jump to navigation Jump to search
Line 8: Line 8:
 
* <tt><nowiki>{{ocl|http://path/to/url|Text}}</nowiki></tt> {{ocl|http://path/to/url|Text}}
 
* <tt><nowiki>{{ocl|http://path/to/url|Text}}</nowiki></tt> {{ocl|http://path/to/url|Text}}
 
by instead calling:
 
by instead calling:
−
* <tt><nowiki>{{piclink|http://path/to/url|Text|pic=wpl}}</nowiki></tt> {{piclink|http://path/to/url|Text|pic=wpl}}
+
* <tt><nowiki>{{picl|http://path/to/url|Text|pic=wpl}}</nowiki></tt> {{picl|http://path/to/url|Text|pic=wpl}}
−
* <tt><nowiki>{{piclink|http://path/to/url|Text|pic=pbl}}</nowiki></tt> {{piclink|http://path/to/url|Text|pic=pbl}}
+
* <tt><nowiki>{{picl|http://path/to/url|Text|pic=pbl}}</nowiki></tt> {{picl|http://path/to/url|Text|pic=pbl}}
−
* <tt><nowiki>{{piclink|http://path/to/url|Text|pic=wbl}}</nowiki></tt> {{piclink|http://path/to/url|Text|pic=wbl}}
+
* <tt><nowiki>{{picl|http://path/to/url|Text|pic=wbl}}</nowiki></tt> {{picl|http://path/to/url|Text|pic=wbl}}
−
* <tt><nowiki>{{piclink|http://path/to/url|Text|pic=ocl}}</nowiki></tt> {{piclink|http://path/to/url|Text|pic=ocl}}
+
* <tt><nowiki>{{picl|http://path/to/url|Text|pic=ocl}}</nowiki></tt> {{picl|http://path/to/url|Text|pic=ocl}}
  
 
Additionally, there are some new pics:
 
Additionally, there are some new pics:
−
* <tt><nowiki>{{piclink|http://path/to/url|Text|pic=chk}}</nowiki></tt> {{piclink|http://path/to/url|Text|pic=chk}}
+
* <tt><nowiki>{{picl|http://path/to/url|Text|pic=chk}}</nowiki></tt> {{picl|http://path/to/url|Text|pic=chk}}
−
* <tt><nowiki>{{piclink|http://path/to/url|Text|pic=ggl}}</nowiki></tt> {{piclink|http://path/to/url|Text|pic=ggl}}
+
* <tt><nowiki>{{picl|http://path/to/url|Text|pic=ggl}}</nowiki></tt> {{picl|http://path/to/url|Text|pic=ggl}}
  
 
Replace the old templates with this one whenever possible; over time there will be fewer and fewer use cases, and eventually they can be deleted.
 
Replace the old templates with this one whenever possible; over time there will be fewer and fewer use cases, and eventually they can be deleted.
  
 
<includeonly>[[Category:WikiCorporates templates]]</includeonly>
 
<includeonly>[[Category:WikiCorporates templates]]</includeonly>

Revision as of 18:05, 31 January 2021

There seem to be an increasing plethora of tiny templates, all of which present a url with a small pic. This template should be used in place of:

  • {{wpl|http://path/to/url|Text}} TextWikipedia-W.svg
  • {{pbl|http://path/to/url|Text}} TextPowerbase-graphic.svg
  • {{wbl|http://path/to/url|Text}} TextArchive-org-sm.svg
  • {{ocl|http://path/to/url|Text}} OpenCorporates-sm.svg

by instead calling:

  • {{picl|http://path/to/url|Text|pic=wpl}} No such option "wpl"in switch.
  • {{picl|http://path/to/url|Text|pic=pbl}} No such option "pbl"in switch.
  • {{picl|http://path/to/url|Text|pic=wbl}} No such option "wbl"in switch.
  • {{picl|http://path/to/url|Text|pic=ocl}} No such option "ocl"in switch.

Additionally, there are some new pics:

  • {{picl|http://path/to/url|Text|pic=chk}} No such option "chk"in switch.
  • {{picl|http://path/to/url|Text|pic=ggl}} No such option "ggl"in switch.

Replace the old templates with this one whenever possible; over time there will be fewer and fewer use cases, and eventually they can be deleted.