Skip to content

Instantly share code, notes, and snippets.

@egocarib
Created August 8, 2019 04:08
Show Gist options
  • Save egocarib/7f254d7c49bcd26d1533a5bba374de57 to your computer and use it in GitHub Desktop.
Save egocarib/7f254d7c49bcd26d1533a5bba374de57 to your computer and use it in GitHub Desktop.
Qud look: Maximum depth >> 3
=======================================
<div class="qud-box-wrapper {{#ifeq:
{{{bordercolor|}}}| y |white-border|
}}"><div class="qud-box"><span class="qud-box-header">
{{Qud text|&amp;y
{{{title|
{{BASEPAGENAME}}
}}}
}}</span><div class="qud-box-content" style="font-weight:bold; line-height:
{{{lineheight|1.5}}}em; padding:0em
{{{padding|0}}}em;">
{{#tag:poem|
{{Qud text|&amp;y
{{{text|text here}}}|nolinebreakreplace=
{{{nolinebreakreplace|no}}}
}}
}}</div><span class="qud-box-footer-left">
{{#ifeq:
{{{bottomtext|}}}| none ||
{{Qud text|&amp;Y
{{{bottomtext|Perfect}}}
}}
}}</span></div></div>
Dice tooltip: Maximum depth >> 4
=======================================
{{#ifeq:
{{{2|}}} | summary |
{{tooltip|
{{{1|}}}|
{{#invoke:dice/Format | diceStats | roll =
{{{1|}}}
}}
}}|
{{tooltip|
{{#invoke:dice/Format | diceStats | roll =
{{{1|}}}
}}|
{{{1|}}}
}}
}}
tooltip: Maximum depth >> 1
=======================================
<abbr title="
{{{1}}}">
{{{2|<sup><span style="display:inline-block;width:9px;height:9px;line-height:9px;border-radius:20px;margin-left:4px;border:1px solid #cccccc;text-align:center;padding:1px;font-family:'Source Code Pro','Lucida Console',Monaco,'Courier New',Courier;font-size:10px;font-weight:100;">?</span></sup>}}}</abbr>
Color: Maximum depth >> 2
=======================================
<span style="color:
{{#switch:
{{{1|}}}| r = #a64a2e| R = #d74200| g = #009403| G = #00c420| b = #0048bd| B = #0096ff| c = #40a4b9| C = #77bfcf| m = #b154cf| M = #da5bd6| w = #98875f| W = #cfc041| k = #0f3b3a| K = #155352| y = #b1c9c3| Y = #FFFFFF| o = #f15f22| O = #e99f10| #default =
{{{1}}}
}};">
{{{2}}}</span>
infobox: Maximum depth >> 1
=======================================
{{#invoke: infobox | infobox }}
Infobox row: Maximum depth >> 4
=======================================
{{ #if:
{{{1|}}}
{{{label|}}} |! <div style="text-align:left">
{{ucfirst:
{{{1|
{{{label|}}}
}}}
}} </div>
}}|
{{#if:
{{{class|}}} | class="
{{{class}}}"
}}
{{ #if:
{{{1|}}}
{{{label|}}} || colspan="2"
}} |
{{{2|
{{{field|}}}
}}}|-
Qud text: Maximum depth >> 5
=======================================
{{#ifeq:
{{{2|empty}}} | notxml |
{{#ifeq:
{{{3|empty}}}| unbolded |
{{#invoke: ColorParse | nonxmlparse |
{{{1}}}
}}|
{{#invoke: ColorParse | nonxmlparse |<b>
{{{1}}}</b>
}}
}}|
{{#ifeq:
{{{2|empty}}} | unbolded |
{{#invoke: ColorParse | parse |
{{{1}}}|
{{#ifeq:
{{{nolinebreaksreplace|}}} | yes |nolinebreakparse
}}
}}|
{{#invoke: ColorParse | parse |<b>
{{{1}}}</b>|
{{#ifeq:
{{{nolinebreaksreplace|}}} | yes |nolinebreakparse
}}
}}
}}
}}
grammar: Maximum depth >> 3
=======================================
{{#invoke:Grammar | Main |
{{{text|}}}|
{{lc:
{{{gender|nonspecific}}}
}}|
{{lc:
{{{pronouns|}}}
}}
}}
Character: Maximum depth >> 6
=======================================
{{#cargo_store:_table=Characters|Title=
{{{title|
{{PAGENAME}}
}}}|Level=
{{{lv|}}}|HP=
{{{hp|}}}|AV=
{{{av|}}}|DV=
{{{dv|}}}|MA=
{{{ma|}}}|Strength=
{{{strength|}}}|Agility=
{{{agility|}}}|Toughness=
{{{toughness|}}}|Intelligence=
{{{intelligence|}}}|Willpower=
{{{willpower|}}}|Ego=
{{{ego|}}}|AcidResist=
{{{acid|}}}|ElectricResist=
{{{electric|}}}|HeatResist=
{{{heat|}}}|ColdResist=
{{{cold|}}}|Gender=
{{{gender|}}}|Pronouns=
{{{pronouns|}}}|Description=
{{{desc|}}}|Corpse=
{{{corpse|}}}|CorpseChance=
{{{corpsechance|0}}}|MoveSpeed=
{{{movespeed|100}}}|Demeanor=
{{{demeanor|neutral}}}|Skills=
{{{skills|}}}|Mutations=
{{{mutations|}}}|Quickness=
{{{quickness|100}}}|Role=
{{{role|}}}|ObjectID=
{{{id|}}}|Extra=
{{{extra|}}}
}}
{{#cargo_store:_table=GeneralData|ObjectID=
{{{id|}}}|DisplayName=
{{qud text|&amp;y
{{{title|
{{PAGENAME}}
}}}
}}|Image=
{{#ifeq:
{{{image|}}} | none ||
{{{image|}}}
}}|PlainName=
{{#titleparts:
{{PAGENAME}}
}} |DisplayChar=
{{qud char|
{{{colorstr|}}}|
{{{renderstr|}}}
}}
}}
{{#vardefine:name|
{{{title|
{{PAGENAME}}
}}}
}}[[Category:Creatures]]
{{#invoke:infobox|infobox| rows =
{{#if:
{{{faction|}}} |
{{infobox row|label=Faction|field=
{{{faction}}}
}}
}}
{{#if:
{{{lv|}}} |
{{infobox row|Level|
{{{lv}}}
}}
}}
{{#if:
{{{hp|}}} |
{{infobox row|HP|
{{Color | r |♥}}
{{{hp}}}
}}
}}
{{#if:
{{{av|}}} |
{{infobox row|AV|
{{Color | b |♦}}
{{{av}}}
}}
}}
{{#if:
{{{dv|}}} |
{{infobox row|DV|
{{Color | K |o}}
{{{dv}}}
}}
}}
{{#if:
{{{ma|}}} |
{{infobox row|MA|
{{{ma}}}
}}
}}
{{#if:
{{{movespeed|}}} |
{{infobox row|[[Movement Speed|Move Speed]]|
{{{movespeed|100}}}
}}
}}
{{#if:
{{{quickness|}}} |
{{infobox row|[[Quickness]]|
{{{quickness|100}}}
}}
}}<!--Makes the attributes box show up if *any* of the attributes are filled out-->
{{#if:
{{{strength|}}}
{{{agility|}}}
{{{toughness|}}}
{{{intelligence|}}}
{{{willpower|}}}
{{{ego|}}} |
{{infobox row|Attributes|
{{#if:
{{{strength|}}} | <p style="color:#FFFFFF">
{{dice tooltip|
{{{strength}}}|summary
}} Strength
}}
{{#if:
{{{agility|}}} | <p style="color:#CFC041">
{{dice tooltip|
{{{agility}}}|summary
}} Agility
}}
{{#if:
{{{toughness|}}} | <p style="color:#D74200">
{{dice tooltip|
{{{toughness}}}|summary
}} Toughness
}}
{{#if:
{{{intelligence|}}} | <p style="color:rgb(51,102,255)">
{{dice tooltip|
{{{intelligence}}}|summary
}} Intelligence
}}
{{#if:
{{{willpower|}}} | <p style="color:#00C420">
{{dice tooltip|
{{{willpower}}}|summary
}} Willpower
}}
{{#if:
{{{ego|}}} | <p style="color:#DA5BD6">
{{dice tooltip|
{{{ego}}}|summary
}} Ego
}}
}}
}}<!--Makes the resistances box show up if *any* of the resistances are filled out-->
{{#if:
{{{acid|}}}
{{{electric|}}}
{{{cold|}}}
{{{heat|}}} |
{{infobox row|Resistance|
{{#if:
{{{acid|}}} | <p style="color:#00C420">
{{{acid}}} Acid</p>
}}
{{#if:
{{{electric|}}} | <p style="color:#CFC041">
{{{electric}}} Electric</p>
}}
{{#if:
{{{cold|}}} | <p style="color:#0096FF">
{{{cold}}} Cold</p>
}}
{{#if:
{{{heat|}}} | <p style="color:#D74200">
{{{heat}}} Heat</p>
}}
}}
}}
{{#if:
{{{demeanor|}}} |
{{infobox row|Demeanor|
{{{demeanor|neutral}}}
}}
}}
{{#if:
{{{corpse|}}} |
{{infobox row|Corpse Dropped|[[Corpse|
{{{corpse}}}]](
{{{corpsechance|0}}}%)
}}
}}
{{#if:
{{{inventory|}}}|
{{infobox row|Items|
{{{inventory}}}
}}
}}
{{#if:
{{{skills|}}} |
{{infobox row|Skills|
{{consecutive links|
{{{skills}}}|</br>|</br>
}}
}}
}}
{{#if:
{{{mutations|}}}|
{{infobox row|Mutations|
{{{mutations}}}
}}
}}
{{#if:
{{{gender|}}} |
{{infobox row|Gender and</br>pronouns|[[Gender and Pronouns#
{{{gender}}}
{{!}}
{{{gender}}}]]
{{#if:
{{{pronouns|}}}|([[Gender and Pronouns#
{{{pronouns}}}
{{!}}
{{{pronouns}}}]])
}}
}}
}}
{{#if:
{{{role|}}} |
{{infobox row|Role|
{{{role}}}
}}
}}
{{#if:
{{{id|}}} |
{{infobox row|ID|
{{{id}}}
}}
}}
{{#if:
{{{extra|}}} |
{{infobox row|Other Characteristics|
{{{extra}}}
}}
}}
}}
{{#if:
{{{desc|}}} |
{{Qud look |text=
{{grammar|text=
{{{desc}}}|gender=
{{{gender|nonspecific}}}|
{{#if:
{{{pronouns|}}}|pronouns=
{{{pronouns}}}
}}
}}|title=
{{{title|
{{PAGENAME}}
}}}
}}
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment