The template rendering engine used to render a shard
is Jinja2.
The syntax to render a simple variable is:
{{ variable }}
Your character’s variable are:
forum_nickname
face_claim
shard_title
banner_url
avatar_url
name_and_alias
profession_rank_reputation
date_place_birth
origin_nationality
place_of_residence
social_rank
about_me
my_room
expectations
pegi_alerts
contact_mode
[center][rectangle][img]{{ banner_url }}[/img][/rectangle][size=10]ft. {{ face_claim }}[/size][/center]
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
relationshipsattribute 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:
name
avatar_url
kind
note
Each roleplay item has the following attributes available:
title
url
summary
casting
roleplays_ongoingfor the roleplays you are currently playing.
roleplays_donefor the roleplays done.
roleplays_cancelledfor the roleplays that are cancelled.
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!