Template:Showsearchnews: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{| cellspacing="5" cellpadding="0" style="margin:0em 0em 1em 0em; border:1px solid #1DA0E7; background:#B3DDF4;width:100%"
<includeonly>{| cellspacing="5" cellpadding="0" style="margin:0em 0em 1em 0em; border:1px solid #1DA0E7; background:#B3DDF4;width:100%"
| ''''' Related Topics from WikiDoc News'''''
| ''''' Related Topics from WikiDoc News'''''
|-
|-
|{{searchnews|articlecount=3|find={{PAGENAME}}{{#if:{{#var:searchnews|}}|{{!}}find1={{#var:searchnews}}}}}}
|{{searchnews|articlecount=3|find={{PAGENAME}}{{#if:{{#var:searchnews|}}|{{!}}find1={{#var:searchnews}}}}}}
|}
|}</includeonly><noinclude>
== Template usage ==
* Meant to be included in the footer of each page according to [[:Mediawiki:bottom-notice-ns-0]]
* Search terms determined on each page, by using [[:Template:Keywords]], as follows:
: <pre><nowiki>{{keywords|term1|term2|....}}</nowiki></pre>
: This template does two things --
:# Adds keywords to <nowiki><meta></nowiki> tags for SEO
:# Includes keywords as search terms for related news articles
 
</noinclude>

Revision as of 07:13, 17 February 2009

Template usage

{{keywords|term1|term2|....}}
This template does two things --
  1. Adds keywords to <meta> tags for SEO
  2. Includes keywords as search terms for related news articles