Difference between revisions of "Template:Infobox role/doc"

From MafiaWiki
Jump to: navigation, search
Line 27: Line 27:
  
 
==Sample output==
 
==Sample output==
{{Infobox
+
{{Infobox role
 
|Box title    = Info Title
 
|Box title    = Info Title
 
|image        = Image:Example.jpg
 
|image        = Image:Example.jpg
Line 80: Line 80:
 
'''|'''Row 10 title = Title row 10<br />
 
'''|'''Row 10 title = Title row 10<br />
 
'''|'''Row 10 info  = Info row 10<br />
 
'''|'''Row 10 info  = Info row 10<br />
'''<nowiki>}}</nowiki>'''
 
</code>
 
 
<br style="clear:both; margin-bottom:3em;"/>
 
 
{{Infobox
 
|Box title    = Info Title
 
|Row 1 title  = Title row 1
 
|Row 1 info  = Info row 1
 
|Row 2 title  = Title row 2
 
|Row 2 info  = Info row 2
 
|Row 3 title  = Title row 3
 
|Row 3 info  = Info row 3
 
|Row 4 title  = Title row 4
 
|Row 4 info  = Info row 4
 
|Row 5 title  = Title row 5
 
|Row 5 info  = Info row 5
 
|Row 6 title  = Title row 6
 
|Row 6 info  = Info row 6
 
|Row 7 title  = Title row 7
 
|Row 7 info  = Info row 7
 
|Row 8 title  = Title row 8
 
|Row 8 info  = Info row 8
 
|Row 9 title  = Title row 9
 
|Row 9 info  = Info row 9
 
|Row 10 title = Title row 10
 
|Row 10 info  = Info row 10
 
}}
 
Infobox '''Image''' omitted :<br />
 
<code>
 
'''<nowiki>{{</nowiki>Infobox'''<br />
 
'''|'''Box title    = Info Title<br />
 
'''|'''Row 1 title  = Title row 1<br />
 
'''|'''Row 1 info  = Info row 1<br />
 
'''|'''Row 2 title  = Title row 2<br />
 
'''|'''Row 2 info  = Info row 2<br />
 
'''|'''Row 3 title  = Title row 3<br />
 
'''|'''Row 3 info  = Info row 3<br />
 
'''|'''Row 4 title  = Title row 4<br />
 
'''|'''Row 4 info  = Info row 4<br />
 
'''|'''Row 5 title  = Title row 5<br />
 
'''|'''Row 5 info  = Info row 5<br />
 
'''|'''Row 6 title  = Title row 6<br />
 
'''|'''Row 6 info  = Info row 6<br />
 
'''|'''Row 7 title  = Title row 7<br />
 
'''|'''Row 7 info  = Info row 7<br />
 
'''|'''Row 8 title  = Title row 8<br />
 
'''|'''Row 8 info  = Info row 8<br />
 
'''|'''Row 9 title  = Title row 9<br />
 
'''|'''Row 9 info  = Info row 9<br />
 
'''|'''Row 10 title = Title row 10<br />
 
'''|'''Row 10 info  = Info row 10<br />
 
'''<nowiki>}}</nowiki>'''
 
</code>
 
 
<br style="clear:both; margin-bottom:3em;"/>
 
 
{{Infobox
 
|Box title    = Info Title
 
|Row 1 title  = Title row 1
 
|Row 1 info  = Info row 1
 
|Row 2 title  = Title row 2
 
|Row 2 info  = Info row 2
 
|Row 3 title  = Title row 3
 
|Row 3 info  = Info row 3
 
}}
 
Infobox '''Image''' omitted and displaying only 3 rows of information:<br />
 
<code>
 
'''<nowiki>{{</nowiki>Infobox'''<br />
 
'''|'''Box title    = Info Title<br />
 
'''|'''Row 1 title  = Title row 1<br />
 
'''|'''Row 1 info  = Info row 1<br />
 
'''|'''Row 2 title  = Title row 2<br />
 
'''|'''Row 2 info  = Info row 2<br />
 
'''|'''Row 3 title  = Title row 3<br />
 
'''|'''Row 3 info  = Info row 3<br />
 
'''<nowiki>}}</nowiki>'''
 
</code>
 
 
<br style="clear:both; margin-bottom:3em;"/>
 
 
{{Infobox
 
|Box title    = Info Title
 
|Row 1 title  = Title row 1
 
|Row 1 info  = Info row 1
 
|Row 2 title  = Title row 2
 
|Row 2 info  = Info row 2
 
|Row 3 title  = Title row 3
 
|Row 3 info  = Info row 3
 
|Row 4 info  = Info row 4
 
|Row 5 title  = Title row 5
 
|Row 5 info  = Info row 5
 
|Row 6 title  = Title row 6
 
|Row 6 info  = Info row 6
 
}}
 
Infobox '''Image''' and '''title row 4''' omited:<br />
 
Result: Row 4, 5, and 6 will not be displayed.<br />
 
<code>
 
'''<nowiki>{{</nowiki>Infobox'''<br />
 
'''|'''Box title    = Info Title<br />
 
'''|'''Row 1 title  = Title row 1<br />
 
'''|'''Row 1 info  = Info row 1<br />
 
'''|'''Row 2 title  = Title row 2<br />
 
'''|'''Row 2 info  = Info row 2<br />
 
'''|'''Row 3 title  = Title row 3<br />
 
'''|'''Row 3 info  = Info row 3<br />
 
'''|'''Row 4 info  = Info row 4<br />
 
'''|'''Row 5 title  = Title row 5<br />
 
'''|'''Row 5 info  = Info row 5<br />
 
'''|'''Row 6 title  = Title row 6<br />
 
'''|'''Row 6 info  = Info row 6<br />
 
 
'''<nowiki>}}</nowiki>'''
 
'''<nowiki>}}</nowiki>'''
 
</code>
 
</code>
  
 
<includeonly>[[Category:General wiki templates|{{PAGENAME}}]][[Category:Infobox templates| ]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
 
<includeonly>[[Category:General wiki templates|{{PAGENAME}}]][[Category:Infobox templates| ]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Revision as of 00:45, 30 April 2011

Description

  • Provides a basic role infobox

Syntax

{{infobox
|affiliation  =
|summary      =
|abilities    =
|difficulty   =
|ability      =
|sherrif      =
|investigator =
|strategies   =
}}

Notes

  • Affiliation is either "Mafia", "Town", or "Third-Party". Don't make your own shit up.
  • Summary is a one-sentence thing. Something like "Prevents other people from executing their night actions" or "Targets players for the Mafia to kill"
  • Abilities should be one word. Like "roleblock" or "investigate".
  • Difficulty is subjective. Put whatever you feel is right. Obviously someone like investigator is harder to play than a townie.
  • Has night ability is either yes or no.
  • Sherrif investigations either return "Guilty" or "Innocent". Write which one.
  • In the Investigator field, put links to the roles that share the same investigator message. For example, Doctor and Serial Killer return the same message, so in the Doctor article, this field will contain Serial Killer, and vice versa.
  • In Strategies, put links to any strategy pages that actively involve this role.

Sample output

Template:Infobox role Complete Infobox:
{{Infobox
|Box title = Info Title
|image = Image:Example.jpg
|imagewidth = 120
|caption = A flower
|Row 1 title = Title row 1
|Row 1 info = Info row 1
|Row 2 title = Title row 2
|Row 2 info = Info row 2
|Row 3 title = Title row 3
|Row 3 info = Info row 3
|Row 4 title = Title row 4
|Row 4 info = Info row 4
|Row 5 title = Title row 5
|Row 5 info = Info row 5
|Row 6 title = Title row 6
|Row 6 info = Info row 6
|Row 7 title = Title row 7
|Row 7 info = Info row 7
|Row 8 title = Title row 8
|Row 8 info = Info row 8
|Row 9 title = Title row 9
|Row 9 info = Info row 9
|Row 10 title = Title row 10
|Row 10 info = Info row 10
}}