Difference between revisions of "Template:picl/doc"

From WikiCorporates
Jump to navigation Jump to search
Line 15: Line 15:
 
Additionally, there are some new pics:
 
Additionally, there are some new pics:
 
* <tt><nowiki>{{picl|http://path/to/url|Text|pic=chk}}</nowiki></tt> {{picl|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>{{picl|http://path/to/url|Text|pic=ggl}}</nowiki></tt> {{picl|http://path/to/url|Text|pic=ggl}}
+
* <tt><nowiki>{{picl|page_name|Text|pic=ggl}}</nowiki></tt> {{picl|page_name|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:07, 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|page_name|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.