Skip to content

Commit 04a4271

Browse files
authored
Docs: Make a few URLs into clickable links (#17000)
1 parent 10f22dd commit 04a4271

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

doc/lua_api.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3118,7 +3118,7 @@ Elements
31183118

31193119
### `background9[<X>,<Y>;<W>,<H>;<texture name>;<auto_clip>;<middle>]`
31203120

3121-
* 9-sliced background. See https://en.wikipedia.org/wiki/9-slice_scaling
3121+
* 9-sliced background. See [Wikipedia](https://en.wikipedia.org/wiki/9-slice_scaling)
31223122
* Middle is a rect which defines the middle of the 9-slice.
31233123
* `x` - The middle will be x pixels from all sides.
31243124
* `x,y` - The middle will be x pixels from the horizontal and y from the vertical.
@@ -3994,8 +3994,7 @@ Spatial Vectors
39943994

39953995
Luanti stores 3-dimensional spatial vectors in Lua as tables of 3 coordinates,
39963996
and has a class to represent them (`vector.*`), which this chapter is about.
3997-
For details on what a spatial vectors is, please refer to Wikipedia:
3998-
https://en.wikipedia.org/wiki/Euclidean_vector.
3997+
For details on what a spatial vector is, please refer to [Wikipedia](https://en.wikipedia.org/wiki/Euclidean_vector).
39993998

40003999
Spatial vectors are used for various things, including, but not limited to:
40014000

@@ -4254,7 +4253,7 @@ Helper functions
42544253
* `string.pack(fmt, ...)`
42554254
* `string.unpack(fmt, s, [pos])`
42564255
* `string.packsize(fmt)`
4257-
* Backported from Lua 5.4, see https://www.lua.org/manual/5.4/manual.html#6.4.2
4256+
* Backported from Lua 5.4, see [Lua manual section 6.4.2](https://www.lua.org/manual/5.4/manual.html#6.4.2)
42584257
* `core.wrap_text(str, limit, as_table)`: returns a string or table
42594258
* Adds newlines to the string to keep it within the specified character
42604259
limit
@@ -4396,7 +4395,7 @@ Two functions are provided to translate strings: `core.translate` and
43964395
the client, the choice between singular and plural might be more complicated,
43974396
but the choice will be done automatically using the value of `n`.
43984397

4399-
You can read https://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html
4398+
You can read [the Gettext documentation](https://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html)
44004399
for more details on the differences of plurals between languages.
44014400

44024401
Also note that plurals are only handled in .po or .mo files, and not in .tr files.

0 commit comments

Comments
 (0)