How to use the next-generation spaced repetition algorithm FSRS on Anki?

I have questions about setting this up for deck specific parameters (note: I don’t use subdecks).

  1. In the code that is supposed to be pasted into each card’s front template (image 1) - should the word Deck literally say Deck, or should it say the name of the deck that I want (i.e. Spanish)

  2. In image 1 it says/shows to insert that code onto the front template, and in the screenshot it is under the field name at the bottom. In image 2 it says to insert that code as the first line of the front template. Does this matter?

  3. Does the location of the Deck code snippet (image 1) change if:
    a) I have a conditional card template (see image 3 for an example) i.e. should the snippet go between the #field and /field; and if so, does it need to be the first line or can it be the last?
    – OR –
    b) if I have a card template that utilizes a script in it. i.e should it go between script and /script, and if so should it be the first line or can it be the last?

  4. For each deck that I want specific parameters, will I just repeat the part of the code in image 2 where the top red arrow is pointing — if (deck_name== etc etc etc hardInterval = 1.2; — for each deck? What happens to a deck’s scheduling if I do not specify its parameters here (i.e. I have 3 decks but only want two of them to be affected).

Image 1

Image 2

Image 3

image