Difference between revisions of "Template:Bought-in"

From wikiscot
Jump to navigation Jump to search
m
m (Centered the text.)
 
(13 intermediate revisions by the same user not shown)
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>
 +
 +
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}}}}
 +
 +
The code that was there to produce formatted date string:
 +
The text is locked until {{#sub:{{PROTECTIONEXPIRY:edit}}|6|2}}/{{#sub:{{PROTECTIONEXPIRY:edit}}|4|2}}/{{#sub:{{PROTECTIONEXPIRY:edit}}|2|2}}.
 +
 +
-->
 
----
 
----
 
</noinclude>
 
</noinclude>
<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>. The text is locked until {{PROTECTIONEXPIRY:edit}} {{#timel: j/n/y|PROTECTIONEXPIRY}}. {{{Cost}}} was paid.
+
<blockquote style="width: 60%; color: mediumblue; text-align: center; background: yellow; border: 1px solid black; margin-left: auto; margin-right: auto; padding: 1em">
 +
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>

Latest revision as of 19:34, 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.