Template:FlagboxDoc2: Difference between revisions

From The Urban Dead Wiki
Jump to navigationJump to search
mNo edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>Forced Newline. Do Not Remove Me.</noinclude>
{{UserboxDoc2|box=flagbox|1={{{1}}}|2={{{2}}}|3={{{3}}}|4={{{4}}}|5={{{5}}}|6={{{6}}}|7={{{7|{{{5}}}}}}|8={{{8|{{{6}}}}}}}}<noinclude>[[Category:Flagboxes|*{{PAGENAME}}]]</noinclude>
==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:
 
{{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>}}
 
this would produce
<includeonly>{{ {{PAGENAME}}|{{Switch|{{{1}}}|case: 1=|default={{{1}}}=}}{{{7|{{{5}}}}}}|{{Switch|{{{3}}}|case: 2=|default={{{3}}}=}}{{{8|{{{6}}}}}} }}</includeonly>
 
<includeonly><includeonly>__NOEDITSECTION__ __NOTOC__[[Category:Flagboxes|{{PAGENAME}}]]</includeonly></includeonly>

Latest revision as of 14:03, 23 May 2010

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 Template loop detected: Template:UserboxDoc2