Template:FP-Layout: Difference between revisions
Template page
More actions
add comment on logic of {{#ifeq:{{Str find|{{PAGENAME}}|black and white}}|-1|E5D4A1|d3d3d3}} |
correct box-sizing: border-box; padding: 0; border-spacing: 8px; remove deprecated HTML |
||
| Line 1: | Line 1: | ||
<noinclude>{|</noinclude> | <noinclude>{|</noinclude>style="width:100%; clear:both; margin:0.5em auto; background-color:var(--background-color-warning-subtle,#faf5e6); color: var(--color-base, #202122); box-sizing: border-box; padding: 0; border-spacing: 8px; border:2px solid #{{#ifeq:{{Str find|{{PAGENAME}}|black and white}}|-1|E5D4A1|d3d3d3}};" dir="{{#dir:{{{lang|{{int:lang}}}}}}}" class="layouttemplate"<noinclude><!-- *** This logic checks if the page name contains the string "black and white", such as [[Category:Featured contemporary black and white photographs]], which will then make the border gray to match the FP logo for B&W FP than normal FP which is gold: {{#ifeq:{{Str find|{{PAGENAME}}|black and white}}|-1|E5D4A1|d3d3d3}} *** --> | ||
| example | | example | ||
|} | |} | ||