Template:Infobox advanced

From TheHolo.Net Forums Wiki

Revision as of 16:55, 13 April 2011 by Jane (Talk | contribs)

Jump to:navigation, search
No Title

{{#if: |

[[{{{image}}}|250px]]
'

}}

No Title No information{{#if: |
{{{T2}}} No information

}}{{#if: |

{{{T3}}} No information

}}{{#if: |

{{{T4}}} No information

}}{{#if: |

{{{T5}}} No information

}}{{#if: |

{{{T6}}} No information

}}{{#if: |

{{{T7}}} No information

}}{{#if: |

{{{T8}}} No information

}}{{#if: |

{{{T9}}} No information

}}{{#if: |

{{{T10}}} No information

}}{{#if: |

{{{T11}}} No information

}}{{#if: |

{{{T12}}} No information

}}{{#if: |

{{{T13}}} No information

}}{{#if: |

{{{T14}}} No information

}}{{#if: |

{{{T15}}} No information

}}{{#if: |

{{{T16}}} No information

}}{{#if: |

{{{T17}}} No information

}}{{#if: |

{{{T18}}} No information

}}{{#if: |

{{{T19}}} No information

}}{{#if: |

{{{T20}}} No information

}}{{#if: |

{{{T21}}} No information

}}


Template:Documentation

Template:SPW

Contents

Description

  • This template produces a infobox-style template, without parameters being lost if a title is left out. It also has easier-to-use names.
  • You may want to copy and modify this to create a specific infobox (e.g. character infobox).

Dependencies

  • This template requires an "infobox" CSS element, and a ! template, both of which are also required by the original.
  • This template requires parser functions to be enabled (Wikia default: on).

Syntax

{{Infobox advanced
|title       = 
|image       = [optional]
|imagewidth  = [defaults to 250]
|caption     = [optional]
|T1          =
|C1          =
|T2          = [optional]
|C2          = [optional]
|T3          = [optional]
|C3          = [optional]
|T4          = [optional]
|C4          = [optional]
|T5          = [optional]
|C5          = [optional]
|T6          = [optional]
|C6          = [optional]
|T7          = [optional]
|C7          = [optional]
|T8          = [optional]
|C8          = [optional]
|T9          = [optional]
|C9          = [optional]
|T10         = [optional]
|C10         = [optional]
}}

Notes

  • Keeping the title empty will result in displaying No title
  • If you don't want to display image, just keep image and imagewidth empty.
  • Keeping the T1 empty will result in displaying No title.
  • Keeping any C_ parameter empty will result in displaying No information.
  • Keeping the Row (any below row 1) title empty will result in that row not being displayed.
  • Max rows for information: 10.

Sample output

No Title

{{#if: Image:Example.jpg|

120px
A flower

}}

Title row 1 Info row 1{{#if: Title row 2|
Title row 2 Info row 2

}}{{#if: Title row 3|

Title row 3 Info row 3

}}{{#if: Title row 4|

Title row 4 Info row 4

}}{{#if: Title row 5|

Title row 5 Info row 5

}}{{#if: Title row 6|

Title row 6 Info row 6

}}{{#if: Title row 7|

Title row 7 Info row 7

}}{{#if: Title row 8|

Title row 8 Info row 8

}}{{#if: Title row 9|

Title row 9 Info row 9

}}{{#if: Title row 10|

Title row 10 Info row 10

}}

Complete Infobox:
{{Infobox advanced
|Box title = Info Title
|image = Image:Example.jpg
|imagewidth = 120
|caption = A flower
|T1 = Title row 1
|C1 = Info row 1
|T2 = Title row 2
|C2 = Info row 2
|T3 = Title row 3
|C3 = Info row 3
|T4 = Title row 4
|C4 = Info row 4
|T5 = Title row 5
|C5 = Info row 5
|T6 = Title row 6
|C6 = Info row 6
|T7 = Title row 7
|C7 = Info row 7
|T8 = Title row 8
|C8 = Info row 8
|T9 = Title row 9
|C9 = Info row 9
|T10 = Title row 10
|C10 = Info row 10
}}


No Title

{{#if: |

[[{{{image}}}|250px]]
'

}}

Title row 1 Info row 1{{#if: Title row 2|
Title row 2 Info row 2

}}{{#if: Title row 3|

Title row 3 Info row 3

}}{{#if: Title row 4|

Title row 4 Info row 4

}}{{#if: Title row 5|

Title row 5 Info row 5

}}{{#if: Title row 6|

Title row 6 Info row 6

}}{{#if: Title row 7|

Title row 7 Info row 7

}}{{#if: Title row 8|

Title row 8 Info row 8

}}{{#if: Title row 9|

Title row 9 Info row 9

}}{{#if: Title row 10|

Title row 10 Info row 10

}}

Infobox Image omitted :
{{Infobox advanced
|Box title = Info Title
|T1 = Title row 1
|C1 = Info row 1
|T2 = Title row 2
|C2 = Info row 2
|T3 = Title row 3
|C3 = Info row 3
|T4 = Title row 4
|C4 = Info row 4
|T5 = Title row 5
|C5 = Info row 5
|T6 = Title row 6
|C6 = Info row 6
|T7 = Title row 7
|C7 = Info row 7
|T8 = Title row 8
|C8 = Info row 8
|T9 = Title row 9
|C9 = Info row 9
|T10 = Title row 10
|C10 = Info row 10
}}


No Title

{{#if: |

[[{{{image}}}|250px]]
'

}}

Title row 1 Info row 1{{#if: Title row 2|
Title row 2 Info row 2

}}{{#if: Title row 3|

Title row 3 Info row 3

}}{{#if: |

{{{T4}}} No information

}}{{#if: |

{{{T5}}} No information

}}{{#if: |

{{{T6}}} No information

}}{{#if: |

{{{T7}}} No information

}}{{#if: |

{{{T8}}} No information

}}{{#if: |

{{{T9}}} No information

}}{{#if: |

{{{T10}}} No information

}}

Infobox Image omitted and displaying only 3 rows of information:
{{Infobox advanced
|Box title = Info Title
|T1 = Title row 1
|C1 = Info row 1
|T2 = Title row 2
|C2 = Info row 2
|T3 = Title row 3
|C3 = Info row 3
}}


No Title

{{#if: |

[[{{{image}}}|250px]]
'

}}

Title row 1 Info row 1{{#if: Title row 2|
Title row 2 Info row 2

}}{{#if: Title row 3|

Title row 3 Info row 3

}}{{#if: |

{{{T4}}} Info row 4

}}{{#if: Title row 5|

Title row 5 Info row 5

}}{{#if: Title row 6|

Title row 6 Info row 6

}}{{#if: |

{{{T7}}} No information

}}{{#if: |

{{{T8}}} No information

}}{{#if: |

{{{T9}}} No information

}}{{#if: |

{{{T10}}} No information

}}

Infobox Image and title row 4 omited:
Result: Row 4 will not be displayed.
{{Infobox advanced
|Box title = Info Title
|T1 = Title row 1
|C1 = Info row 1
|T2 = Title row 2
|C2 = Info row 2
|T3 = Title row 3
|C3 = Info row 3
|C4 = Info row 4
|T5 = Title row 5
|C5 = Info row 5
|T6 = Title row 6
|C6 = Info row 6
}}