Difference between revisions of "Template:Bought-in"

From wikiscot
Jump to navigation Jump to search
m
m (Made parameter names more intuitive, clarified the instructions.)
Line 2: Line 2:
 
----
 
----
  
When using this template the following parameters must be defined:
+
When using this template, follow this scheme:
* Author: the author of the article.
 
* Accounts: the social media accounts associated with the author.
 
* Cost: <q>A fee</q> or <q>No fee</q>
 
  
 +
<nowiki>{{Bought-in|Author=Herman Melville|Links=http://mystuff.com, @Moby|Fee=No fee}}</nowiki>
  
<!-- the following code allows you to display a different result if protextion expires in infinity:
+
where:
 +
 
 +
* 'Author' is the author of the article;
 +
* 'Links' are the websites and social media accounts associated with the author;
 +
* 'Fee' is either <q>A fee</q> or <q>No fee</q>
 +
 
 +
 
 +
<!-- the following code allows you to display a different result if protection expires in infinity:
 
{{#ifeq: {{PROTECTIONEXPIRY:edit}} | infinity ||  The text is locked until {{#sub:{{PROTECTIONEXPIRY:edit}}|6|2}}/{{#sub:{{PROTECTIONEXPIRY:edit}}|4|2}}/{{#sub:{{PROTECTIONEXPIRY:edit}}|2|2}}}}
 
{{#ifeq: {{PROTECTIONEXPIRY:edit}} | infinity ||  The text is locked until {{#sub:{{PROTECTIONEXPIRY:edit}}|6|2}}/{{#sub:{{PROTECTIONEXPIRY:edit}}|4|2}}/{{#sub:{{PROTECTIONEXPIRY:edit}}|2|2}}}}
  
Line 19: Line 24:
  
 
<blockquote style="width: 60%; color: mediumblue; background: yellow; border: 1px solid black; margin-left: auto; margin-right: auto; padding: 1em">
 
<blockquote style="width: 60%; color: mediumblue; background: yellow; border: 1px solid black; margin-left: auto; margin-right: auto; padding: 1em">
This article has been commissioned by <strong>Wikiscot</strong> from <strong>{{{Author}}}</strong> at <strong>{{{Accounts}}}</strong>{{#ifeq: {{PROTECTIONEXPIRY:edit}} | infinity |. |. The text is locked until {{#sub:{{PROTECTIONEXPIRY:edit}}|6|2}}/{{#sub:{{PROTECTIONEXPIRY:edit}}|4|2}}/{{#sub:{{PROTECTIONEXPIRY:edit}}|2|2}}.}}  {{{Cost}}} was paid.
+
This article was commissioned by <strong>Wikiscot</strong> from <strong>{{{Author}}}</strong> at <strong>{{{Links}}}</strong>{{#ifeq: {{PROTECTIONEXPIRY:edit}} | infinity |. |. The text is locked until {{#sub:{{PROTECTIONEXPIRY:edit}}|6|2}}/{{#sub:{{PROTECTIONEXPIRY:edit}}|4|2}}/{{#sub:{{PROTECTIONEXPIRY:edit}}|2|2}}.}}  {{{Fee}}} was paid.
 
</blockquote>
 
</blockquote>

Revision as of 19:24, 22 November 2019


When using this template, follow this scheme:

{{Bought-in|Author=Herman Melville|Links=http://mystuff.com, @Moby|Fee=No fee}}

where:

  • 'Author' is the author of the article;
  • 'Links' are the websites and social media accounts associated with the author;
  • 'Fee' is either A fee or No fee




This article was commissioned by Wikiscot from {{{Author}}} at {{{Links}}}. {{{Fee}}} was paid.