Template:Shop item: Difference between revisions

From Hackers & Designers
No edit summary
Tag: Manual revert
No edit summary
Line 6: Line 6:
|publication_name=
|publication_name=
|cover_image=
|cover_image=
|buy_link=
|buy_link_text=
|buy_link_text=
|buy_link_email=
|buy_link_subject=
|buy_link_body=
|sold_out=
}}
}}
</pre>
</pre>
Line 14: Line 17:


<includeonly>
<includeonly>
{{#if: {{{buy_link|}}} | yes | no }}
<li class="publication publishing-item">
<li class="publication publishing-item">
     <p class="title">[[{{{publication_name}}}]]</p>
     <p class="title">[[{{{publication_name}}}]]</p>
     <p class="cover image">[[{{{cover_image}}}|thumb]]</p>
     <p class="cover image">[[{{{cover_image}}}|thumb]]</p>
     <p class="buying">
     <p class="buying">
       {{#if: {{{buy_link|}}} | [{{{buy_link}}} {{{buy_link_text}}}] | [[{{{publication_name}}}|{{{buy_link_text}}}]] }}
       {{#if: {{{sold_out|}}}  
        | [[{{{publication_name}}}|{{{buy_link_text}}}]]
        | [mailto:{{{buy_link_email|info@hackersanddesigners.nl}}}?subject={{#urlencode:{{{buy_link_subject}}}}}&body={{#urlencode:{{{buy_link_body}}}}} {{{buy_link_text}}}]  
      }}
     </p>
     </p>
</li>
</li>
</includeonly>
</includeonly>

Revision as of 15:12, 30 October 2024

This is the "Shop item" template. It should be called in the following format:

{{Shop item
|publication_name=
|cover_image=
|buy_link_text=
|buy_link_email=
|buy_link_subject=
|buy_link_body=
|sold_out=
}}

Edit the page to see the template text.