1
- {{ {{TNTN |Extension}}
1
+ {{TNT |Extension
2
2
|name = SpriteSheet
3
- |license = {{EL|LGPL3}}
3
+ |license = LGPL-3.0
4
4
|status = stable
5
5
|type = parser function
6
6
|author = Alexia E. Smith ([[User :Alexia E. Smith |Alexia E. Smith ]]), Hydra Wiki Platform Team
7
- |version = 1.1.5
8
- |update = 2016-11-07
9
- |mediawiki = 1.23 +
10
- |php = 5.5 +
11
- |download = {{ {{TNTN |GithubDownload}} |HydraWiki|SpriteSheet}}
7
+ |version = 1.2.0
8
+ |update = 2018-07-09
9
+ |mediawiki = 1.27 +
10
+ |php = 7.0 +
11
+ |download = {{TNT |GithubDownload|HydraWiki|SpriteSheet}}
12
12
|hook1 = ParserFirstCallInit
13
13
|hook2 = ImagePageShowTOC
14
14
|hook3 = ImageOpenShowImageInlineBefore
15
15
|hook4 = PageRenderingHash
16
16
|hook5 = LoadExtensionSchemaUpdates
17
- |description = Adds a parser functions called <tt >#sprite </tt > and <tt >#slice </tt > to display defined sections of an image without having to use an external editor.
17
+ |description = Adds a parser functions called <code >#sprite </code > and <code >#slice </code > to display defined sections of an image without having to use an external editor.
18
18
|example = [http://help.gamepedia.com/Extension:SpriteSheet/Example Gamepedia Help Wiki ]
19
19
}}
20
20
@@ -29,9 +29,9 @@ The '''SpriteSheet''' extension allows uploaded images to be divided into sprite
29
29
30
30
==Installation ==
31
31
32
- {{{{TNTN |ExtensionInstall}}
32
+ {{TNT |ExtensionInstall
33
33
|db-update= true
34
- |download-link=[https://github.com/HydraWiki/SpriteSheet/archive/v1.1.5 .zip Download ]}}
34
+ |download-link= [https://github.com/HydraWiki/SpriteSheet/archive/v1.2.0 .zip Download ]}}
35
35
36
36
==Configuration ==
37
37
There are two available rights that may be assigned to groups, 'edit_sprites' and 'spritesheet_rollback'. The 'edit_sprites' permission gives the ability to edit sprite sheets, sprites, slices, assign names, and delete. The 'spritesheet_rollback' allows the ability to rollback changes from the change log.
@@ -52,20 +52,20 @@ The #sprite tag format accepts X and Y coordinate positions to select a section
52
52
53
53
Basic Syntax:
54
54
55
- <pre><nowiki>{{#sprite:file=Example.png|column=0|row=0}}</nowiki></pre>
55
+ <pre><nowiki>{{#sprite:file=File: Example.png|column=0|row=0}}</nowiki></pre>
56
56
57
57
It can also be spaced across lines for readability:
58
58
59
59
<pre><nowiki>{{#sprite:
60
- file=Example.png
60
+ file=File: Example.png
61
61
|column=0
62
62
|row=0
63
63
}}</nowiki></pre>
64
64
65
65
With optional resize and link:
66
66
67
67
<pre><nowiki>{{#sprite:
68
- file=Example.png
68
+ file=File: Example.png
69
69
|column=0
70
70
|row=0
71
71
|resize=300
@@ -92,11 +92,11 @@ file=Example.png
92
92
:The Y Coordinate Position of the sprite to select. Coordinates use zero based numbering.
93
93
|-
94
94
| <code>resize </code>
95
- | '''Required:''' no, '''Default:''' <tt >null </tt >
95
+ | '''Required:''' no, '''Default:''' <code >null </code >
96
96
:Display size in pixel width of the sprite. Note: Will not resize larger than 100% of the original size.
97
97
|-
98
98
| <code>link </code>
99
- | '''Required:''' no, '''Default:''' <tt >null </tt >
99
+ | '''Required:''' no, '''Default:''' <code >null </code >
100
100
:Page name or external URL to have the sprite link to.
101
101
|}
102
102
@@ -139,11 +139,11 @@ file=File:Example.png
139
139
:The named sprite to load.
140
140
|-
141
141
| <code>resize </code>
142
- | '''Required:''' no, '''Default:''' <tt >none </tt >
142
+ | '''Required:''' no, '''Default:''' <code >none </code >
143
143
:Display size in pixel width of the sprite. Note: Will not resize larger than 100% of the original size.
144
144
|-
145
145
| <code>wikitext </code>
146
- | '''Required:''' yes, '''Default:''' <tt >none </tt >
146
+ | '''Required:''' yes, '''Default:''' <code >none </code >
147
147
:The wiki text to parse and display if the named sprite is not found. Can be left blank to not display anything.
148
148
|}
149
149
@@ -212,11 +212,11 @@ file=Example.png
212
212
:Height in in pixels or percentage starting from the Y position.
213
213
|-
214
214
| <code>resize </code>
215
- | '''Required:''' no, '''Default:''' <tt >null </tt >
215
+ | '''Required:''' no, '''Default:''' <code >null </code >
216
216
:Display size in pixel width of the sprite. Note: Will not resize larger than 100% of the original size.
217
217
|-
218
218
| <code>link </code>
219
- | '''Required:''' no, '''Default:''' <tt >null </tt >
219
+ | '''Required:''' no, '''Default:''' <code >null </code >
220
220
:Page name or external URL to have the sprite link to.
221
221
|}
222
222
@@ -260,11 +260,11 @@ file=File:Image_Name.png
260
260
:The named slice to load.
261
261
|-
262
262
| <code>resize </code>
263
- | '''Required:''' no, '''Default:''' <tt >none </tt >
263
+ | '''Required:''' no, '''Default:''' <code >none </code >
264
264
:Display size in pixel width of the slice. Note: Will not resize larger than 100% of the original size.
265
265
|-
266
266
| <code>wikitext </code>
267
- | '''Required:''' yes, '''Default:''' <tt >none </tt >
267
+ | '''Required:''' yes, '''Default:''' <code >none </code >
268
268
:The wiki text to parse and display if the named slice is not found. Can be left blank to not display anything.
269
269
|}
270
270
@@ -285,4 +285,6 @@ After a sprite or slice has been selected a pop up will open under the tag previ
285
285
<pre>{{#sprite:file=File:Hanamura-screenshot.jpg|name=Plaque}}</pre>
286
286
<pre>{{#sprite:file=File:Hanamura-screenshot.jpg|name=Plaque|resize=800}}</pre>
287
287
<pre>{{#slice:file=File:Hanamura-screenshot.jpg|name=Plaque}}</pre>
288
- <pre>{{#slice:file=File:Hanamura-screenshot.jpg|name=Plaque|resize=500}}</pre>
288
+ <pre>{{#slice:file=File:Hanamura-screenshot.jpg|name=Plaque|resize=500}}</pre>
289
+
290
+ [[Category :Image extensions ]]
0 commit comments