Template:Unsplash: Difference between revisions

From railML 3 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
No edit summary
Line 1: Line 1:
<includeonly>'''{{external|{{{3|https://unsplash.com/@{{{2}}}}}}|© {{{2|{{FIXME}}}}}|mode=silent}}''' ''({{external|{{#ifeq:{{#sub:{{{1}}}|4}}|http|{{{1}}}|https://unsplash.com/photos/{{{1}}}}}|Source|mode=silent}}; {{external|https://unsplash.com/license|Unsplash License|mode=silent}})''</includeonly><noinclude>
<includeonly>'''{{external|{{{3|https://unsplash.com/@{{{2}}}}}}|© {{{name|{{{2|{{FIXME}}}}}}}}|mode=silent}}''' ''({{external|{{#ifeq:{{#sub:{{{1}}}|4}}|http|{{{1}}}|https://unsplash.com/photos/{{{1}}}}}|Source|mode=silent}}; {{external|https://unsplash.com/license|Unsplash License|mode=silent}})''</includeonly><noinclude>
==Usage==
==Usage==
Template to display uniform copyright information in case of pictures from {{wiki|unsplash}}.
Template to display uniform copyright information in case of pictures from {{wiki|unsplash}}.

Revision as of 11:17, 13 May 2024

Usage

Template to display uniform copyright information in case of pictures from unsplash (Wiki banner.png).

As the template is rather complex, it can be included in Template:Licence

Arguments

  • 1: Either link to the image source or file id
  • 2: Creator's unsplash id
  • 3 (optional): Link to creator's page
  • name (optional): Creator's displaid name, if different from id

Example

{{unsplash|https://unsplash.com/photos/7o4Du7K6wII|DaYsO}}

delivers:

© DaYsO (Source; Unsplash License)

{{unsplash|7o4Du7K6wII|DaYsO}}

delivers:

© DaYsO (Source; Unsplash License)