Difference between revisions of "Template:Mmwiki"

From VideoLAN Wiki
Jump to navigation Jump to search
(simplify template calls after reading MediaWiki documentation at https://www.mediawiki.org/wiki/Special:MyLanguage/Help:External_searches)
Line 1: Line 1:
 
<div class="noprint" style="clear: right; border: solid #aaa 1px; margin: 0 0 1em 1em; font-size: 90%; background: #f9f9f9; width: 250px; padding: 4px; spacing: 0px; text-align: left; float: right;">
 
<div class="noprint" style="clear: right; border: solid #aaa 1px; margin: 0 0 1em 1em; font-size: 90%; background: #f9f9f9; width: 250px; padding: 4px; spacing: 0px; text-align: left; float: right;">
 
<div style="margin-left: 10px;">[[Multimedia Wiki]] has information on
 
<div style="margin-left: 10px;">[[Multimedia Wiki]] has information on
{{ #if: {{{3|}}}
+
{{ #if: {{{2|}}}
 
   |these entries:
 
   |these entries:
 
   |this entry:
 
   |this entry:
 
}}
 
}}
 
<div style="margin-left: 30px;">
 
<div style="margin-left: 30px;">
{{ #if: {{{3|}}}
+
{{ #if: {{{2|}}}
   |*'''''[http://wiki.multimedia.cx/index.php?title={{{2|{{{1}}}}}} {{{1}}}]'''''
+
   |*'''''[http://wiki.multimedia.cx/index.php?title={{urlencode:{{{1}}}}} {{{1}}}]'''''
   |'''''[http://wiki.multimedia.cx/index.php?title={{{2|{{{1}}}}}} {{{1}}}]'''''
+
   |'''''[http://wiki.multimedia.cx/index.php?title={{urlencode:{{{1}}}}} {{{1}}}]'''''
 
}}
 
}}
{{ #if: {{{3|}}}
+
{{ #if: {{{2|}}}
   |*'''''[http://wiki.multimedia.cx/index.php?title={{{4|{{{3}}}}}} {{{3}}}]'''''
+
   |*'''''[http://wiki.multimedia.cx/index.php?title={{urlencode:{{{2}}}}} {{{2}}}]'''''
 
   |
 
   |
 
}}
 
}}
{{ #if: {{{5|}}}
+
{{ #if: {{{3|}}}
   |*'''''[http://wiki.multimedia.cx/index.php?title={{{6|{{{5}}}}}} {{{5}}}]'''''
+
   |*'''''[http://wiki.multimedia.cx/index.php?title={{urlencode:{{{3}}}}} {{{3}}}]'''''
 
   |
 
   |
 
}}</div>
 
}}</div>
Line 23: Line 23:
 
Multimedia wiki link.  
 
Multimedia wiki link.  
 
  <nowiki>{{ mmwiki | title | title2 }}</nowiki>
 
  <nowiki>{{ mmwiki | title | title2 }}</nowiki>
 
Normally you can just use "title" and skip "title2". But if "title" has SPACES in it, replace them with underscores in title2.
 
 
eg
 
<nowiki>{{ mmwiki | RealMedia }}</nowiki>
 
 
or
 
<nowiki>{{ mmwiki | Main page | Main_page }}</nowiki>
 
  
 
</noinclude>
 
</noinclude>

Revision as of 06:05, 6 November 2016

Multimedia Wiki has information on

this entry:

Multimedia wiki link.

{{ mmwiki | title | title2 }}