Template:InfoboxExtractor: Difference between revisions

From JoJo's Bizarre Encyclopedia - JoJo Wiki
Jump to navigation Jump to search
Content deleted Content added
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#invoke:InfoboxExtractor|extract|{{{1}}}|{{{2}}}|imageIndex={{{imageIndex|1}}}|size={{{size|150px}}}}}</includeonly><noinclude>
<includeonly>{{#invoke:InfoboxExtractor|extract|{{{1}}}|{{{2}}}|imageIndex={{{imageIndex|1}}}|size={{{size|150px}}}|link={{{link|}}}}}</includeonly><noinclude>
Extracts a value from an infobox on a page. The infobox template must have "Infobox" in its name.
Extracts a value from an infobox on a page to use somewhere else. The infobox template must have "Infobox" in its name.


==Usage==
==Usage==
<pre>{{InfoboxExtractor|page title|label}}</pre>
<pre>{{InfoboxExtractor|page title|label}}</pre>


===For images===
<pre>{{InfoboxExtractor|page title|label|imageIndex=|size=|link=}}</pre>
By default it selects 1 as <code>imageIndex</code> and sets <code>size</code> at 150px. <code>link</code> is optional.
==Example==
==Example==
<pre>{{InfoboxExtractor|All-Star Battle R|publisher}}</pre>
<pre>{{InfoboxExtractor|All-Star Battle R|publisher}}</pre>
Line 10: Line 13:


===With image===
===With image===
<pre>{{InfoboxExtractor|Jotaro Kujo|image|imageIndex=1|size=150px|link=Jotaro Kujo}}</pre>
By default it selects 1 as the image index and sets the size at 150px.
<pre>{{InfoboxExtractor|Jotaro Kujo|image|imageIndex=1|size=150px}}</pre>
{{InfoboxExtractor|Jotaro Kujo|image|imageIndex=1|size=150px|link=Jotaro Kujo}}
{{InfoboxExtractor|Jotaro Kujo|image|imageIndex=1|size=150px}}


<pre>{{InfoboxExtractor|SO Chapter 72|image|imageIndex=2|size=150px}}</pre>
<pre>{{InfoboxExtractor|SO Chapter 72|image|imageIndex=2|size=150px}}</pre>

Revision as of 14:46, 1 May 2023

Extracts a value from an infobox on a page to use somewhere else. The infobox template must have "Infobox" in its name.

Usage

{{InfoboxExtractor|page title|label}}

For images

{{InfoboxExtractor|page title|label|imageIndex=|size=|link=}}

By default it selects 1 as imageIndex and sets size at 150px. link is optional.

Example

{{InfoboxExtractor|All-Star Battle R|publisher}}

Bandai Namco Entertainment

With image

{{InfoboxExtractor|Jotaro Kujo|image|imageIndex=1|size=150px|link=Jotaro Kujo}}

{{InfoboxExtractor|SO Chapter 72|image|imageIndex=2|size=150px}}

{{InfoboxExtractor|Episode 3|image}}