Difference between revisions of "Template:picl"
| Line 1: | Line 1: | ||
| + | {{#switch:{{{1}}} | ||
| + | |wpl={{wpl|{{{2}}}|{{{3|}}}}} | ||
| + | |ocl={{ocl|{{{2}}}|{{{3|}}}|{{{4|}}}}} | ||
| + | |wbl={{wbl|{{{2}}}|{{{3|}}}}} | ||
| + | |pbl=<span class="plainlinks">[http://powerbase.info/index.php/{{{2}}} <span style="color:#477979 !important;">{{#replace:{{#replace:{{#if:{{{3|}}}|{{{3}}}|{{{1}}}}}|_|<nowiki> </nowiki> <nowiki> </nowiki>}}|#|<nowiki> </nowiki> § <nowiki> </nowiki>}}</span>]{{{4|}}}<sup>[[File:Powerbase-graphic.svg|12px]]</sup></span> | ||
| + | |ggl=<span class="plainlinks">[https://www.gracesguide.co.uk/{{{2}}} <span style="color:#477979 !important;">{{#replace:{{#replace:{{#if:{{{3|}}}|{{{3}}}|{{{2}}}}}|_|<nowiki> </nowiki> <nowiki> </nowiki>}}|#|<nowiki> </nowiki> § <nowiki> </nowiki>}}</span>] <sup>[[File:Graces-Guide-sm.svg|14x9px]]</sup></span> | ||
| + | |chk=<span class="plainlinks">[{{{2}}} {{{3}}}]</span> <sup>[[File:Deals-Tick.svg|11x10px]]</sup> | ||
| + | |#default=No such option "{{{pic}}}"in switch. | ||
| + | }}<noinclude>{{doc2}}</noinclude> | ||
| + | <!-- | ||
{{#switch:{{{pic}}} | {{#switch:{{{pic}}} | ||
|wpl={{wpl|{{{1}}}|{{{2|}}}}} | |wpl={{wpl|{{{1}}}|{{{2|}}}}} | ||
| Line 6: | Line 16: | ||
|ggl=<span class="plainlinks">[https://www.gracesguide.co.uk/{{{1}}} <span style="color:#477979 !important;">{{#replace:{{#replace:{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}|_|<nowiki> </nowiki> <nowiki> </nowiki>}}|#|<nowiki> </nowiki> § <nowiki> </nowiki>}}</span>] <sup>[[File:Graces-Guide-sm.svg|14x9px]]</sup></span> | |ggl=<span class="plainlinks">[https://www.gracesguide.co.uk/{{{1}}} <span style="color:#477979 !important;">{{#replace:{{#replace:{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}|_|<nowiki> </nowiki> <nowiki> </nowiki>}}|#|<nowiki> </nowiki> § <nowiki> </nowiki>}}</span>] <sup>[[File:Graces-Guide-sm.svg|14x9px]]</sup></span> | ||
|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 13:18, 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}} 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}} Text

}}
- {{picl|pbl|page_name|Text}} Text

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

}}
}}
Additionally:
- Grace's Guide: {{picl|ggl|page_name|page_name2}} page name2

}}
- Or {{picl|ggl|page_name}} page name

}}
- {{picl|chk|http://path/to/url|Text}} Text

}}
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.
}}
[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}} 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}} Text

}}
- {{picl|pbl|page_name|Text}} Text

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

}}
}}
Additionally:
- Grace's Guide: {{picl|ggl|page_name|page_name2}} page name2

}}
- Or {{picl|ggl|page_name}} page name

}}
- {{picl|chk|http://path/to/url|Text}} Text

}}
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.