Documentation

The template rendering engine used to render a shard is Jinja2.

The syntax to render a simple variable is:

{{ variable }}

Character’s basic information

Your character’s variable are:

So, for example, if you want to render a banner with the featuring/face claim below:

[center][rectangle][img]{{ banner_url }}[/img][/rectangle][size=10]ft. {{ face_claim }}[/size][/center]

Relationships

Relationships are sorted by characters, then by groups.

The relationship groups are available through this variable:

{{ relationship_groups }}

But rendering this variable “as-is” is pointless. We can iterate over the groups like this:

{% for name, group in relationship_groups.items() %}
    [subtitleFiche]{{ name }}[/subtitleFiche]
{% endfor %}

And in order to access the relationship group’s list of actual relationships, you may iterate over the

relationships
attribute of the group, such as follow:

{% for name, group in relationship_groups.items() %}
    [subtitleFiche]{{ name }}[/subtitleFiche]
    {% for relationship in group.relationships %}
        [lienHeader option="{{ relationship.kind }}"]{{ relationship.name }}[/lienHeader]
        {{ relationship.note }}
    {% endfor %}
{% endfor %}

Each relationship item has the following attributes available:

Roleplays

Each roleplay item has the following attributes available:

The roleplays are accessible through three variables:

Each of these variables is a list, so you can iterate through them this way — for example, listing the roleplays which are done:

{% for roleplay in roleplays_done %}
[lienSujet option="{{ roleplay.url }}"]{{roleplay.title }}[/lienSujet]
[partenaireSujet]{{ roleplay.casting }}[/partenaireSujet]
{% endfor %}

If you feel confused, you might consider getting started with a basic template where the commands have been set up for you already. You will get used to this template language with practice. Good luck!