Difference between revisions of "Template:Infobox Story"

From Twinsuniverse
Jump to: navigation, search
m (finally fixed: leaving the title parameter empty now still displays a title row)
m (replaced some old code with categorizer syntax)
Line 22: Line 22:
 
==Example==
 
==Example==
 
On a page called "Legend of Sendell":
 
On a page called "Legend of Sendell":
</noinclude><includeonly>{{#ifeq: {{lc: {{{nocat|false}}} }} | false | [[Category:Stories]] }}</includeonly>
+
</noinclude><includeonly>{{categorizer|category=Stories|display=emptyinfobox|nocat={{{nocat|false}}}}}</includeonly>
 
{{Infobox
 
{{Infobox
 
  |title=<includeonly>{{#if: {{{title|}}} |{{{title|}}}}}</includeonly><noinclude>Legend of Sendell</noinclude>
 
  |title=<includeonly>{{#if: {{{title|}}} |{{{title|}}}}}</includeonly><noinclude>Legend of Sendell</noinclude>

Revision as of 16:51, 3 January 2013

This template is used as an infobox in stories' articles. It should be the first of the article, before the general description.

Parameters

  • title: An optional title to display at the top of the infobox (case sensitive, defaults to {{PAGENAME}})
  • image: An image filename depicting the subject (case sensitive, defaults to empty image, see Template:Articleimage)
  • type: The type of the story; adventure, legend, newspaper etc. (case insensitive, defaults to "unknown", see the /type subpage)
  • lba1, lba2 and lba3: Whether the subject concerns said adventure (defaults to "no", see the /adventure subpage)
  • nocat: Whether or not to suppress categorization under all the chosen categories (defaults to false, which means auto categorization).


Note: The article is automatically categorized under Category:Articles without an image if no filename was specified, or Category:Articles with a missing image if the specified filename doesn't exist. The nocat parameter will also suppress these.

Syntax

Copy and paste the following for quick use:

{{Infobox Story
 |image=
 |type=
 |lba1=
 |lba2=
}}

Example

On a page called "Legend of Sendell":

Legend of Sendell
Image of Legend of Sendell
Type

Legend [list all]

Adventure

FunFrock's Reign [list all]

Story
{{Infobox Story
 |image=Legend of Sendell.gif
 |type=legend
 |lba1=yes
 |lba2=
}}

example paragraph: Description text about the story, in this case the Legend of Sendell. Description text about the story, in this case the Legend of Sendell. Description text about the story, in this case the Legend of Sendell. Description text about the story, in this case the Legend of Sendell. Description text about the story, in this case the Legend of Sendell. Description text about the story, in this case the Legend of Sendell. Description text about the story, in this case the Legend of Sendell. Description text about the story, in this case the Legend of Sendell. Description text about the story, in this case the Legend of Sendell. Description text about the story, in this case the Legend of Sendell. Description text about the story, in this case the Legend of Sendell. Description text about the story, in this case the Legend of Sendell. Description text about the story, in this case the Legend of Sendell. Description text about the story, in this case the Legend of Sendell.