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