Difference between revisions of "Module:Wd/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Thayts
(fixing)
blackwiki>Pppery
(Kill some nowiki tags)
Line 9: Line 9:
 
<tr>
 
<tr>
 
<th style="text-align:left;"><code>main</code></th>
 
<th style="text-align:left;"><code>main</code></th>
<td><code><nowiki>{{#invoke:</nowiki>{{lc:{{ROOTPAGENAME}}}}<nowiki>|main|command|P1}}</nowiki></code></td>
+
<td>{{tnull|<nowiki/>#invoke:{{lc:{{ROOTPAGENAME}}}}|main|command|P1}}</td>
 
<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. {{tnull|wikidata|'''property'''|'''P1549'''}} → {{tnull|<nowiki/>#invoke:Wd|main}} → {{tnull|<nowiki/>#invoke:Wd|main|'''property'''|'''P1549'''}}.</p>
<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>
+
<p>Therefore, any parameters set by the wrapper template itself will be discarded, e.g. {{tnull|wikidata|'''property'''|'''P1549'''}} → {{tnull|<nowiki/>#invoke:Wd|main|{{color|red|qualifier}}|{{color|red|P1082}}|{{color|red|P585}}}} → {{tnull|<nowiki/>#invoke:Wd|main|'''property'''|'''P1549'''}}.</p>
 
</td>
 
</td>
 
</tr>
 
</tr>
 
</table>}}
 
</table>}}

Revision as of 16:46, 17 December 2017

Template:Wd/doc