Template:FlagboxDoc2: Difference between revisions

From The Urban Dead Wiki
Jump to navigationJump to search
mNo edit summary
mNo edit summary
Line 6: Line 6:
*"{{{3}}}" where you should enter {{{4}}}.
*"{{{3}}}" where you should enter {{{4}}}.


For example, if you were to enter {{{5}}} and {{{6}}} using this code:
For example, if you were to enter "'''<nowiki>{{{5}}}</nowiki>'''" and "'''<nowiki>{{{6}}}</nowiki>'''" using this code:


{{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;}}<nowiki>{{{5}}}|</nowiki>{{Switch|{{{3}}}|case: 2=|default={{{3}}}&#61;}}<nowiki>{{{6}}}</nowiki>'''<nowiki>}}</nowiki>}}


this would produce
this would produce

Revision as of 14:58, 18 July 2009

Forced Newline. Do Not Remove Me.

Usage

Variables

This flagbox 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:

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

this would produce


</includeonly>