Vorlage:InfoboxExtractor: Unterschied zwischen den Versionen
Aus DragonballWiki
Weitere Optionen
Inhalt gelöscht Inhalt hinzugefügt
| Zeile 8: | Zeile 8: | ||
<pre>{{InfoboxExtractor|page title|label|imageIndex=|size=|link=}}</pre> |
<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. |
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| |
<pre>{{InfoboxExtractor|Zamasu|publisher}}</pre> |
||
{{InfoboxExtractor| |
{{InfoboxExtractor|Zamasu|publisher}} |
||
===With a nested template=== |
===With a nested template=== |
||
Aktuelle Version vom 23. Mai 2025, 17:38 Uhr
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|Zamasu|publisher}}
Error: Label not found in infobox.
With a nested template
{{InfoboxExtractor|SO Chapter 158|image|imageIndex=2|size=115px|link=SO Chapter 158|template=true}}
Error: Page not found.
With image
{{InfoboxExtractor|Jotaro Kujo|image|imageIndex=1|size=150px|link=Jotaro Kujo}}
Error: Page not found.
{{InfoboxExtractor|SO Chapter 72|image|imageIndex=2|size=150px}}
Error: Page not found.
{{InfoboxExtractor|Episode 3|image}}
Error: Page not found.