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|{{{1|{{FIXME}}}}}|Source|mode=silent}}; {{external|https://unsplash.com/license|Unsplash License|mode=silent}})''</includeonly><noinclude>
<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>
==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}}.
Line 6: Line 6:


==Arguments==
==Arguments==
*1: Link to the image source
*1: Either link to the image source or file id
*2: Creator
*2: Creator
*3 (optional): Link to creator's page
*3 (optional): Link to creator's page
Line 14: Line 14:


{{unsplash|https://unsplash.com/photos/7o4Du7K6wII|DaYsO}}
{{unsplash|https://unsplash.com/photos/7o4Du7K6wII|DaYsO}}
<pre>{{unsplash|7o4Du7K6wII|DaYsO}}</pre>delivers:
{{unsplash|7o4Du7K6wII|DaYsO}}
</noinclude>
</noinclude>

Revision as of 10:49, 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
  • 3 (optional): Link to creator's page

Example

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

delivers:

© DaYsO (Source; Unsplash License)

{{unsplash|7o4Du7K6wII|DaYsO}}

delivers:

© DaYsO (Source; Unsplash License)