Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
magicseteditor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
magicseteditor
Commits
bf14f69c
Commit
bf14f69c
authored
Sep 20, 2007
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some fixes to the vs spoiler export template
parent
d6d87a39
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
data/vs-spoiler.mse-export-template/export-template
data/vs-spoiler.mse-export-template/export-template
+7
-7
No files found.
data/vs-spoiler.mse-export-template/export-template
View file @
bf14f69c
...
@@ -65,7 +65,7 @@ option field:
...
@@ -65,7 +65,7 @@ option field:
option style:
option style:
grouping:
grouping:
render style:
text
render style:
both
choice images:
choice images:
no grouping: { built_in_image("bool_no") }
no grouping: { built_in_image("bool_no") }
group by card type: { built_in_image("bool_yes") }
group by card type: { built_in_image("bool_yes") }
...
@@ -124,12 +124,12 @@ script:
...
@@ -124,12 +124,12 @@ script:
}
}
write_cards := {
write_cards := {
"
<ul
class=
'cards'
>
{
"
<ul
class=
'cards'
>
{
for each card in sort(cards, order_by: {input.number_line}) do
for each card in sort
_list
(cards, order_by: {input.number_line}) do
write_card()
write_card()
}
</ul>
"
}
</ul>
"
}
}
write_group := {
write_group := {
cards := filter_list(set.cards, filter: {
sort_index(card:input) == code
} )
cards := filter_list(set.cards, filter: {
contains(match:sort_index(card:input), code)
} )
count := number_of_items(in:cards)
count := number_of_items(in:cards)
if count > 0 then
if count > 0 then
"
<h2>
{title} ({count} {if count == 1 then "card" else "cards"})
</h2>
" +
"
<h2>
{title} ({count} {if count == 1 then "card" else "cards"})
</h2>
" +
...
@@ -163,10 +163,10 @@ script:
...
@@ -163,10 +163,10 @@ script:
<div
class=
'description'
>
{ to_html(set.description) }
</div>
<div
class=
'description'
>
{ to_html(set.description) }
</div>
{ if options.grouping == "group by card type" then
{ if options.grouping == "group by card type" then
# Codes as by sort_index
# Codes as by sort_index
write_group(title: "Character", code:"
A
") +
write_group(title: "Character", code:"
12
") +
write_group(title: "Equipment", code:"
B
") +
write_group(title: "Equipment", code:"
3
") +
write_group(title: "Location", code:"
C
") +
write_group(title: "Location", code:"
4
") +
write_group(title: "Plot Twist", code:"
D
")
write_group(title: "Plot Twist", code:"
5
")
else
else
write_cards(cards: set.cards)
write_cards(cards: set.cards)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment