Template:IsFpSet OFF/doc
Jump to navigation
Jump to search
- 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.