Template:LanguageBar/flagline: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
| {{#switch:{{PROTECTIONEXPIRY:move|{{NAMESPACE}}:{{{lang}}}/{{{param1}}}}}{{NAMESPACE}} | | {{#switch:{{PROTECTIONEXPIRY:move|{{NAMESPACE}}:{{{lang}}}/{{{param1}}}}}{{NAMESPACE}} | ||
<!-- if Category page doesn't exist check if any pages are in that category and if so show flag as red --> | <!-- if Category page doesn't exist check if any pages are in that category and if so show flag as red --> | ||
| Category = {{#ifeq:{{PAGESINCATEGORY:{{{lang}}}/{{{param1}}}}}|0 | | Category = {{#ifeq:{{PAGESINCATEGORY:{{{lang}}}/{{{param1}}}}}|0 | ||
Line 25: | Line 23: | ||
||{{NAMESPACE}} = <!-- empty string protection expiry means page doesn't exist so no flag is shown --> | |||
<!-- if move protection is set to 9/9/9999 that's a mark to set the flag as orange (same color that Template:translate uses) --> | <!-- if move protection is set to 9/9/9999 that's a mark to set the flag as orange (same color that Template:translate uses) --> | ||
| 99990909080000{{NAMESPACE}} = <span style="background:rgba(242, 133, 0,0.3); border:1px solid rgba(242, 133, 0,1); border-radius:2px; padding:0 1px; margin:1px"><span style="user-select:none; position:relative; top:-5px">{{Flag|{{{lang}}}|link={{fullurl:{{NAMESPACE}}:{{{lang}}}/{{{param1}}}|redirect=no}}}}</span></span> | | 99990909080000{{NAMESPACE}} = <span style="background:rgba(242, 133, 0,0.3); border:1px solid rgba(242, 133, 0,1); border-radius:2px; padding:0 1px; margin:1px"><span style="user-select:none; position:relative; top:-5px">{{Flag|{{{lang}}}|link={{fullurl:{{NAMESPACE}}:{{{lang}}}/{{{param1}}}|redirect=no}}}}</span></span> |
Revision as of 10:03, 10 August 2024
[[File:Flag-{{{lang}}}.png|link=Template:{{{lang}}}/{{{param1}}}|16px|]]