test-eimage

Z thewoodcraft.org
Verze z 17. 4. 2023, 15:45, kterou vytvořil Keny (diskuse | příspěvky) (→‎#einfo)
(rozdíl) ← Starší verze | zobrazit aktuální verzi (rozdíl) | Novější verze → (rozdíl)

Special:EImagePages

List of the clips used by this page:

7d87a68e4b31d954aa18050514c0c44ea370fd99

1d8f3de5e355f7507cd776a071f8c967fb7dc7ec

f7ff3d5a380f0f42d5810871007681aecb1b44f9

e96149f4aefd6874ba73b455ec5240ea134767fe

bcd2287cb6b5f9d4d43a57f96de390bab7776dfc

dfd8eb21bf80a371aae56961a2a6b48fc23bdcc5

0289f52127a01643b9278866bd640bf5e5547ba8

4f976f5c717cfd539f07cad27a20fa43e9a2f10c

a655661ea40f67357656280c335fa3daa8240e94

List of the clips used by page Pískoviště:

7d87a68e4b31d954aa18050514c0c44ea370fd99

#einfo

This function is alternative for early used info function and propose get more over info about files, and clips. You can use it to get info about parameters which was used to the clip create. Or to get page list, where is the clip used, for use in template. Similary include Special:EImagePages functioned.

curid

Get info about this page (alternative to {{PAGEID}}) : 32548 {{#einfo:}}

Title and namespace page by curid

Reverse info about page, identified by curid (not alternative for it) {{#einfo:32548}}:

32548;title=test-eimage;namespaceid=0;redirect=0;size=8273;content_model=wikitext;lang=

Info about clips

Test string id

'94ea185a9a88637bbb3b447d6167255a8574f4d9' is clip eid, or checksum?


Print exif tags from original source

Every clip contained exif tags, for identify origin. But exif tags from the original source EImage stored too. Here is example using #einfo to get it, for using as the attributes of template. It's demonstrated on the clip, which is identified by eid sha1 checkum:



Print basic parameters of the clip

Get parameters used for identify the clip



Identify unknown strings

What is 'a185a9a88637bbb3b447d61672'?


#eibox

The #eibox function replaces the {{block}} template. For comparison, see the example code and its interpretation on the page. The first example demonstrates the use of the template:

Content of the right box
Content of the left box.

Text, which is placed between red and blue box…

Text which continued after the green box.

{{block|30|right|color=tomato|Content of the right box}}{{block|30|left|color=lightskyblue|Content of the left box.}}
Text, which is placed between red and blue box…
{{block|100|color=green|}}
Text which continued after the green box.

Note that the green box is not displayed. This is because it has no content. Here is interpretation wikicode in HTML:

<div style="background: tomato;width: 30%;float: right; margin: 0px 0 0px 0px;">Content of the right box</div>
<div style="background: lightskyblue;width: 30%;float: left; margin: 0px 0px 0px 0;">Content of the left box.</div>
<p>Text, which is placed between red and blue box…
</p>
<div style="width: 100%;background: green;"></div>
<p>Text which continued after the green box.
</p>

#eibox do it same. The difference is that code processing occurs at a lower level. While the template is interpreted by the MediaWiki system, the extension functionality is handled at the PHP code level.

Content of the right box
Content of the left box.

Text, which is placed between red and blue box…

Text which continued after the green box.

{{#eibox:none|30|right|color=tomato|Content of the right box}}{{#eibox:none|30|left|color=lightskyblue|Content of the left box.}}
Text, which is placed between red and blue box…
{{#eibox:none|100|color=green|}}
Text which continued after the green box.

In HTML code…

<div class="eibox" style="width:30%;background:tomato;float:right;">Content of the right box</div><div class="eibox" style="width:30%;background:lightskyblue;float:left;">Content of the left box.</div>
<p>Text, which is placed between red and blue box…
</p>
<div class="eibox" style="width:100%;background:green;"></div>
<p>Text which continued after the green box.
</p>

But #eibox has more features, which I will demonstrate in the next subsections.

Using clip, or another image as background of the box

{{#eibox:/eimage/thumbs/94ea185a9a88637bbb3b447d6167255a8574f4d9.png
|80
|padding = 0 0 0 200px
|title = Absolute path of the thumbnail
}}
{{#eibox:94ea185a9a88637bbb3b447d6167255a8574f4d9
|80
|padding = 0 0 0 200px
|title = Thumbnail identify 'ei_file' hash, see [[Special:EImagePages]]
}}
{{#eibox:https://www.thewoodcraft.org/wiki/images/eimage/thumbs/94ea185a9a88637bbb3b447d6167255a8574f4d9.png
|80
|padding = 0 0 0 200px
|title = Thumbnail is identify by full URL
}}
{{#eibox:4f976f5c717cfd539f07cad27a20fa43e9a2f10c
|50
|padding = 0 0 0 50%
|title = Eid hash ('ei_eid') identify the clip file see ([[Special:EImagePages]])
}}

#eimg



Nastavení externích repozitářů. Tento blok by měl být nalevo
 // Wikimedia Meta
 

 // Wikimedia Commons
 $wgForeignFileRepos[] = [
 	'class' => ForeignAPIRepo::class,
 	'name' => 'wikimediacommons',
 	'apibase' => 'https://commons.wikimedia.org/w/api.php',
 	'url' => 'https://upload.wikimedia.org/wikipedia/commons',
 	'thumbUrl' => 'https://upload.wikimedia.org/wikipedia/commons/thumb',
 	'hashLevels' => 2,
 	'transformVia404' => true,
 	'fetchDescription' => true,
 	'descriptionCacheExpiry' => 43200,
 	'apiThumbCacheExpiry' => 0,
 ];