Difference between revisions of "Template:News feeds"

From Earth Science Information Partners (ESIP)
Line 2: Line 2:
 
     |{{#urldecode: {{#urlget:News_filter[Portal]}}}}
 
     |{{#urldecode: {{#urlget:News_filter[Portal]}}}}
 
     |{{ROOTPAGENAME}}
 
     |{{ROOTPAGENAME}}
   }}]] News</span>
+
   }}]] News</span><!--
{{#arraymap: {{#ask:  
+
 
  [[Property:News feed]]   
+
-->{{#arraymap: {{#ask:  
  |?Allows value
+
    [[Property:News feed]]   
  |mainlabel=-  
+
    |?Allows value
  |headers=hide  
+
    |mainlabel=-  
}}  
+
    |headers=hide  
|,
+
  }}  
|@
+
  |,
|{{#queryformlink: form=News filter
+
  |@
  |link text=<span class="small mw-ui-button {{#ifeq:{{#urldecode:{{#urlget:News_filter[News feed]}}}}|@|mw-ui-progressive|}}">'''@'''</span>
+
  |{{#queryformlink: form=News filter
  |News filter[News feed]={{#ifeq:{{#urldecode:{{#urlget:News_filter[News feed]}}}}|@||@}}
+
    |link text=<span class="small mw-ui-button {{#ifeq:{{#urldecode:{{#urlget:News_filter[News feed]}}}}|@|mw-ui-progressive|}}">'''@'''</span>
  |News filter[News tag]={{#urldecode:{{#urlget:News_filter[News tag]}}}}
+
    |News filter[News feed]={{#ifeq:{{#urldecode:{{#urlget:News_filter[News feed]}}}}|@||@}}
  |News filter[Year]={{#urlget:News_filter[Year]}}
+
    |News filter[News tag]={{#urldecode:{{#urlget:News_filter[News tag]}}}}
  |News filter[News status]={{#urldecode:{{#urlget:News_filter[News status]}}}}
+
    |News filter[Year]={{#urlget:News_filter[Year]}}
  |News filter[News is sticky]={{#urldecode:{{#urlget:News_filter[News is sticky]}}}}
+
    |News filter[News status]={{#urldecode:{{#urlget:News_filter[News status]}}}}
  |News filter[News repeat every year]={{#urldecode:{{#urlget:News_filter[News repeat every year]}}}}
+
    |News filter[News is sticky]={{#urldecode:{{#urlget:News_filter[News is sticky]}}}}
  |News filter[Portal]={{#if: {{#urldecode: {{#urlget:News_filter[Portal]}}}}
+
    |News filter[News repeat every year]={{#urldecode:{{#urlget:News_filter[News repeat every year]}}}}
    |{{#urldecode: {{#urlget:News_filter[Portal]}}}}
+
    |News filter[Portal]={{#if: {{#urldecode: {{#urlget:News_filter[Portal]}}}}
    |{{ROOTPAGENAME}}
+
      |{{#urldecode: {{#urlget:News_filter[Portal]}}}}
  }}
+
      |{{ROOTPAGENAME}}
 +
    }}
 
   |_run=1
 
   |_run=1
 
  }}
 
  }}

Revision as of 04:50, July 20, 2020

Filter news by Portals / feeds.