Difference between revisions of "Template:Cached Copy"

From OpenMedia
Jump to: navigation, search
Line 1: Line 1:
<table cellspacing="4" cellpadding="4" style="margin:1em 0; width:99%; font-size:100%; background-color:#FFFFEE; border-style:solid; border-color:#FF4020; border-width: 2px; clear: both; position:relative; text-align:left;" width="99%"><tr><td>This media item is originally from ''{{{source|The source is missing!}}}''; it was copied to a local repository as a caching mechanism to speed up page rendering and to prevent links to break when media items are renamed on commons. For a full list of earlier authors and contributors please refer to the ''[{{{source|The source is missing!}}}#filehistory file version history]'' and the ''[{{{creators|The creators is missing!}}} metadata version history]'' in the repository from which this media item has been copied.
+
<noinclude>
 +
This template is meant to display data on an image copied from Wikipedia or Wikimedia Commons. It produces a red-bordered box with the following parameters (<font color='blue'>marked in blue</font>):<br/>
 +
<table cellspacing="4" cellpadding="4" style="margin:1em 0; width:99%; font-size:100%; background-color:#FFFFEE; border-style:solid; border-color:#FF4020; border-width: 2px; clear: both; position:relative; text-align:left;" width="99%"><tr><td>This media item is originally from '''''<font color='blue'>(source = file URL)</font>'''''; it was copied to a local repository as a caching mechanism to speed up page rendering and to prevent links to break when media items are renamed on commons. For a full list of earlier authors and contributors please refer to the ['''''<font color='blue'>(source = file URL)</font>'''#filehistory file version history''] and the ['''''<font color='blue'>(creators = meta data URL)</font>''' metadata version history''] in the repository from which this media item has been copied.<br/>
 +
 
 +
'''Below you find the original information from the metadata page at the time of copying (<font color='blue'>time or date</font>):'''</td></tr></table>
 +
 
 +
The 2 parameters '''creators''' and '''time''' are optional. Call the template in the follwing format:
 +
<pre>
 +
{{Cached Copy
 +
|source=
 +
|creators=
 +
|time=
 +
}}
 +
</pre>
 +
 
 +
Click to the edit tab to see the script of the template. The use of the template should be followed by a copy of the meta data.
 +
</noinclude><includeonly><table cellspacing="4" cellpadding="4" style="margin:1em 0; width:99%; font-size:100%; background-color:#FFFFEE; border-style:solid; border-color:#FF4020; border-width: 2px; clear: both; position:relative; text-align:left;" width="99%"><tr><td>This media item is originally from ''{{{source|The source is missing!}}}''; it was copied to a local repository as a caching mechanism to speed up page rendering and to prevent links to break when media items are renamed on commons. For a full list of earlier authors and contributors please refer to the ''[{{{source|The source is missing!}}}#filehistory file version history]'' {{#if:{{{creators|}}}|and the ''[{{{creators}}} metadata version history]''|(no meta data available)}} in the repository from which this media item has been copied.
  
 
'''Below you find the original information from the metadata page at the time of copying{{#if:{{{time|}}}|&#32;({{{time}}})}}:'''
 
'''Below you find the original information from the metadata page at the time of copying{{#if:{{{time|}}}|&#32;({{{time}}})}}:'''
</td></tr></table><includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:Category}}||[[Category:Cached Commons Images]]}}
+
</td></tr></table><includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:Category}}||[[Category:Cached Commons Images]]}}</includeonly>

Revision as of 12:51, 20 July 2010

This template is meant to display data on an image copied from Wikipedia or Wikimedia Commons. It produces a red-bordered box with the following parameters (marked in blue):

This media item is originally from (source = file URL); it was copied to a local repository as a caching mechanism to speed up page rendering and to prevent links to break when media items are renamed on commons. For a full list of earlier authors and contributors please refer to the [(source = file URL)#filehistory file version history] and the [(creators = meta data URL) metadata version history] in the repository from which this media item has been copied.
Below you find the original information from the metadata page at the time of copying (time or date):

The 2 parameters creators and time are optional. Call the template in the follwing format:

{{Cached Copy
|source=
|creators=
|time=
}}

Click to the edit tab to see the script of the template. The use of the template should be followed by a copy of the meta data.