Difference between revisions of "Template:IconDeprecated"

From Wikicarpedia
Jump to navigation Jump to search
Line 1: Line 1:
{{#if: {{{text|}}}{{{description|}}} | <span>}}[[File:Icon_Deprecated.png|<translate><!--T:2--> Deprecated rule</translate>|16px|text-bottom|class=wica-icon|link=|alt=<translate><!--T:3--> Deprecated rule</translate>]]{{#if: {{{text|}}} | <nowiki /> <nowiki />{{{text}}} }}{{#ifeq: {{{description}}} | true | &nbsp; – <translate><!--T:4--> Old rule which is not valid yet, because was changed or removed from newer editions or releases.</translate> }}{{#if: {{{text|}}}{{{description|}}} | <br /></span>}}<noinclude><languages />{{#if: {{#translation:}} | | [[Category:Translatable_templates]]}}
{{#if: {{{text|}}}{{{description|}}}{{{selectorid|}}}{{{dynamicselector|}}} | <span id="{{{selectorid|}}}" {{#if:{{{dynamicselector|}}}|data-dynamic-selector="{{{dynamicselector}}}"}} }}[[File:Icon_Deprecated.png|<translate><!--T:2--> Deprecated rule</translate>|16px|text-bottom|class=wica-icon|link=|alt=<translate><!--T:3--> Deprecated rule</translate>]]{{#if: {{{text|}}} | <nowiki /> <nowiki />{{{text}}} }}{{#ifeq: {{{description}}} | true | &nbsp; – <translate><!--T:4--> Old rule which is not valid yet, because was changed or removed from newer editions or releases.</translate> }}{{#if: {{{text|}}}{{{description|}}}{{{selectorid|}}}{{{dynamicselector|}}} | <br /></span>}}<noinclude><languages />{{#if: {{#translation:}} | | [[Category:Translatable_templates]]}}
{{Breadcrumbs|link1={{EditorManualLink}} }}
{{Breadcrumbs|link1={{EditorManualLink}} }}
== Description ==
== Description ==
Line 7: Line 7:
* <code>text</code> - (optional) Text following icon in <code><nowiki>block</nowiki></code> like rule text, always in separated line.
* <code>text</code> - (optional) Text following icon in <code><nowiki>block</nowiki></code> like rule text, always in separated line.
* <code>description=true</code> - (optional) Show description about icon included in [[Icons]] page, always in separated line.
* <code>description=true</code> - (optional) Show description about icon included in [[Icons]] page, always in separated line.
* <code>selectorid</code> - (optional) Expansion selector id like <code>showFairy</code>
* <code>dynamicselector</code> - (optional) Dynamic expansion selector like <code>['OR','showFairy','showDragon']</code>


== Translation note ==
== Translation note ==

Revision as of 15:48, 29 April 2024

Deprecated rule

Description

Include icon for deprecated rule with title (for mouse over).

Parameters

  • text - (optional) Text following icon in block like rule text, always in separated line.
  • description=true - (optional) Show description about icon included in Icons page, always in separated line.
  • selectorid - (optional) Expansion selector id like showFairy
  • dynamicselector - (optional) Dynamic expansion selector like ['OR','showFairy','showDragon']

Translation note

For old translations of icon description check history of translation of page on Icons/en

Examples

Code Output
{{IconDeprecated}} Deprecated rule
{{IconDeprecated|description=true}} Deprecated rule  – Old rule which is not valid yet, because was changed or removed from newer editions or releases.
{{IconDeprecated|text=This is extra rule}} Deprecated rule This is extra rule
{{IconDeprecated|text=Text 1st line}}{{IconDeprecated|text=Text 2nd line}} Deprecated rule Text 1st line
Deprecated rule Text 2nd line