Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 Add Change Modes to template #35

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 16 additions & 9 deletions doc-templates/templates/desc_full.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ <h1 style="display: inline-block">${element.name}</h1> <a href="#${element.id}"
<div class="item-content">
<table>
<tr class="item-details">
<td class="item-table-label">Patterns:</td>
<td class="item-table-label">Patterns</td>
<td class="noleftpad">
<ul>
${generate element.patterns pattern_element.html}
Expand All @@ -16,42 +16,49 @@ <h1 style="display: inline-block">${element.name}</h1> <a href="#${element.id}"

${if structure-required-entrydata}
<tr class="item-details">
<td class="item-table-label">Required Entries:</td>
<td class="item-table-label">Required Entries</td>
<td>${element.structure-required-entrydata}</td>
</tr>

${end} ${if structure-optional-entrydata}
<tr class="item-details">
<td class="item-table-label">Optional Entries:</td>
<td class="item-table-label">Optional Entries</td>
<td>${element.structure-optional-entrydata}</td>
</tr>

${end}
<tr class="item-details">
<td class="item-table-label">Since:</td>
<td class="item-table-label">Since</td>
<td>${element.since}</td>
</tr>

${if events}
<tr class="item-details">
<td class="item-table-label">Usable in events:</td>
<td class="item-table-label">Usable in events</td>
<td>${element.events}</td>
</tr>

${end} ${if required-plugins}
<tr class="item-details">
<td class="item-table-label">Requirements:</td>
<td class="item-table-label">Requirements</td>
<td>${element.required-plugins}</td>
</tr>

${end} ${if accepted-change-modes}
<tr class="item-details">
<td class="item-table-label">Change Modes</td>
<td>${element.accepted-change-modes}</td>
</tr>

${end} ${if by-addon}
<tr class="item-details">
<td class="item-table-label">By Addon:</td>
<td class="item-table-label">By Addon</td>
<td>${element.by-addon}</td>
</tr>

${end} ${if return-type}
<tr class="item-details">
<td class="item-table-label">Return Type:</td>
<td class="item-table-label">Return Type</td>
<td><a href="classes.html#${element.return-type-linkcheck}">${element.return-type}</a></td>
</tr>
${end}
Expand All @@ -62,7 +69,7 @@ <h1 style="display: inline-block">${element.name}</h1> <a href="#${element.id}"
</div>

<div class="item-examples">
<p class="example-details-closed">Examples:</p>
<p class="example-details-closed">Examples</p>

<div class="skript-code-block">
${element.examples}
Expand Down