Template:UserboxDoc2: Difference between revisions

From The Urban Dead Wiki
Jump to navigationJump to search
(Additionally disabling categorisation)
(Restoring)
 
Line 10: Line 10:
{{CodeInline|<nowiki>{{</nowiki>'''{{PAGENAME}}<nowiki>|</nowiki>{{Switch|{{{1}}}|case: 1=|default={{{1}}}&#61;}}{{{5}}}<nowiki>|</nowiki>{{Switch|{{{3}}}|case: 2=|default={{{3}}}&#61;}}{{{6}}}'''<nowiki>}}</nowiki>}}
{{CodeInline|<nowiki>{{</nowiki>'''{{PAGENAME}}<nowiki>|</nowiki>{{Switch|{{{1}}}|case: 1=|default={{{1}}}&#61;}}{{{5}}}<nowiki>|</nowiki>{{Switch|{{{3}}}|case: 2=|default={{{3}}}&#61;}}{{{6}}}'''<nowiki>}}</nowiki>}}


<noinclude>this would produce
this would produce
<includeonly>{{ {{PAGENAME}}|{{{1}}}={{{7|{{{5}}}}}}|{{{3}}}={{{8|{{{6}}}}}} }}</includeonly></noinclude>
<includeonly>{{ {{PAGENAME}}|{{{1}}}={{{7|{{{5}}}}}}|{{{3}}}={{{8|{{{6}}}}}} }}</includeonly>


__NOEDITSECTION__ __NOTOC__<noinclude>[[Category:{{ucfirst:{{{box|userbox}}}es}}|*{{PAGENAME}}]]</noinclude>
__NOEDITSECTION__ __NOTOC__[[Category:{{ucfirst:{{{box|userbox}}}es}}|<noinclude>*</noinclude>{{PAGENAME}}]]

Latest revision as of 06:46, 10 June 2010

Forced Newline. Do Not Remove Me.

Usage

Variables

This userbox takes two variables:

  • "{{{1}}}" where you should enter {{{2}}}.
  • "{{{3}}}" where you should enter {{{4}}}.

For example, if you were to enter "{{{5}}}" and "{{{6}}}" using this code:

{{UserboxDoc2|{{{1}}}={{{5}}}|{{{3}}}={{{6}}}}}

this would produce