Jump to navigation
Jump to search
m
Text replacement - "{{t|!}}" to "<nowiki>{{!}}</nowiki>"
Notmyhandle (talk | contribs) (floatingtoc) |
m (Text replacement - "{{t|!}}" to "<nowiki>{{!}}</nowiki>") |
||
Line 122: | Line 122: | ||
The <nowiki>{{#if:}}</nowiki> function is what lets us manipulate wiki code in this way. We can test for existence within a parameter, then display a certain text if it exists, and a certain text if it doesn't. This way we can display and hide text when empty spaces would normally exist. Other parser functions like <nowiki>{{#if:}}</nowiki> exist and are used for different purposes. Usage of these functions is outlined below. | The <nowiki>{{#if:}}</nowiki> function is what lets us manipulate wiki code in this way. We can test for existence within a parameter, then display a certain text if it exists, and a certain text if it doesn't. This way we can display and hide text when empty spaces would normally exist. Other parser functions like <nowiki>{{#if:}}</nowiki> exist and are used for different purposes. Usage of these functions is outlined below. | ||
Note: use {{ | Note: use <nowiki>{{!}}</nowiki> to replace the use of pipes (the "|" character). If you don't, the conditional argument (e.g. <nowiki>{{#if:}}</nowiki>) will end abruptly. Typically, <nowiki>{{!}}</nowiki> is used when generating new rows of a table (HTML TR/TD) within a conditional argument. | ||
=== <nowiki>{{#if:}}</nowiki> === | === <nowiki>{{#if:}}</nowiki> === |