Template:post-film
From Homestar Runner Wiki
(Difference between revisions)
(add logic to make this more useful: make comma conditional, make use of film tag conditional; also format code for readability) |
(switch to shortcut version of the template) |
||
(includes 4 intermediate revisions) | |||
Line 1: | Line 1: | ||
{{#if:{{{1|}}}|<!-- | {{#if:{{{1|}}}|<!-- | ||
- | -->{{#if:{{{first|}}}||, }}<!-- /* suppress comma if "first" parameter is set */ | + | -->{{#if:{{{maybefirst|}}}|, {{b}}|<!-- /* "maybefirst" parameter only adds a comma if film1 is set, for this work right "first" MUST be set to "true" */ |
+ | -->{{#if:{{{first|}}}||, {{b}}}}<!-- /* suppress comma if "first" parameter is set */ | ||
+ | -->}}<!-- /* end #if:{{{maybefirst|}}} */ | ||
-->{{#if:{{{textonly|}}}<!-- /* suppress {{Film}} template if "textonly" parameter is set */ | -->{{#if:{{{textonly|}}}<!-- /* suppress {{Film}} template if "textonly" parameter is set */ | ||
-->|{{{1|}}}<!-- | -->|{{{1|}}}<!-- |
Current revision as of 13:33, 22 December 2022
- See {{post}}
- Helper function to add comma-separated film entries