Difference between revisions of "Module:Wd/doc"
Jump to navigation
Jump to search
blackwiki>Pppery (Passing a separate prename-code parameter) |
blackwiki>Thayts (fixing) |
||
| Line 12: | Line 12: | ||
<td>Intended for use by wrapper templates (around this module) to invoke one or more of the above commands, returning their respective output. | <td>Intended for use by wrapper templates (around this module) to invoke one or more of the above commands, returning their respective output. | ||
<p>The parameters passed to the wrapper template are the ones that will be used by the module, e.g. <code><nowiki>{{wikidata|</nowiki>'''property'''<nowiki>|</nowiki>'''P1549'''<nowiki>}}</nowiki></code> → <code><nowiki>{{#invoke:Wd|main}}</nowiki></code> → <code><nowiki>{{#invoke:Wd|main|</nowiki>'''property'''<nowiki>|</nowiki>'''P1549'''<nowiki>}}</nowiki></code>.</p> | <p>The parameters passed to the wrapper template are the ones that will be used by the module, e.g. <code><nowiki>{{wikidata|</nowiki>'''property'''<nowiki>|</nowiki>'''P1549'''<nowiki>}}</nowiki></code> → <code><nowiki>{{#invoke:Wd|main}}</nowiki></code> → <code><nowiki>{{#invoke:Wd|main|</nowiki>'''property'''<nowiki>|</nowiki>'''P1549'''<nowiki>}}</nowiki></code>.</p> | ||
| − | <p>Therefore, any parameters set by the wrapper template itself will be discarded, e.g. <code><nowiki>{{wikidata|</nowiki>'''property'''<nowiki>|</nowiki>'''P1549''' | + | <p>Therefore, any parameters set by the wrapper template itself will be discarded, e.g. <code><nowiki>{{wikidata|</nowiki>'''property'''<nowiki>|</nowiki>'''P1549'''<nowiki>}}</nowiki></code> → <code><nowiki>{{#invoke:Wd|main|</nowiki>{{color|red|qualifier}}<nowiki>|</nowiki>{{color|red|P1082}}<nowiki>|</nowiki>{{color|red|P585}}<nowiki>}}</nowiki></code> → <code><nowiki>{{#invoke:Wd|main|</nowiki>'''property'''<nowiki>|</nowiki>'''P1549'''<nowiki>}}</nowiki></code>.</p> |
</td> | </td> | ||
</tr> | </tr> | ||
</table>}} | </table>}} | ||
Revision as of 14:01, 21 October 2017
| 40x40px | You might want to use one of the user-friendly wrapper templates Template:T and Template:T instead of invoking this module directly. |