Difference between revisions of "Template:ScoringRow"

From Wikicarpedia
Jump to navigation Jump to search
 
(40 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#ifeq:{{{line|true}}} | true | <tr class="{{{selectorid|}}}" {{#if: {{{dynamicselector|}}} | data-dynamic-selector="{{#urldecode:{{{dynamicselector}}}}}" }}><td colspan="2"><hr /></td></tr>
<includeonly><div {{#if:{{{id|}}}|id="{{{id}}}"}} class="{{{selectorid|}}} scoring{{{scoringtype|}}}" {{#switch: {{{style|}}}
}}<tr class="{{{selectorid|}}}" {{#switch: {{{style|}}} | dark = bgcolor="#d8d8d8" }} {{#if: {{{dynamicselector|}}} | data-dynamic-selector="{{#urldecode:{{{dynamicselector}}}}}" }} valign="top">
  | dark = bgcolor="#d8d8d8"  
<td class="scoring{{{scoringtype|}}}" {{#if:{{{feature|}}}|style="width:99%; text-align:center !important"|style="width:50%" }}>
  | alert = bgcolor="#FBC9C3"
{{#if: {{{image|}}} | <div class="floatleft" style="min-width:50px;text-align:center;">{{{image}}}</div>}}{{#if: '''{{{feature|}}}''' | <div class="floatleft" style="min-width:50px;">{{{feature}}}</div>}}{{{description}}} {{#if: {{#ifeq:{{{triggerrobbers|}}} | true | 1 }}{{#ifeq:{{{triggercastle|}}} | true | 1 }}{{#ifeq:{{{triggerteacher|}}} | true | 1 }}{{#ifeq:{{{triggerringmaster|}}} | true | 1 }} | <span data-dynamic-selector="['OR'{{#ifeq: {{{triggercastle|}}} | true | ,'showCastles'}}{{#ifeq: {{{triggerrobbers|}}} | true | ,'showRobbers' }}{{#ifeq: {{{triggerteacher|}}} | true | ,'showTeacher' }}{{#ifeq: {{{triggerringmaster|}}} | true | ,'showRingmasterScoring{{#ifeq:{{{extendedringmaster|false}}}|true|_Extended}}' }}]"> → <span class="wica-white-box" style="display: inline-block; height: 27px; padding: 3px 3px;">}}{{#ifeq: {{{triggercastle|}}} | true | <span style="padding: 0px;"><span class="showCastles"><span class="showC1">{{Feature|name=Castle|variant=image|size=x25px|edition=C1}}</span><span class="showC2">{{Feature|name=Castle|variant=image|size=x25px|edition=C2}}</span></span>}}{{#if: {{#ifeq:{{{triggerrobbers|}}} | true | 1 }}{{#ifeq:{{{triggercastle|}}} | true | 1 }} | <nowiki /> <nowiki /> }}{{#ifeq: {{{triggerrobbers|}}} | true | <span class="showRobbers">{{Figure|name=Robber|variant=image|size=x25px}}{{#ifeq: {{{robbersplus|}}} | true | '''+'''}}</span>}}{{#ifeq: {{{triggerteacher|}}} | true | <span class="showTeacher"> {{Figure|name=Teacher|variant=image|size=x25px}}</span>}}{{#ifeq: {{{triggerringmaster|}}} | true | <span class="showRingmasterScoring{{#ifeq:{{{extendedringmaster|false}}}|true|_Extended}}"> {{Figure|name=Ringmaster|variant=image|size=x25px}}</span>}}{{#if: {{#ifeq:{{{triggerrobbers|}}} | true | 1 }}{{#ifeq:{{{triggercastle|}}} | true | 1 }}{{#ifeq:{{{triggerteacher|}}} | true | 1 }}{{#ifeq:{{{triggeringmaster|}}} | true | 1 }} | </span></span> }}
  }} {{#if: {{{dynamicselector|}}} | data-dynamic-selector="{{#urldecode:{{{dynamicselector}}}}}" }} valign="top" style="padding: 10px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));grid-gap: 5px;grid-auto-rows: auto;width: auto;display:grid;background-color: rgba(255,255,255,0.8);margin-bottom:5px">
</td><td {{#if: {{#ifeq: {{{corefeature|}}} | true | 1 }}{{#ifeq: {{{castle|}}} | true | 1 }} | class="scoringCore" }}>{{#ifeq: {{{castle|}}} | true | <div style="float:right" class="showCastles">{{Piece|name=CastleToken|edition=C2|variant=image|size=x20px}}</div> }}{{#if:{{{rules|}}}|{{{rules}}} }}
<div class="row-left">{{#if: {{{image|}}} | <div class="floatleft" style="min-width:50px;text-align:center;">{{{image}}}</div>}}{{#if: {{{feature|}}} | <div class="floatleft" style="min-width:50px;">'''{{{feature|}}}'''</div>}}{{{description}}} {{#if: {{#ifeq:{{{triggerrobbers|}}} | true | 1 }}{{#ifeq:{{{triggercastle|}}} | true | 1 }}{{#ifeq:{{{triggerteacher|}}} | true | 1 }}{{#ifeq:{{{triggerringmaster|}}} | true | 1 }} | <span data-dynamic-selector="['OR'{{#ifeq: {{{triggercastle|}}} | true | ,'showCastles'}}{{#ifeq: {{{triggerrobbers|}}} | true | ,'showRobbers' }}{{#ifeq: {{{triggerteacher|}}} | true | ,'showTeacher' }}{{#ifeq: {{{triggerringmaster|}}} | true | ,'showRingmasterScoring{{#ifeq:{{{extendedringmaster|false}}}|true|_Extended}}' }}]"> → <span class="wica-white-box" style="display: inline-block; height: 27px; padding: 3px 3px;">}}{{#ifeq:{{{triggercastle|}}}|true| <span style="padding: 0px;"><span class="showCastles">{{Feature|name=Castle|edition={{{edition|{{ScoringDefaultEdition}}}}}|variant=image|size=x25px}}</span>}}{{#if: {{#ifeq:{{{triggerrobbers|}}} | true | 1 }}{{#ifeq:{{{triggercastle|}}} | true | 1 }} | <nowiki /> <nowiki /> }}{{#ifeq: {{{triggerrobbers|}}} | true | <span class="showRobbers">{{Figure|name=Robber|edition={{{edition|{{ScoringDefaultEdition}}}}}|variant=image|size=x25px}}{{#ifeq: {{{robbersplus|}}} | true | '''+'''}}</span>}}{{#ifeq: {{{triggerteacher|}}} | true | <span class="showTeacher"> {{Figure|name=Teacher|edition={{{edition|{{ScoringDefaultEdition}}}}}|variant=image|size=x25px}}</span>}}{{#ifeq: {{{triggerringmaster|}}} | true | <span class="showRingmasterScoring{{#ifeq:{{{extendedringmaster|false}}}|true|_Extended}}"> {{Figure|name=Ringmaster|edition={{{edition|{{ScoringDefaultEdition}}}}}|variant=image|size=x25px}}</span>}}{{#if: {{#ifeq:{{{triggerrobbers|}}} | true | 1 }}{{#ifeq:{{{triggercastle|}}} | true | 1 }}{{#ifeq:{{{triggerteacher|}}} | true | 1 }}{{#ifeq:{{{triggeringmaster|}}} | true | 1 }} | </span></span> }}</div>
{{#if:{{{rows|}}}|{{ScoringRowEnd|opened=false}}<tr class="{{{selectorid|}}}" {{#if: {{{dynamicselector|}}} | data-dynamic-selector="{{#urldecode:{{{dynamicselector}}}}}"}}><td colspan="2" style="padding-left: 10px"><table width="100%">{{{rows}}}</table>}}{{ScoringRowEnd|opened=false}}{{#ifeq:{{{keepopen|}}}|true|<tr class="{{{selectorid|}}}" {{#if: {{{dynamicselector|}}} | data-dynamic-selector="{{#urldecode:{{{dynamicselector}}}}}"}}><td colspan="2">| }}</includeonly><noinclude>
<div class="row-right {{#if: {{#ifeq: {{{corefeature|}}} | true | 1 }}{{#ifeq: {{{castle|}}} | true | 1 }} | scoringCore }}">{{#ifeq: {{{castle|}}} | true | <div style="float:right" class="showCastles">{{Piece|name=CastleToken|edition={{{edition|{{ScoringDefaultEdition}}}}}|variant=image|size=x20px}}</div> }}{{#if:{{{rules|}}}|{{{rules}}} }}{{#if:{{{rows|}}}|</div></div><div class="row-rows {{{selectorid|}}}" {{#if: {{{dynamicselector|}}} | data-dynamic-selector="{{#urldecode:{{{dynamicselector}}}}}" }} style="padding-left: 25px;">{{{rows}}}</div>|</div></div>}}</includeonly><noinclude>{{Breadcrumbs
{{Breadcrumbs
|link1={{EditorManualLink}}
|link1={{EditorManualLink}}
|link2=[[:Category:ScoringRow]]{{Category|ScoringRow}}
|link2=[[:Category:ScoringRow]]
}}
}}{{Category|ScoringRow}}


== Description ==
== Description ==
Line 16: Line 15:
== Params ==
== Params ==


* <code>id</code> (optional) - HTML anchor
* <code>edition</code> (optional) - [ '''<code>C2</code>''' | <code>C1</code> | ... ] - edition
* <code>scoringtype</code> (required) - [ <code>Tile</code> | <code>Meeple</code> | <code>Feature</code>| <code>Surveyors</code> ] - describe which type of scoring is used
* <code>scoringtype</code> (required) - [ <code>Tile</code> | <code>Meeple</code> | <code>Feature</code>| <code>Surveyors</code> ] - describe which type of scoring is used
* <code>image</code> (optional): image for feature, ideally generated by [[:Template:Feature]], [[:Template:Figure]] or [[:Template:Piece]]
* <code>image</code> (optional): image for feature, ideally generated by [[:Template:Feature]], [[:Template:Figure]] or [[:Template:Piece]]
Line 32: Line 33:
* <code>rules</code> (required) - rules for scoring (see examples).
* <code>rules</code> (required) - rules for scoring (see examples).
* <code>line</code> (optional) - [ '''<code>true</code>''' | -empty- ] - create hr line abowe scoring row
* <code>line</code> (optional) - [ '''<code>true</code>''' | -empty- ] - create hr line abowe scoring row
* <code>style</code> (optional) - [ <code>dark</code> | '''-empty-''' ] - dark background in scoring row
* <code>style</code> (optional) - [ <code>dark</code> | <code>alert</code> | '''-empty-''' ] - dark background in scoring row
* <code>rows</code> (optional) - Optional subset of scoring rows from current scoring row - not allowed when <code>keepopen=true</code>
* <code>rows</code> (optional) - [ <code>true</code> | '''<code>false</code>''' ] - Optional subset of scoring rows from current scoring row - not allowed when <code>keepopen=true</code>
* <code>keepopen</code> (optional) - [ <code>true</code> | '''<code>false</code>''' ] - not close for another lines otherwise close with [[:Template:ScoringRowEnd]]
* <code>keepopen</code> (optional) - [ <code>true</code> | '''<code>false</code>''' ] - not close for another lines otherwise close with [[:Template:ScoringRowEnd]]


Line 61: Line 62:
== Examples ==
== Examples ==


{{ExpansionSelector|fanexpansions=true}}
{{ExpansionSelector|fanexpansions=true|hideselection=true}}
 
<table class="wica-table" width="100%" border="0">
 
<tr><th colspan="2">Core feature Roard, not need to select anything in Expansion Selector. But it have hidden parts for {{GermanCathedralsName}}, {{WondersOfHumanityName}}, {{HalflingsName}}, {{MarketsLeipzigName}} and any Double Size tiles expansion.</th></tr>


{{ScoringRowExample
  |parameters=See code
  |example=
{{ScoringRow
{{ScoringRow
   |scoringtype=Tile
   |scoringtype=Tile
Line 76: Line 76:
   |robbersplus=true
   |robbersplus=true
   |rules=
   |rules=
'''1''' point / {{TileIcon|size=x15px}} tile <span class="showGermanCathedrals"> (except for German cathedral tiles)</span>
'''1''' point / {{TileIcon|size=x15px}} tile
<ul class="showC1">
}} }}
<li class="showDoubleSizedTiles">A double-sized tile counts as 1 tile</li>
<li class="showHalflings">Each triangular tile counts as 1 individual tile</li>
<li class="showWondersOfHumanity">A wonder tile counts as 1 individual tile</li>
<li class="showMarketsOfLeipzig">If a follower was sent to the City of Leipzig, the road is scored without it (this may affect the initial majority).</li>
</ul>
<ul class="showC2">
<li class="showDoubleSizedTiles">Each half of a double-sized tile counts as a separate regular tile <span class="showMarketsOfLeipzig">(except for the long roads on Leipzig tiles in C2 only)</span></li>
<li class="showHalflings">A square space with one or two triangular tiles counts as 1 regular tile</li>
<li class="showWondersOfHumanity">Each square space in a wonder tile counts as 1 regular tile</li>
<li class="showMarketsOfLeipzig">If a meeple was sent to the City of Leipzig, the road is scored without it (this may affect the initial majority).</li>
</ul>
}}
 
<tr><th colspan="2">City scoring During turn Sequence with added {{Feature|name=GreatFairSymbol}}</th></tr>


{{ScoringRowExample
  |parameters=style=alert
  |example=
{{ScoringRow
{{ScoringRow
   |scoringtype=Tile
   |scoringtype=Tile
  |image={{Feature|name=City|variant=image|size=50px|edition=C2}}
   |description=
   |description=
'''City:''' Player(s) with majority on the feature
'''Road''' (<span class="showC1">thief</span><span class="showC2">highwayman</span>)
   |scoringcore=true
   |scoringcore=true
   |triggerrobbers=true
   |triggerrobbers=true
   |triggercastle=true
   |triggercastle=true
   |robbersplus=true
   |robbersplus=true
  |triggerringmaster=true
   |style=alert
  |triggerteacher=true
  |rules=
'''2''' points / {{TileIcon|size=x15px}} tile<br />
<span class="showGamblersLuck">
: City without {{Piece|name=GamblersLuckXToken|edition=C2|variant=imageandtext|size=x15px|text=gambler's luck X token(s)}}
</span>
'''2''' points / <span class="showC1">{{Feature|name=CoatOfArms|variant=imageandtext|edition=C1|size=x15px|text=pennant}}</span><span class="showC2">{{Feature|name=CoatOfArms|variant=imageandtext|edition=C2|size=x15px|text=coat of arms}}</span>
<span class="showFamilyFeud"><br />'''2''' points / <span class="showC1">{{Feature|name=CoatOfArmsRedYellow|variant=imageandtext|edition=C1|size=x15px|text=red-and-yellow pennant}}</span><span class="showC2">{{Feature|name=CoatOfArmsRedYellow|variant=imageandtext|edition=C2|size=x15px|text=red-and-yellow coat of arms}}</span></span>
<span class="showGreatFairs"><br />'''2''' points / <span class="showC1">{{Feature|name=GreatFairSymbol|variant=imageandtext|edition=C1|size=x15px|text=great fair symbol}}</span><span class="showC2">{{Feature|name=GreatFairSymbol|variant=imageandtext|edition=C2|size=x15px|text=great fair symbol}}</span></span>
<span data-expansion-selector="[ 'AND', 'showGamblersLuck', 'showFamilyFeud']"><br />'''2''' points / {{Feature|name=CoatOfArmsGrey|variant=imageandtext|edition=C2|size=x15px|text=grey coat of arms}}</span></span>
<span class="showGamblersLuck">
: City with {{Piece|name=GamblersLuckXToken|edition=C2|variant=imageandtext|size=x15px|text=gambler's luck X token(s)}}
</span>
<span class="showGamblersLuck">'''0''' points / any type '''<span class="showC1">{{Feature|name=CoatOfArms|edition=C1|text=pennant}}</span><span class="showC2">{{Feature|name=CoatOfArms|edition=C2|text=coat of arms}}</span>'''</span>
<ul class="showC1">
<li class="showDoubleSizedTiles">A double-sized tile counts as 1 tile (no impact on cities)</li>
<li class="showHalflings">Each triangular tile counts as 1 individual tile</li>
<li class="showWondersOfHumanity">A wonder tile counts as 1 individual tile</li>
</ul>
<ul class="showC2">
<li class="showDoubleSizedTiles">Each half of a double-sized tile counts as a separate regular tile (no impact on cities)</li>
<li class="showHalflings">A square space with one or two triangular tiles counts as 1 regular tile</li>
<li class="showWondersOfHumanity">Each square space in a wonder tile counts as 1 regular tile</li>
</ul>
}}
 
<tr><th colspan="2">{{WellsName}} scoring During turn Sequence</th></tr>
 
{{ScoringRow
  |selectorid=showWells
  |scoringtype=Tile
  |image={{Feature|name=Well|variant=image|size=50px|edition=C1}}
  |description=
Road with '''{{Feature|name=Well|text=well(s)}}'''
  |rules=
'''(+1)''' point / <span class="showC1">'''{{Feature|name=Well|variant=imageandtext|edition=C1|size=x15px|text=well}}'''</span><span class="showC2">'''{{Feature|name=Well|variant=imageandtext|edition=C2|size=x15px|text=well}}'''</span> <span class="showInns">on road without <span class="showC1">'''{{Feature|name=Inn|variant=imageandtext|edition=C1|size=x15px|text=inn}}'''</span><span class="showC2">'''{{Feature|name=Inn|variant=imageandtext|edition=C2|size=x15px|text=inn}}'''</span><br />'''(+2)''' points / <span class="showC1">'''{{Feature|name=Well|variant=imageandimage|edition=C1|size=x15px|text=well}}'''</span><span class="showC2">'''{{Feature|name=Well|variant=imageandtext|edition=C2|size=x15px|text=well}}'''</span> on road with <span class="showC1">'''{{Feature|name=Inn|variant=imageandtext|edition=C1|size=x15px|text=inn}}'''</span><span class="showC2">'''{{Feature|name=Inn|variant=imageandtext|edition=C2|size=x15px|text=inn}}'''</span>
}}
 
<tr><th colspan="2">{{WellsName}} scoring after game</th></tr>
 
{{ScoringRow
  |selectorid=showWells
  |scoringtype=Tile
  |image={{Feature|name=Well|variant=image|size=50px|edition=C1}}
  |description=
Road with '''{{Feature|name=Well|text=well(s)}}'''
  |rules=
'''(+1)''' point / <span class="showC1">'''{{Feature|name=Well|variant=imageandtext|edition=C1|size=x15px|text=well}}'''</span><span class="showC2">'''{{Feature|name=Well|variant=imageandtext|edition=C2|size=x15px|text=well}}'''</span> <span class="showInns">on road without <span class="showC1">'''{{Feature|name=Inn|variant=imageandtext|edition=C1|size=x15px|text=inn}}'''</span><span class="showC2">'''{{Feature|name=Inn|variant=imageandtext|edition=C2|size=x15px|text=inn}}'''</span><br />'''(+0)''' points / <span class="showC1">'''{{Feature|name=Well|variant=imageandimage|edition=C1|size=x15px|text=well}}'''</span><span class="showC2">'''{{Feature|name=Well|variant=imageandtext|edition=C2|size=x15px|text=well}}'''</span> on uncomplete road with <span class="showC1">'''{{Feature|name=Inn|variant=imageandtext|edition=C1|size=x15px|text=inn}}'''</span><span class="showC2">'''{{Feature|name=Inn|variant=imageandtext|edition=C2|size=x15px|text=inn}}'''</span>
}}
 
<tr><th colspan="2">Mark {{BardsCarcassonneName}} in Expansion selector in Fan Expansions to show next scoring rule</th></tr>
 
{{ScoringRow
  |selectorid=showBardsCarcassonne
  |scoringtype=Feature
  |image={{Piece|name=NoteToken|variant=image|size=50px|edition=C2}}
  |description=
City with '''{{Piece|name=NoteToken|text=note token(s)}}'''
  |rules=
'''(+1)''' point / {{TileIcon|size=x15px}} tile (note tokens do not stack)<br />
In '''advanced variant''' '''(+1)''' point / {{TileIcon|size=x15px}} tile / {{Piece|name=NoteToken|variant=image|size=x15px|edition=C2}} note (note tokens do stack)
}}
 
{{ScoringRow
  |selectorid=showBardsCarcassonne
  |scoringtype=Feature
  |image={{Piece|name=NoteToken|variant=image|size=50px|edition=C2}}
  |description=
Road with '''{{Piece|name=NoteToken|text=note token(s)}}'''
  |rules=
'''(+1)''' point / {{TileIcon|size=x15px}} tile (note tokens do not stack)<br />
In '''advanced variant''' '''(+1)''' point / {{TileIcon|size=x15px}} tile / {{Piece|name=NoteToken|variant=image|size=x15px|edition=C2}} note (note tokens do stack)
}}
 
{{ScoringRow
  |selectorid=showBardsCarcassonne
  |scoringtype=Feature
  |image={{Piece|name=NoteToken|variant=image|size=50px|edition=C2}}
  |description=
City with '''{{Piece|name=NoteToken|text=note token(s)}}'''
  |rules=
'''(x0)''' points<br />
Uncompleted cities with {{Piece|name=NoteToken|variant=image|size=x15px|edition=C2}} note token(s) score no points up to this point.
}}
 
{{ScoringRow
  |selectorid=showBardsCarcassonne
  |scoringtype=Feature
  |image={{Piece|name=NoteToken|variant=image|size=50px|edition=C2}}
  |description=
Road with '''{{Piece|name=NoteToken|text=note token(s)}}'''
  |rules=
'''(x0)''' points<br />
Uncompleted roads with {{Piece|name=NoteToken|variant=image|size=x15px|edition=C2}}  note token(s) score no points up to this point.
}}
 
<tr><th colspan="2">Mark {{CourierName}} in Expansion selector in Fan Expansions to show next scoring rule</th></tr>
 
{{ScoringRow
  |selectorid=showCourier
  |scoringtype=Feature
  |image={{Figure|name=Courier|variant=image|size=50px|edition=C2}}
  |description=
Feature with '''{{Figure|name=Courier|text=Courier}}''' after moving
  |line=false
   |style=dark
   |rules=
   |rules=
'''After-the-game''' points from feature for player which moved the Courier
'''1''' point / {{TileIcon|size=x15px}} tile
}}
}} }}
 
<nowiki><div data-old-id="0" data-old-tr {{#if:{{{id|}}}|id="{{{id}}}"}} class="{{{selectorid|}}} scoring{{{scoringtype|}}}" {{#switch: {{{style|}}}
{{ScoringRow
   | dark = bgcolor="#d8d8d8"
   |scoringtype=Tile
   | alert = bgcolor="#FBC9C3"
   |description=Kept open
   }} {{#if: {{{dynamicselector|}}} | data-dynamic-selector="{{#urldecode:{{{dynamicselector}}}}}" }} valign="top" style="grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));grid-gap: 5px;grid-auto-rows: auto;width: auto;display:grid;background-color: rgba(255,255,255,0.8);margin-bottom:5px">
   |keepopen=true
<div data-old-id="1" data-old-td {{#if:{{{feature|}}}|style="width:99%; text-align:center !important"|style="display:block" }}>
}}
{{#if: {{{image|}}} | <div data-old-id="2" class="floatleft" style="min-width:50px;text-align:center;">{{{image}}}</div>}}{{#if: {{{feature|}}} | <div data-old-id="3" class="floatleft" style="min-width:50px;">'''{{{feature|}}}'''</div>}}{{{description}}} {{#if: {{#ifeq:{{{triggerrobbers|}}} | true | 1 }}{{#ifeq:{{{triggercastle|}}} | true | 1 }}{{#ifeq:{{{triggerteacher|}}} | true | 1 }}{{#ifeq:{{{triggerringmaster|}}} | true | 1 }} | <span data-dynamic-selector="['OR'{{#ifeq: {{{triggercastle|}}} | true | ,'showCastles'}}{{#ifeq: {{{triggerrobbers|}}} | true | ,'showRobbers' }}{{#ifeq: {{{triggerteacher|}}} | true | ,'showTeacher' }}{{#ifeq: {{{triggerringmaster|}}} | true | ,'showRingmasterScoring{{#ifeq:{{{extendedringmaster|false}}}|true|_Extended}}' }}]"> → <span class="wica-white-box" style="display: inline-block; height: 27px; padding: 3px 3px;">}}{{#ifeq:{{{triggercastle|}}}|true| <span style="padding: 0px;"><span class="showCastles">{{Feature|name=Castle|edition={{{edition|{{ScoringDefaultEdition}}}}}|variant=image|size=x25px}}</span>}}{{#if: {{#ifeq:{{{triggerrobbers|}}} | true | 1 }}{{#ifeq:{{{triggercastle|}}} | true | 1 }} | <nowiki /> <nowiki /> }}{{#ifeq: {{{triggerrobbers|}}} | true | <span class="showRobbers">{{Figure|name=Robber|edition={{{edition|{{ScoringDefaultEdition}}}}}|variant=image|size=x25px}}{{#ifeq: {{{robbersplus|}}} | true | '''+'''}}</span>}}{{#ifeq: {{{triggerteacher|}}} | true | <span class="showTeacher"> {{Figure|name=Teacher|edition={{{edition|{{ScoringDefaultEdition}}}}}|variant=image|size=x25px}}</span>}}{{#ifeq: {{{triggerringmaster|}}} | true | <span class="showRingmasterScoring{{#ifeq:{{{extendedringmaster|false}}}|true|_Extended}}"> {{Figure|name=Ringmaster|edition={{{edition|{{ScoringDefaultEdition}}}}}|variant=image|size=x25px}}</span>}}{{#if: {{#ifeq:{{{triggerrobbers|}}} | true | 1 }}{{#ifeq:{{{triggercastle|}}} | true | 1 }}{{#ifeq:{{{triggerteacher|}}} | true | 1 }}{{#ifeq:{{{triggeringmaster|}}} | true | 1 }} | </span></span> }}
 
</div data-old-td><div data-old-id="4" data-old-td {{#if: {{#ifeq: {{{corefeature|}}} | true | 1 }}{{#ifeq: {{{castle|}}} | true | 1 }} | class="scoringCore" }}>{{#ifeq: {{{castle|}}} | true | <div data-old-id="5" style="float:right" class="showCastles">{{Piece|name=CastleToken|edition={{{edition|{{ScoringDefaultEdition}}}}}|variant=image|size=x20px}}</div> }}{{#if:{{{rules|}}}|{{{rules}}} }}
{{ScoringRow
{{#if:{{{rows|}}}|{{ScoringRowEnd|opened=false}}<div data-old-id="6" data-old-tr class="{{{selectorid|}}}" {{#if: {{{dynamicselector|}}} | data-dynamic-selector="{{#urldecode:{{{dynamicselector}}}}}"}}><div data-old-id="7" data-old-td colspan="2" style="padding-left: 10px"><div data-old-id="8" data-old-table width="100%">{{{rows}}}</div data-old-table>}}{{ScoringRowEnd|opened=false}}{{#ifeq:{{{keepopen|}}}|true|<div data-old-id="9" data-old-tr class="{{{selectorid|}}}" {{#if: {{{dynamicselector|}}} | data-dynamic-selector="{{#urldecode:{{{dynamicselector}}}}}"}}><div data-old-id="10" data-old-td colspan="2">| }}</nowiki>
  |description=Sub row 3
}}
 
{{ScoringRow
  |description=Sub row 4
}}
 
{{ScoringEnd}}
 
{{ScoringRow
  |selectorid=showVistas
  |scoringtype=Feature
 
  |image={{Feature|name=Vista|variant=image}}
  |description=
'''{{Feature|name=Vista}}'''
  |line=false
  |castle=true
  |rules=
Rule text
  |rows=
{{ScoringRow
  |line=false
  |description=Sub row 1
}}
{{ScoringRow
  |description=Sub row 2
}}
 
}}
 
</table>
</noinclude>
</noinclude>

Latest revision as of 17:23, 29 April 2024

Description

Scoring row for reference pages

Params

  • id (optional) - HTML anchor
  • edition (optional) - [ C2 | C1 | ... ] - edition
  • scoringtype (required) - [ Tile | Meeple | Feature| Surveyors ] - describe which type of scoring is used
  • image (optional): image for feature, ideally generated by Template:Feature, Template:Figure or Template:Piece
  • feature (optional - deprecated) - name of feature, description is center
  • description (required) - detailed description of scored situation like: Road with inn(s) created by Road with {{Feature|name=Inn|text=inn(s)}}.
  • triggercastle (optional) - [ true | -empty- ] - mark if scoring rule trigger Castle
  • triggerringmaster (optional) - [ true | -empty- ] - mark if scoring of feature can score also Ringmaster
  • extendedringmaster (optional) - [ true | false ] - mark if scoring rule are for extended ringmaster rules (non base game features)
  • triggerrobbers (optional) - [ true | -empty- ] - mark if scoring rule trigger Robbers
  • robbersplus (optional) - [ true | -empty- ] - mark if scoring rule trigger Robbers+ only applicable when triggerrobbers=true
  • triggerteacher (optional) - [ true | -empty- ] - mark if scoring rule trigger Teacher
  • corefeature (optional) - [ true | -empty- ] - mark if scoring rule is for core feature
  • castle (optional) - [ true | -empty- ] - mark if scoring rule is valid for castle value
  • selectorid (optional) - Expansion selector ID like showInns used by Expansion Selector to show/hide parts of page by selected expansion by visitor.
  • dynamicselector (optional) - Dynamic Expansion selector ID like ['OR','showInns','showWells'] used by Expansion Selector to show/hide parts of page by selected expansion by visitor.
  • rules (required) - rules for scoring (see examples).
  • line (optional) - [ true | -empty- ] - create hr line abowe scoring row
  • style (optional) - [ dark | alert | -empty- ] - dark background in scoring row
  • rows (optional) - [ true | false ] - Optional subset of scoring rows from current scoring row - not allowed when keepopen=true
  • keepopen (optional) - [ true | false ] - not close for another lines otherwise close with Template:ScoringRowEnd

Todo

  1. Include Scoring CSS here to show scoringTile / scoringFeature / ...
  2. Include this page to allow Expansion Selector run here
  3. Solve C1/C2 images differences
  4. Solve C2/C3 rule changes
  5. Solve different C1/C2 texting
  6. Dynamic expansion selectors for example data-expansion-selector="[ 'AND', 'showGamblersLuck', 'showFamilyFeud']" without need to hardcode define. Idea explained here Dynamic selectors nad used for scoring rule in city with Piece|name=CoatOfArmsGrey
  7. Copy of scoring rules between features
    1. <section> for same scoring copying over features, like Ghosts
    2. Use Ringmaster in scoring same as Ghosts
    3. Use Fairy in scoring same as Ghosts
  8. Different approach
    1. Place scoring of Ghosts, Ringmaster, Fairy before Scoring Table

In Final scoring

  1. Reorder scoring table to prevent forget some scorings like Fairy
  2. Place most important thing on top of table, which can destroy game situation with removing meeples during final scoring
    1. Big Top Scoring
  3. If Fairy and Ringmaster will not be defined like Ghosts, then also move this on the beginning
    1. Fairy
    2. Ringmaster

Examples

Please select all your expansions to show only interactions related to you. All other interactions are hidden.
Expansion selector requires JavaScript.
Preparing expansion selector...
See code
Road (thiefhighwayman) Token Castle C2.png Figure Robber red.png+
1 point / Tile tile
style=alert
Road (thiefhighwayman) Token Castle C2.png Figure Robber red.png+
1 point / Tile tile

<div data-old-id="0" data-old-tr {{#if:{{{id|}}}|id="{{{id}}}"}} class="{{{selectorid|}}} scoring{{{scoringtype|}}}" {{#switch: {{{style|}}} | dark = bgcolor="#d8d8d8" | alert = bgcolor="#FBC9C3" }} {{#if: {{{dynamicselector|}}} | data-dynamic-selector="{{#urldecode:{{{dynamicselector}}}}}" }} valign="top" style="grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));grid-gap: 5px;grid-auto-rows: auto;width: auto;display:grid;background-color: rgba(255,255,255,0.8);margin-bottom:5px"> <div data-old-id="1" data-old-td {{#if:{{{feature|}}}|style="width:99%; text-align:center !important"|style="display:block" }}> {{#if: {{{image|}}} | <div data-old-id="2" class="floatleft" style="min-width:50px;text-align:center;">{{{image}}}</div>}}{{#if: {{{feature|}}} | <div data-old-id="3" class="floatleft" style="min-width:50px;">'''{{{feature|}}}'''</div>}}{{{description}}} {{#if: {{#ifeq:{{{triggerrobbers|}}} | true | 1 }}{{#ifeq:{{{triggercastle|}}} | true | 1 }}{{#ifeq:{{{triggerteacher|}}} | true | 1 }}{{#ifeq:{{{triggerringmaster|}}} | true | 1 }} | <span data-dynamic-selector="['OR'{{#ifeq: {{{triggercastle|}}} | true | ,'showCastles'}}{{#ifeq: {{{triggerrobbers|}}} | true | ,'showRobbers' }}{{#ifeq: {{{triggerteacher|}}} | true | ,'showTeacher' }}{{#ifeq: {{{triggerringmaster|}}} | true | ,'showRingmasterScoring{{#ifeq:{{{extendedringmaster|false}}}|true|_Extended}}' }}]"> → <span class="wica-white-box" style="display: inline-block; height: 27px; padding: 3px 3px;">}}{{#ifeq:{{{triggercastle|}}}|true| <span style="padding: 0px;"><span class="showCastles">{{Feature|name=Castle|edition={{{edition|{{ScoringDefaultEdition}}}}}|variant=image|size=x25px}}</span>}}{{#if: {{#ifeq:{{{triggerrobbers|}}} | true | 1 }}{{#ifeq:{{{triggercastle|}}} | true | 1 }} | <nowiki /> <nowiki /> }}{{#ifeq: {{{triggerrobbers|}}} | true | <span class="showRobbers">{{Figure|name=Robber|edition={{{edition|{{ScoringDefaultEdition}}}}}|variant=image|size=x25px}}{{#ifeq: {{{robbersplus|}}} | true | '''+'''}}</span>}}{{#ifeq: {{{triggerteacher|}}} | true | <span class="showTeacher"> {{Figure|name=Teacher|edition={{{edition|{{ScoringDefaultEdition}}}}}|variant=image|size=x25px}}</span>}}{{#ifeq: {{{triggerringmaster|}}} | true | <span class="showRingmasterScoring{{#ifeq:{{{extendedringmaster|false}}}|true|_Extended}}"> {{Figure|name=Ringmaster|edition={{{edition|{{ScoringDefaultEdition}}}}}|variant=image|size=x25px}}</span>}}{{#if: {{#ifeq:{{{triggerrobbers|}}} | true | 1 }}{{#ifeq:{{{triggercastle|}}} | true | 1 }}{{#ifeq:{{{triggerteacher|}}} | true | 1 }}{{#ifeq:{{{triggeringmaster|}}} | true | 1 }} | </span></span> }} </div data-old-td><div data-old-id="4" data-old-td {{#if: {{#ifeq: {{{corefeature|}}} | true | 1 }}{{#ifeq: {{{castle|}}} | true | 1 }} | class="scoringCore" }}>{{#ifeq: {{{castle|}}} | true | <div data-old-id="5" style="float:right" class="showCastles">{{Piece|name=CastleToken|edition={{{edition|{{ScoringDefaultEdition}}}}}|variant=image|size=x20px}}</div> }}{{#if:{{{rules|}}}|{{{rules}}} }} {{#if:{{{rows|}}}|{{ScoringRowEnd|opened=false}}<div data-old-id="6" data-old-tr class="{{{selectorid|}}}" {{#if: {{{dynamicselector|}}} | data-dynamic-selector="{{#urldecode:{{{dynamicselector}}}}}"}}><div data-old-id="7" data-old-td colspan="2" style="padding-left: 10px"><div data-old-id="8" data-old-table width="100%">{{{rows}}}</div data-old-table>}}{{ScoringRowEnd|opened=false}}{{#ifeq:{{{keepopen|}}}|true|<div data-old-id="9" data-old-tr class="{{{selectorid|}}}" {{#if: {{{dynamicselector|}}} | data-dynamic-selector="{{#urldecode:{{{dynamicselector}}}}}"}}><div data-old-id="10" data-old-td colspan="2">| }}