Difference between revisions of "Template:ScoringHelperHansStatueText"

From Wikicarpedia
Jump to navigation Jump to search
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div class="showHansStatue">'''{{#ifeq:{{{negative|false}}}|true|1/2|&times;2}}''' points{{#if:{{{for|}}}| for {{{for}}}}}{{#if:{{{feature|}}}| when {{{feature}}}}} {{#if:{{{for|}}}{{{feature|}}}|| <code>not defined ''for'' or ''feature'' parameter</code>{{Category|Missing parameters}}}} on tile with '''{{Figure|name=HansStatue|edition={{{edition|{{ScoringDefaultEdition}}}}}|variant=imageandtext|size={{{size|x25px}}}|text=Hans Statue}}'''</div></includeonly><noinclude>{{Breadcrumbs
<includeonly><div class="showHansStatue">'''{{#ifeq:{{{negative|false}}}|true|1/2|&times;2}}''' points{{#if:{{{for|}}}|<nowiki /> for {{{for}}}}}{{#if:{{{when|}}}|<nowiki /> when {{{when}}}}}{{#if:{{{for|}}}{{{when|}}}||<nowiki /> <code>not defined ''for'' or ''when'' parameter</code>{{Category|Missing parameters}}}} on tile with '''{{Figure|name=HansStatue|edition={{{edition|{{ScoringDefaultEdition}}}}}|variant=imageandtext|size={{{size|x25px}}}|text=Hans Statue}}'''{{#if:{{{exception|}}}|, {{{exception}}}}}.</div>{{#if:{{{feature|}}}|{{Category|Editor Manual - ScoringHelperHansStatueText - old parameter feature}}}}</includeonly><noinclude>{{Breadcrumbs
|link1={{EditorManualLink}}
|link1={{EditorManualLink}}
|link2=[[:Category:ScoringRow]]
|link2=[[:Category:ScoringRow]]
Line 12: Line 12:
* <code>edition</code> (required) - [ '''<code>C2</code>''' | <code>C1</code> | ... ] - edition
* <code>edition</code> (required) - [ '''<code>C2</code>''' | <code>C1</code> | ... ] - edition
* <code>for</code> (optional)* - specified situation for position - generate text <code><nowiki>for {{{for}}}</nowiki></code>
* <code>for</code> (optional)* - specified situation for position - generate text <code><nowiki>for {{{for}}}</nowiki></code>
* <code>feature</code> (optional)* - name of feature / mechanics - generate text <code><nowiki>where {{{feature}}}</nowiki></code>
* <code>when</code> (optional)* - when happen this situation <code><nowiki>when {{{when}}}</nowiki></code>
* <code>size</code> (optional) - '''<code>x25px</code>''' - size of images
* <code>size</code> (optional) - '''<code>x25px</code>''' - size of images
* <code>negative</code> (optional) - [ <code>true</code> | '''<code>false</code>''' ] - negative scoring (1/2) or not (&times2)
* <code>negative</code> (optional) - [ <code>true</code> | '''<code>false</code>''' ] - negative scoring (1/2) or not (&times;)
* <code>exception</code> (optional) - exception showed at end of this helper
* * one from <code>for</code> and <code>when</code> is required


== Examples ==
== Examples ==
Line 21: Line 23:


{{ScoringRowExample
{{ScoringRowExample
   |parameters=edition=C2{{!}}feature=Fairy
   |parameters=edition=C2{{!}}when=Fairy
   |example=
   |example=
{{ScoringHelperHansStatueText
{{ScoringHelperHansStatueText
   |edition=C2
   |edition=C2
   |feature=Fairy
   |when=Fairy
}} }}
}} }}


{{ScoringRowExample
{{ScoringRowExample
   |parameters=edition=C1{{!}}feature=Tower foundation{{!}}negative=true
   |parameters=edition=C1{{!}}when=Tower foundation{{!}}negative=true
   |example=
   |example=
{{ScoringHelperHansStatueText
{{ScoringHelperHansStatueText
   |edition=C1
   |edition=C1
   |feature=Tower foundation
   |when=Tower foundation
   |negative=true
   |negative=true
}} }}
}} }}


{{ScoringRowExample
{{ScoringRowExample
   |parameters=edition=C2{{!}}where=for fruit tree
   |parameters=edition=C2{{!}}for=fruit tree
   |example=
   |example=
{{ScoringHelperHansStatueText
{{ScoringHelperHansStatueText
   |edition=C2
   |edition=C2
   |where=for fruit tree
   |for=fruit tree
}} }}
 
{{ScoringRowExample
  |parameters=edition=C2{{!}}for=garden{{!}}exception=but Hans Statue is not on placed tile
  |example=
{{ScoringHelperHansStatueText
  |edition=C2
  |for=garden
  |exception=but Hans Statue is not on placed tile
}} }}
}} }}
</noinclude>
</noinclude>

Latest revision as of 09:00, 11 May 2024

Description

Scoring helper to show text about Hans Statue scoring.

Params

  • edition (required) - [ C2 | C1 | ... ] - edition
  • for (optional)* - specified situation for position - generate text for {{{for}}}
  • when (optional)* - when happen this situation when {{{when}}}
  • size (optional) - x25px - size of images
  • negative (optional) - [ true | false ] - negative scoring (1/2) or not (×)
  • exception (optional) - exception showed at end of this helper
  • * one from for and when is required

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...
edition=C2|when=Fairy
×2 points when Fairy on tile with Figure HansStatue.png Hans Statue.
edition=C1|when=Tower foundation|negative=true
1/2 points when Tower foundation on tile with Figure HansStatue.png Hans Statue.
edition=C2|for=fruit tree
×2 points for fruit tree on tile with Figure HansStatue.png Hans Statue.
edition=C2|for=garden|exception=but Hans Statue is not on placed tile
×2 points for garden on tile with Figure HansStatue.png Hans Statue, but Hans Statue is not on placed tile.