Jump to content

Template:Patent: Difference between revisions

From Caseyverse Wiki
Created page with "{{#if:{{{patent|}}} | [https://patents.google.com/patent/{{{patent}}} {{{patent}}}]{{#if:{{{expired|yes}}}| (expired)|}} | <span style="color:red;">Error: No patent code provided.</span> }} <noinclude> == Documentation == This template creates a hyperlink to a Google Patents page based on a provided patent code, with an optional indication if the patent is expired. === Usage === To use this template, enter the patent code in the `patent` parameter. The `expired` parame..."
 
mNo edit summary
 
Line 1: Line 1:
{{#if:{{{patent|}}}
{{#if:{{{patent|}}}
| [https://patents.google.com/patent/{{{patent}}} {{{patent}}}]{{#if:{{{expired|yes}}}| (expired)|}}
| [https://patents.google.com/patent/{{{patent}}} {{{patent}}}]
| <span style="color:red;">Error: No patent code provided.</span>
| <span style="color:red;">Error: No patent code provided.</span>
}}
}}
Line 6: Line 6:
<noinclude>
<noinclude>
== Documentation ==
== Documentation ==
This template creates a hyperlink to a Google Patents page based on a provided patent code, with an optional indication if the patent is expired.
This template creates a hyperlink to a Google Patents page based on a provided patent code.


=== Usage ===
=== Usage ===
To use this template, enter the patent code in the `patent` parameter. The `expired` parameter can be used to indicate whether the patent is expired (default is "yes"). Example usage:
To use this template, enter the patent code in the `patent` parameter. Example usage:


  <code><nowiki>{{Patent|patent=USD486486|expired=no}}</nowiki></code>
  <code><nowiki>{{Patent|patent=USD486486}}</nowiki></code>


This will generate a link that looks like this:
This will generate a link that looks like this:


* [https://patents.google.com/patent/USD486486 USD486486]
* {{Patent|patent=USD486486}}


Or, if `expired` is left as "yes" (default):
If the patent code is not provided, an error message will be shown in red.
 
* [https://patents.google.com/patent/USD486486 USD486486] (expired)


=== Parameters ===
=== Parameters ===
* `patent` – The patent code (e.g., `USD486486`). This code will be linked to its Google Patents page.
* `patent` – The patent code (e.g., `USD486486`). This code will be linked to its Google Patents page.
* `expired` – Optional. Indicates if the patent is expired. Default is "yes," which appends "(expired)" to the link. Set to "no" to omit this.
=== Notes ===
* If the `patent` parameter is not provided, an error message in red will display instead of the link.
</noinclude>
</noinclude>

Latest revision as of 02:37, 13 November 2024

Error: No patent code provided.


Documentation

[edit source]

This template creates a hyperlink to a Google Patents page based on a provided patent code.

To use this template, enter the patent code in the `patent` parameter. Example usage:

{{Patent|patent=USD486486}}

This will generate a link that looks like this:


If the patent code is not provided, an error message will be shown in red.

Parameters

[edit source]
  • `patent` – The patent code (e.g., `USD486486`). This code will be linked to its Google Patents page.