Difference between revisions of "Template:ocl/doc"

From WikiCorporates
Jump to navigation Jump to search
(Created page with "=== Usage === A small template for in-line linking to OpenCorporates. The link is passed as the only parameter: <tt><nowiki>{{ocl|url-to-opencorporates-page}}</nowiki></tt>...")
 
 
(11 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.
  
−
The link is passed as the only 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>
+
* <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>:
−
<includeonly>[[Category:WikiPolitiks templates]]</includeonly>
+
* <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:
 +
* <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>

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.

  • {{ocl|https://url/to/opencorporates/page}}, gives: OpenCorporates-sm.svg

The image can be optionally rendered with <sup>...</sup>:

  • {{ocl|https://url/to/opencorporates/page|sup}}, gives: OpenCorporates-sm.svg

Alternatively, text can be passed as a link:

  • {{ocl|https://url/to/opencorporates/page|link|Company Name Ltd}}, gives: Company Name LtdOpenCorporates-sm.svg

Company Name LtdOpenCorporates-sm.svg