Template:Mobile: Difference between revisions

m
Trying to fix functionality after testing (again hahahahaa)
m (Bolding link)
m (Trying to fix functionality after testing (again hahahahaa))
Line 1: Line 1:
<includeonly><div id="MobileLink" style="{{#ifeq: {{{template|}}} | true | display: block; | display: none; }} margin: 1em auto; padding: 10px; background-color: lemonchiffon; border: 2px solid darkgoldenrod; text-align: center;">
<includeonly><div id="MobileLink" style="{{#ifeq: {{{template|}}} | true | display: block; | display: none; }} margin: 1em auto; padding: 10px; background-color: lemonchiffon; border: 2px solid darkgoldenrod; text-align: center;  
'''This page is not optimized for mobile users!'''<br/>
@media screen and (max-width: 767px) {
display: block; /* Show the div on devices with a screen width up to 767px */
}">'''This page is not optimized for mobile users!'''<br/>
For a better reading experience on mobile, visit the mobile-optimized version of this page: '''[[{{#if: {{{1|}}} | {{{1}}}/Mobile | {{PAGENAME}}/Mobile }}]]'''
For a better reading experience on mobile, visit the mobile-optimized version of this page: '''[[{{#if: {{{1|}}} | {{{1}}}/Mobile | {{PAGENAME}}/Mobile }}]]'''
</div>{{Clear}}</includeonly>
</div>{{Clear}}</includeonly>