Template:Mmwiki: Difference between revisions

From VideoLAN Wiki
Jump to navigation Jump to search
attempting to allow overloading with up to six parameters
m Position <noinclude>
 
(12 intermediate revisions by the same user not shown)
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;">
{{#if:{{{3|}}}
<div style="margin-left: 10px;">[[Multimedia Wiki]] has information on
  | {{Side box|text=[[Multimedia Wiki]] has information on these entries:
{{ #if: {{{3|}}}
        |link1=http://wiki.multimedia.cx/index.php/{{urlencode:{{{1|Main_Page}}}|wiki}}
  |this entry:
        |label1={{{label1|{{{1}}}}}}
  |these entries:
        |link2=http://wiki.multimedia.cx/index.php/{{urlencode:{{{2|Main_Page}}}|wiki}}
}}
        |label2={{{label2|{{{2}}}}}}
<div style="margin-left: 30px;">
        |link3=http://wiki.multimedia.cx/index.php/{{urlencode:{{{3|Main_Page}}}|wiki}}
*'''''[http://wiki.multimedia.cx/index.php?title={{{2|{{{1}}}}}} {{{1}}}]'''''
        |label3={{{label3|{{{3}}}}}}
{{ #if: {{{3|}}}
    }}
  |*'''''[http://wiki.multimedia.cx/index.php?title={{{4|{{{3}}}}}} {{{3}}}]'''''
  | {{#if:{{{2|}}}
  |
        | {{Side box|text=[[Multimedia Wiki]] has information on these entries:
}}
            |link1=http://wiki.multimedia.cx/index.php/{{urlencode:{{{1|Main_Page}}}|wiki}}
{{ #if: {{{5|}}}
            |label1={{{label1|{{{1}}}}}}
  |*'''''[http://wiki.multimedia.cx/index.php?title={{{6|{{{5}}}}}} {{{5}}}]'''''
            |link2=http://wiki.multimedia.cx/index.php/{{urlencode:{{{2|Main_Page}}}|wiki}}
  |
            |label2={{{label2|{{{2}}}}}}
}}</div>
          }}
</div>
        | {{Side box|text=[[Multimedia Wiki]] has information this entry:
</div><noinclude>
            |link1=http://wiki.multimedia.cx/index.php/{{urlencode:{{{1|Main_Page}}}|wiki}}
            |label1={{{label1|{{{1}}}}}}
          }}
    }}
}}<noinclude>


Multimedia wiki link.  
Multimedia wiki link. Up to three may be added. The labels are optional and will default to the entries.
  <nowiki>{{ mmwiki | title | title2 }}</nowiki>
  <nowiki>{{ mmwiki | title | label1=Label 1 | title2 | label2=Label 2 | title3 | label3=Label 3 }}</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>


[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 00:26, 1 April 2019

Multimedia wiki link. Up to three may be added. The labels are optional and will default to the entries.

{{ mmwiki | title | label1=Label 1 | title2 | label2=Label 2 | title3 | label3=Label 3 }}