Jump to content

Template:Copyright: Difference between revisions

From Continuum Universes Wiki
Line 14: Line 14:
<!-- If name is missing, error out -->
<!-- If name is missing, error out -->
{{#switch: {{#if:{{{name|{{{2|}}}}}}|1|0}}
{{#switch: {{#if:{{{name|{{{2|}}}}}}|1|0}}
  | 0 = <span class="copyright">Copyright error: missing name.</span>
  | 0 = <span class="errpr">Copyright error: missing name.</span>
  | 1 =
  | 1 =
   <!-- If year is omitted, use current year -->
   <!-- If year is omitted, use current year -->

Revision as of 17:49, 3 October 2025

This template prints a copyright notice with sane year logic.

Usage:

{{Copyright|year=2021|name=Jensen Saga Studio}}
{{Copyright|2021|Jensen Saga Studio}}         <!-- positional works too -->
{{Copyright|name=Jensen Saga Studio}}         <!-- year omitted -> current year -->
{{Copyright|2026|name=Jensen Saga Studio}}    <!-- will give error if year is ahead of current -->

Examples

© 2021–2026 Jensen Saga Studio


© 2021–2026 Jensen Saga Studio


© 2026 Jensen Saga Studio