Difference between revisions of "Template:ocl/doc"
Jump to navigation
Jump to search
(→Usage) |
|||
| (10 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
A small template for in-line linking to OpenCorporates. | A small template for in-line linking to OpenCorporates. | ||
| − | + | There are three modes of operation; with each, the link is passed as the first parameter. | |
| − | <tt><nowiki>{{ocl|url | + | * <tt><nowiki>{{ocl|https://url/to/opencorporates/page}}</nowiki></tt>, gives: {{ocl|https://url/to/opencorporates/page}} |
| − | + | The image can be optionally rendered with <tt><nowiki><sup>...</sup></nowiki></tt>: | |
| − | sup | + | * <tt><nowiki>{{ocl|https://url/to/opencorporates/page|sup}}</nowiki></tt>, gives: {{ocl|https://url/to/opencorporates/page|sup}} |
| − | + | Alternatively, text can be passed as a link: | |
| − | <sup> | + | * <tt><nowiki>{{ocl|https://url/to/opencorporates/page|link|Company Name Ltd}}</nowiki></tt>, gives: {{ocl|https://url/to/opencorporates/page|link|Company Name Ltd}} |
| − | + | {{hline}} | |
| − | {{ | + | <span class="plainlinks">[https://www/x/ Company Name Ltd]</span><sup>[[File:OpenCorporates-sm.svg|12x10px]]</sup> |
| − | + | <includeonly>[[Category:WikiCorporates templates]]</includeonly> | |
| − | |||
| − | <includeonly>[[Category: | ||
Latest revision as of 21:57, 6 June 2020
Usage
A small template for in-line linking to OpenCorporates.
There are three modes of operation; with each, the link is passed as the first parameter.
The image can be optionally rendered with <sup>...</sup>:
Alternatively, text can be passed as a link:
- {{ocl|https://url/to/opencorporates/page|link|Company Name Ltd}}, gives: Company Name Ltd
