Difference between revisions of "Template:IconTemplate"

From Wikicarpedia
Jump to navigation Jump to search
(Created page with "{{#if: {{{text|}}}{{{description|}}}{{{selectorid|}}}{{{dynamicselector|}}} | <span id="{{{selectorid|}}}" {{#if:{{{dynamicselector|}}}|data-dynamic-selector="{{{dynamicselector}}}"}}> }}[[File:{{{image}}}|{{{alt}}}|16px|text-bottom|class=wica-icon|link=|alt={{{alt}}]]{{#if: {{{text|}}} | <nowiki /> <nowiki />{{{text}}} }}{{#ifeq: {{{description}}} | true |   – {{{descriptiontext}}} }}{{#if: {{{text|}}}{{{description|}}}{{{selectorid|}}}{{{dynamicselector|}}} | <b...")
 
 
Line 1: Line 1:
{{#if: {{{text|}}}{{{description|}}}{{{selectorid|}}}{{{dynamicselector|}}} | <span id="{{{selectorid|}}}" {{#if:{{{dynamicselector|}}}|data-dynamic-selector="{{{dynamicselector}}}"}}> }}[[File:{{{image}}}|{{{alt}}}|16px|text-bottom|class=wica-icon|link=|alt={{{alt}}]]{{#if: {{{text|}}} | <nowiki /> <nowiki />{{{text}}} }}{{#ifeq: {{{description}}} | true | &nbsp; – {{{descriptiontext}}} }}{{#if: {{{text|}}}{{{description|}}}{{{selectorid|}}}{{{dynamicselector|}}} | <br /></span>}}<noinclude><languages />{{#if: {{#translation:}} | | [[Category:Translatable_templates]]}}
{{#if: {{{text|}}}{{{description|}}}{{{selectorid|}}}{{{dynamicselector|}}} | <span id="{{{selectorid|}}}" {{#if:{{{dynamicselector|}}}|data-dynamic-selector="{{{dynamicselector}}}"}}> }}[[File:{{{image}}}|{{{alt}}}|16px|text-bottom|class=wica-icon|link=|alt={{{alt}}}]]{{#if: {{{text|}}} | <nowiki /> <nowiki />{{{text}}} }}{{#ifeq: {{{description}}} | true | &nbsp; – {{{descriptiontext}}} }}{{#if: {{{text|}}}{{{description|}}}{{{selectorid|}}}{{{dynamicselector|}}} | <br /></span>}}<noinclude><languages />{{#if: {{#translation:}} | | [[Category:Translatable_templates]]}}
{{Breadcrumbs|link1={{EditorManualLink}} }}
{{Breadcrumbs|link1={{EditorManualLink}} }}
== Description ==
== Description ==

Latest revision as of 23:52, 19 May 2024

[[File:{{{image}}}|{{{alt}}}|16px|text-bottom|class=wica-icon|link=|alt={{{alt}}}]]

Description

Template to generate Icons like {{IconWorld}} and others.

Parameters

  • image - (required) - Icon image
  • alt - (required) - Simple description for icon type
  • description - (optional) [ true | -empty- ] - Show description about icon included in Icons page, always in separated line.
  • descriptiontext - (optional) - Description for icon type showed when description=true
  • text - (optional) Text following icon in block like rule text, always in separated line.
  • selectorid - (optional) Expansion selector id like showFairy
  • dynamicselector - (optional) Dynamic expansion selector like ['OR','showFairy','showDragon']

Examples

Code Output
{{IconWorld}} Interpretation from the Community
{{IconWorld|description=true}} Interpretation from the Community  – CarcassonneCentral, WiCa or CAR authors rule interpretation and clarification with title
{{IconWorld|text=This is extra rule}} Interpretation from the Community This is extra rule
{{IconWorld|text=Text 1st line}}{{IconWorld|text=Text 2nd line}} Interpretation from the Community Text 1st line
Interpretation from the Community Text 2nd line