Skip to content

Commit 7ffe38f

Browse files
Add Element page and redirects for element/*
1 parent ae91b38 commit 7ffe38f

File tree

7 files changed

+32
-5
lines changed

7 files changed

+32
-5
lines changed

articles/official/element/article.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Element
2+
3+
An **element** is a generic class that can represent almost all in-game entities. The built-in element types are:
4+
5+
- TODO
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
title: "Element"
2+
content: "article.md"
3+
author: "multitheftauto"
4+
date: "January 1, 2025"
5+
assets: []

elements/player.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: 'Player'
2+
description: |
3+
The player class represents pedestrians controlled by clients. A player element is created when a client connects to the server and destroyed when that client quits. Players cannot be created or destroyed otherwise.
4+
5+
The element type of this class is **"player"**.
6+
7+
TODO
8+
see_also:
9+
- 'category:Player functions'
10+
- 'category:Player events'

web/resources/_redirects

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
/wiki/ /
22
/wiki/* /:splat
3+
4+
/element/* /:splat

web/resources/assets/style.css

+5
Original file line numberDiff line numberDiff line change
@@ -245,3 +245,8 @@ header {
245245
margin: 0;
246246
color: #9F9FA2;
247247
}
248+
249+
.pad-lr {
250+
padding-left: 1em;
251+
padding-right: 1em;
252+
}

web/resources/function.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ <h3>Pair: <a href="/{{ function[type_name].pair }}">{{ function[type_name].pair
3737
{% if function[type_name] %}
3838
{% if function[type_name].version %}
3939
{% set version = function[type_name].version %}
40-
<div style="display:inline-block; padding: 0.5em; margin-bottom: 0.5em; border: 1px solid {{ info_color }}; border-radius: 5px;">
40+
<div class="pad-lr" style="display:inline-block; margin-bottom: 0.5em; border: 1px solid {{ info_color }}; border-radius: 5px;">
4141
{% if version.added %}
4242
Added in <strong>{{ version.added }}</strong>
4343
{% endif %}
@@ -60,7 +60,7 @@ <h3>Pair: <a href="/{{ function[type_name].pair }}">{{ function[type_name].pair
6060
{% if function[type_name] and function[type_name].meta %}
6161
{% if function[type_name].meta %}
6262
{% for meta_item in function[type_name].meta %}
63-
<div style="padding-left: 1em; margin-top: 1em; border: 1px solid #aaa; border-radius: 5px; background-color: rgba(255, 255, 255, 0.1);">
63+
<div class="pad-lr" style="margin-bottom: 0.5em; border: 1px solid #aaa; border-radius: 5px; background-color: rgba(255, 255, 255, 0.1);">
6464
{% if meta_item.needs_checking %}
6565
<p><strong>Needs checking:</strong> {{ meta_item.needs_checking }}</p>
6666
{% endif %}
@@ -75,7 +75,7 @@ <h3>Pair: <a href="/{{ function[type_name].pair }}">{{ function[type_name].pair
7575
{% if function[type_name] %}
7676
{% if function[type_name].issues %}
7777
{% for issue in function[type_name].issues %}
78-
<div style="padding-left: 1em; margin-top: 1em; border: 1px solid {{ info_color }}; border-radius: 5px; background-color: rgba(255, 255, 0, 0.1);">
78+
<div class="pad-lr" style="margin-bottom: 0.5em; border: 1px solid {{ info_color }}; border-radius: 5px; background-color: rgba(255, 255, 0, 0.1);">
7979
<p><a target="_blank" href="https://github.com/multitheftauto/mtasa-blue/issues/{{ issue.id }}">Issue #{{ issue.id }} (mtasa-blue):</a> {{ issue.description_html }}</p>
8080
</div>
8181
{% endfor %}
@@ -89,7 +89,7 @@ <h3>Pair: <a href="/{{ function[type_name].pair }}">{{ function[type_name].pair
8989

9090
{% if function[type_name].notes %}
9191
{% for note in function[type_name].notes %}
92-
<div style="padding-left: 1em; margin-top: 1em; border: 1px solid {{ info_color }}; border-radius: 5px; background-color: rgba(0, 255, 0, 0.1);">
92+
<div class="pad-lr" style="margin-bottom: 0.5em; border: 1px solid {{ info_color }}; border-radius: 5px; background-color: rgba(0, 255, 0, 0.1);">
9393
<p>{{ note }}</p>
9494
</div>
9595
{% endfor %}

web/resources/layout.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css" integrity="sha512-Evv84Mr4kqVGRNSgIGL/F/aIDqQb7xQ2vcrdIwxfjThSH8CSR7PBEakCr51Ck+w+/U6swU2Im1vVX0SVk9ABhg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
2626

2727
<!-- Custom CSS -->
28-
<link rel="stylesheet" href="/assets/style.css?v=1.8">
28+
<link rel="stylesheet" href="/assets/style.css?v=1.9">
2929
</head>
3030
<body>
3131
<nav id="mta-global-navbar">

0 commit comments

Comments
 (0)