Difference between revisions of "Template:picl"

From WikiCorporates
Jump to navigation Jump to search
Line 1: Line 1:
 
{{#switch:{{{pic}}}
 
{{#switch:{{{pic}}}
 
|wpl={{wpl|{{{1}}}|{{{2|}}}}}
 
|wpl={{wpl|{{{1}}}|{{{2|}}}}}
−
|ocl={{ocl|{{{1}}}|link|{{{2|}}}}}
+
|ocl={{ocl|{{{1}}}|{{{2|}}}|{{{3|}}}}}
 
|wbl={{wbl|{{{1}}}|{{{2|}}}}}
 
|wbl={{wbl|{{{1}}}|{{{2|}}}}}
 
|pbl=<span class="plainlinks">[http://powerbase.info/index.php/{{{1}}} <span style="color:#477979 !important;">{{#replace:{{#replace:{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}|_|<nowiki> </nowiki> <nowiki> </nowiki>}}|#|<nowiki> </nowiki> § <nowiki> </nowiki>}}</span>]{{{3|}}}<sup>[[File:Powerbase-graphic.svg|12px]]</sup></span>
 
|pbl=<span class="plainlinks">[http://powerbase.info/index.php/{{{1}}} <span style="color:#477979 !important;">{{#replace:{{#replace:{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}|_|<nowiki> </nowiki> <nowiki> </nowiki>}}|#|<nowiki> </nowiki> § <nowiki> </nowiki>}}</span>]{{{3|}}}<sup>[[File:Powerbase-graphic.svg|12px]]</sup></span>

Revision as of 02:23, 1 February 2021

No such option "{{{pic}}}"in switch.

[edit] Documentation

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|page name|Text}} TextWikipedia-W.svg
  • {{pbl|page_name|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|wpl|page_name|Text}} No such option "{{{pic}}}"in switch.
  • {{picl|pbl|page_name|Text}} No such option "{{{pic}}}"in switch.
  • {{picl|wbl|http://path/to/url|Text}} No such option "{{{pic}}}"in switch.
  • {{picl|ocl|http://path/to/url|Text}} No such option "{{{pic}}}"in switch.

Additionally:

  • Grace's Guide: {{picl|ggl|page_name|page_name2}} No such option "{{{pic}}}"in switch.
  • Or {{picl|ggl|page_name}} No such option "{{{pic}}}"in switch.
  • {{picl|chk|http://path/to/url|Text}} No such option "{{{pic}}}"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.