Difference between revisions of "Template:picl"
Jump to navigation
Jump to search
| Line 4: | Line 4: | ||
|ocl={{ocl|{{{1}}}|link|{{{2|}}}}} | |ocl={{ocl|{{{1}}}|link|{{{2|}}}}} | ||
|wbl={{wbl|{{{1}}}|{{{2|}}}}} | |wbl={{wbl|{{{1}}}|{{{2|}}}}} | ||
| − | |ggl=<span class="plainlinks">[https://www.gracesguide.co.uk/{{{1}}} {{{2}}}]</span><sup>[[File:Graces-Guide-sm.svg| | + | |ggl=<span class="plainlinks">[https://www.gracesguide.co.uk/{{{1}}} {{{2}}}]</span><sup>[[File:Graces-Guide-sm.svg|14x9px]]</sup> |
|chk=<span class="plainlinks">[{{{1}}} {{{2}}}]</span><sup>[[File:Deals-Tick.svg|11x10px]]</sup> | |chk=<span class="plainlinks">[{{{1}}} {{{2}}}]</span><sup>[[File:Deals-Tick.svg|11x10px]]</sup> | ||
|#default=No such option "{{{pic}}}"in switch. | |#default=No such option "{{{pic}}}"in switch. | ||
}}<noinclude>{{doc2}}</noinclude> | }}<noinclude>{{doc2}}</noinclude> | ||
Revision as of 18:06, 31 January 2021
No such option "{{{pic}}}"in switch.
[edit] Documentation
< Template:picl < doc
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}} Text

- {{pbl|page_name|Text}} Text

- {{wbl|http://path/to/url|Text}} Text

- {{ocl|http://path/to/url|Text}}

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.