Template:IsFpSet OFF
Jump to navigation
Jump to search
Template documentation (for the template shown above, sometimes hidden or invisible)
- Is Flag parameter Set.
- Checks if a given parameter, by name, is set or not set.
- Main reason here is to be able to write some shorter code instead of the related full code inside templates to do this job.
- Only intended to be used with first-level flag-type parameters. (Set vs not set. Content, if set, is ignored)
- Second-level flag-type parameters are content related. (Empty or not empty. Content, if not empty, should also be ignored.)
- (Bool-type would be: 0/1, F/T, false/true, etc. Although only one format-case should be used globally. Not used on RoB as far as I know.)
- (Bit-flag: Some positive integer value. Not used on RoB as far as I know.)
- Usage.
{{isFpSet|parameter-name}}
- General usage.
{{#if:{{isFpSet|<parameter-name>}}|<True part>|<False part(optional)>}}
- Result.
- <none empty string>: if the target parameter was set.
- <empty string>: if the target parameter was not set.
Visit Template:IsFpSet OFF/doc to edit this text! (How does this work?)
- a)"db: [11, {{{ 11 }}}, <empty>, 22, {{{pn2}}}]
"
- b)"db: [pn, 22, 22, 22, {{{pn2}}}]
str"