Simple node article in twig of Drupal 8/9

Not always goes according to the plan, and it seemed such a simple task as a reflection of the nail article from the amount of id node and 1000 can cause difficulties.

Previously, for such a delusion, I used a module for the nervous field of the type of expression, but on one of the hosting there was a terrible work of the composer, so I had to do something differently, the article had to be displayed only for appearance.

{% set id = node.id|trim %}
{{ id + 10000 }}

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
The comment language code.