Template:Infobox Card/doc: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 15: Line 15:
:The longterm idea is to be able transclude pages which use the Infobox card template and specify an section-argument to get a specific piece of information.
:The longterm idea is to be able transclude pages which use the Infobox card template and specify an section-argument to get a specific piece of information.
:E.g. if someone want to know the buy cost of an the lucky charm he/she can just add: <nowiki>{{:Lucky Charm|section=buy}}</nowiki>
:E.g. if someone want to know the buy cost of an the lucky charm he/she can just add: <nowiki>{{:Lucky Charm|section=buy}}</nowiki>
:For this to work the actual template has to be enclosed in "onlyinclude" tags and the section argument within the parameters in "includeonly" tags. See the below examples.
:For this to work the actual template has to be enclosed in <nowiki><onlyinclude></nowiki> tags and the section argument within the parameters in <nowiki><includeonly></nowiki> tags. See the below examples.
;Syntax, all possible arguments in alphabetical order:
;Syntax, all possible arguments in alphabetical order:
<nowiki><pre>
<pre>
<onlyinclude>{{Infobox card
<onlyinclude>{{Infobox card
  |act =
  |act =
Line 43: Line 43:
  |xpcost =
  |xpcost =
}}</onlyinclude>
}}</onlyinclude>
</pre></nowiki>
</pre>


;Usage for an overlord card:
;Usage for an overlord card:

Navigation menu