Difference between revisions of "Template:ocl/doc"
Jump to navigation
Jump to search
| 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/to/opencorporates/page}}</nowiki></tt>, gives: {{ocl|url/to/opencorporates/page}} | * <tt><nowiki>{{ocl|url/to/opencorporates/page}}</nowiki></tt>, gives: {{ocl|url/to/opencorporates/page}} | ||
| − | + | 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|url/to/opencorporates/page|sup=1}}</nowiki></tt>, gives: {{ocl|url/to/opencorporates/page|sup}} |
| − | * <tt><nowiki>{{ocl|url/to/opencorporates/page|co=Company Name Ltd}}</nowiki></tt>, gives: | + | Alternatively, text can be passed as a link: |
| − | + | * <tt><nowiki>{{ocl|url/to/opencorporates/page|co=Company Name Ltd}}</nowiki></tt>, gives: <span class="plainlinks">[https://www/x/ Company Name]</span><sup>[[File:OpenCorporates-sm.svg|12x10px]]</sup> | |
<includeonly>[[Category:WikiCorporates templates]]</includeonly> | <includeonly>[[Category:WikiCorporates templates]]</includeonly> | ||
Revision as of 19:45, 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|url/to/opencorporates/page|co=Company Name Ltd}}, gives: Company Name
