Template:InfoboxExtractor: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
Created page with "<includeonly>{{#invoke:InfoboxExtractor|extract|{{{1}}}|{{{2}}}}}</includeonly><noinclude> Extracts a value from an infobox on a page. The infobox template must have "Infobox" in its name. ==Usage== <pre>{{InfoboxExtractor|page title|label}}</pre> ==Example== <pre>{{InfoboxExtractor|All-Star Battle R|publisher}}</pre> {{InfoboxExtractor|All-Star Battle R|publisher}} </noinclude>" |
|||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#invoke:InfoboxExtractor|extract|{{{1}}}|{{{2}}}}}</includeonly><noinclude> |
<includeonly>{{#invoke:InfoboxExtractor|extract|{{{1}}}|{{{2}}}|tab={{{tab|}}}|imageIndex={{{imageIndex|1}}}|size={{{size|150px}}}|link={{{link|}}}|template={{{template|}}}}}</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> |
||
{{InfoboxExtractor|All-Star Battle R|publisher}} |
{{InfoboxExtractor|All-Star Battle R|publisher}} |
||
===With a nested template=== |
|||
<pre>{{InfoboxExtractor|SO Chapter 158|image|imageIndex=2|size=115px|link=SO Chapter 158|template=true}}</pre> |
|||
{{InfoboxExtractor|SO Chapter 158|image|imageIndex=2|size=115px|link=SO Chapter 158|template=true}} |
|||
===With image=== |
|||
<pre>{{InfoboxExtractor|Jotaro Kujo|image|imageIndex=1|size=150px|link=Jotaro Kujo}}</pre> |
|||
{{InfoboxExtractor|Jotaro Kujo|image|imageIndex=1|size=150px|link=Jotaro Kujo}} |
|||
<pre>{{InfoboxExtractor|SO Chapter 72|image|imageIndex=2|size=150px}}</pre> |
|||
{{InfoboxExtractor|SO Chapter 72|image|imageIndex=2|size=150px}} |
|||
<pre>{{InfoboxExtractor|Episode 3|image}}</pre> |
|||
{{InfoboxExtractor|Episode 3|image}} |
|||
</noinclude> |
</noinclude> |
Latest revision as of 19:12, 23 December 2024
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}}
With a nested template
{{InfoboxExtractor|SO Chapter 158|image|imageIndex=2|size=115px|link=SO Chapter 158|template=true}}
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}}