Template:Sultan history event: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
Created page with "<includeonly>{{Infobox | image = none | title = {{{title}}} <small>{{Code Reference|namespace=XRL.Annals|class={{{id}}}}}</small> | class = qud-sultan-history-event-infobox |..."
 
mNo edit summary
 
(36 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{Infobox
<includeonly><!--
 
-->{{#vardefine:has_any_special_effects|{{#if: {{{likedfaction|}}}{{{lovedfaction|}}}{{{hatedfaction|}}}{{{cognomen|}}}{{{newrelic|}}}{{{lostrelic|}}}{{{newlocation|}}}{{{renamedlocation|}}}{{{monumentatlocation|}}}{{{newtheme|}}}{{{newprofession|}}}{{{regionshifting|}}}{{{regionrevealing|}}}{{{relicrevealing|}}}{{{falsedeath|}}}{{{significantcolor|}}}{{{becomessultan|}}} |yes|no}}}}<!--
 
-->{{Infobox
| image = none
| image = none
| title = {{{title}}} <small>{{Code Reference|namespace=XRL.Annals|class={{{id}}}}}</small>
| title = <div style="min-height:64px;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;">{{{title}}}&nbsp;<small>{{Code Reference|name={{{id}}}|namespace=XRL.Annals|class={{{id}}}}}</small>{{#if:{{{variation|}}}|<br><small>{{qud text|&K{{{variation}}}}}</small>}}</div>
| class = qud-sultan-history-event-infobox
| class = qud-sultan-history-event-infobox
| rows =
| rows =
{{infobox row|Adds loved faction?|{{{lovedfaction|no}}}}}
{{#ifeq: {{#var:has_any_special_effects}}|no
{{infobox row|Adds hated faction?|{{{hatedfaction|no}}}}}
  |{{infobox row||{{qud text|This event has no special effects.}}}}
{{infobox row|Adds a cognomen?|{{{cognomen|no}}}}}
  |{{#if:{{{likedfaction|}}}| {{infobox row|{{Tooltip|A faction involved in this event becomes<br>favored, and may appear in this sultan's [[sultan cult|cults]]<br>or have a +200 reputation bonus on sultan [[relics]]|Favored faction}}?|{{{likedfaction|no}}}}} }}
{{infobox row|Creates relic?|{{{newrelic|no}}}}}
  {{#if:{{{lovedfaction|}}}| {{infobox row|{{Tooltip|A faction involved in this event becomes<br>loved, and may appear in this sultan's [[sultan cult|cults]]<br>or have a +400 reputation bonus on sultan [[relics]]|Adds loved faction}}?|{{{lovedfaction|no}}}}} }}
{{infobox row|Loses relic?|{{{lostrelic|no}}}}}
  {{#if:{{{hatedfaction|}}}| {{infobox row|{{Tooltip|A faction involved in this event becomes hated<br>by the sultan, and may feature in later events<br>or have a -200 reputation penalty on sultan [[relics]]|Adds hated faction?}}|{{{hatedfaction|no}}}}} }}
{{infobox row|Adds new location?|{{{newlocation|no}}}}}
  {{#if:{{{cognomen|}}}| {{infobox row|{{Tooltip|A nickname for the sultan, which may also<br>be used later to name [[sultan cults]] or [[relics]]|Adds a cognomen}}?|{{{cognomen|no}}}}} }}
{{infobox row|Renames location?|{{{renamedlocation|no}}}}}
  {{#if:{{{newrelic|}}}| {{infobox row|{{Tooltip|A new relic. This relic can be lost during future<br>sultan events. Otherwise, it will be entombed in<br>the [[sultan reliquary|sultan's reliquary]] in the [[Tomb of the Eaters]].|Creates relic?}}|{{{newrelic|no}}}}} }}
{{infobox row|Adds sultan theme?|{{{newtheme|no}}}}}
  {{#if:{{{lostrelic|}}}| {{infobox row|{{Tooltip|If the sultan has accumulated any relics from prior<br>events, one of those relics will be lost during this<br>event at the location where it takes place.|Loses relic?}}|{{{lostrelic|no}}}}} }}
{{infobox row|ID|{{{id}}}}}
  {{#if:{{{newlocation|}}}| {{infobox row|{{Tooltip|A new location in the<br>[[World_generation#Regions_and_Locations|world's generated history]]|Adds new location}}?|{{{newlocation|no}}}}} }}
  {{#if:{{{renamedlocation|}}}| {{infobox row|Renames location?|{{{renamedlocation|no}}}}} }}
  {{#if:{{{monumentatlocation|}}}| {{infobox row|{{Tooltip|A monument to the sultan is built at this location<br>(currently not used in any meaningful way; it<br>won't be found if the player visits the location)|Adds a monument?}}|{{{monumentatlocation|no}}}}} }}
  {{#if:{{{newtheme|}}}| {{infobox row|{{Tooltip|Sultans begin with one [[sultan theme|theme]], but can gain<br>additional themes from certain events|Adds sultan theme}}?|{{{newtheme|no}}}}} }}
  {{#if:{{{newprofession|}}}| {{infobox row|{{Tooltip|Sets or changes the sultan's profession,<br>which can influence [[relics]] and [[historic sites]].|New profession?}}|{{{newprofession|no}}}}} }}
  {{#if:{{{significantcolor|}}}| {{infobox row|{{Tooltip|Sets or changes the sultan's significant<br>color, which can affect future events and cognomen.|Significant color?}}|{{{significantcolor|no}}}}} }}
  {{#if:{{{becomessultan|}}}| {{infobox row|{{Tooltip|This event elevates the destined sultan to<br>a recognized position as sultan of Qud.|Becomes sultan?}}|{{{becomessultan|no}}}}} }}
  {{#if:{{{regionshifting|}}}| {{infobox row|{{Tooltip|This event triggers a relocation<br>of the sultan to a new region.|Region shifting?}}|{{{regionshifting|no}}}}} }}
  {{#if:{{{relicrevealing|}}}| {{infobox row|{{Tooltip|Uncovering this sultan history event triggers<br>a "recover relic" quest to find the lost relic|Relic revealing?}}|{{{relicrevealing|no}}}}} }}
  {{#if:{{{regionrevealing|}}}| {{infobox row|{{Tooltip|Uncovering this sultan history event<br>can potentially reveal a [[historic site]]<br>(only if this region has a historic site)|Region revealing?}}|{{{regionrevealing|no}}}}} }}
  {{#if:{{{falsedeath|}}}| {{infobox row|{{Tooltip|This event will be immediately followed<br>by a [[Sultan_histories#Death_Reversal_Events|death reversal event]]|False death?}}|{{{falsedeath|no}}}}} }}
}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>


Creates an infobox that defines the parameters of a sultan history event type.
Creates an infobox that defines the parameters of a sultan history event type. Used on the [[sultan histories]] page.


Required parameters:
Required parameters:
Line 22: Line 37:


Optional parameters:
Optional parameters:
* cognomen = yes
* cognomen  
* lovedfaction = yes
* likedfaction
* hatedfaction = yes
* hatedfaction  
* newrelic = yes
* newrelic  
* lostrelic = yes
* lostrelic  
* newlocation = yes
* newlocation  
* renamedlocation = yes
* renamedlocation  
* newtheme = yes
* newtheme
 
* newprofession
Used on the [[sultan histories]] page.
* regionshifting
* regionrevealing
* relicrevealing
* falsedeath
* significantcolor
* becomessultan
* monumentatlocation
* variation


== Example ==
== Example ==

Latest revision as of 00:48, 19 December 2020


Creates an infobox that defines the parameters of a sultan history event type. Used on the sultan histories page.

Required parameters:

  • title
  • id

Optional parameters:

  • cognomen
  • likedfaction
  • hatedfaction
  • newrelic
  • lostrelic
  • newlocation
  • renamedlocation
  • newtheme
  • newprofession
  • regionshifting
  • regionrevealing
  • relicrevealing
  • falsedeath
  • significantcolor
  • becomessultan
  • monumentatlocation
  • variation

Example

{{sultan history event
| title = Born as Heir
| id = BornAsHeir
| cognomen = yes
}}
Born as Heir [1]
Adds a cognomenA nickname for the sultan, which may also
be used later to name sultan cults or relics
?

yes

References

  1. XRL.Annals.BornAsHeir