v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "Template:Tagentry"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m
m
Line 1: Line 1:
{{{{{subst|}}}#rmatch:{{{1}}}|/{{{{{subst|}}}rxtag|{{{2}}}|{{{3|0}}}}}/|\1|{{{notfound|not found}}}}}<noinclude>
+
{{{{{subst|}}}#rmatch:{{{1}}}|
 +
/{{{{{subst|}}}#if: {{{req|}}}
 +
|(?={{{{{subst|}}}rxtag|{{{2}}}|{{{reqoffset|0}}}|{{{req}}}}})
 +
}}{{{{{subst|}}}rxtag|{{{2}}}|{{{3|0}}}}}/
 +
|\1|{{{notfound|not found}}}}}<noinclude>
  
<nowiki>{{tagentry|raw data|tag|offset|notfound=notfoundmessage}}</nowiki>
+
<nowiki>{{tagentry|raw data|tag|offset|notfound=notfoundmessage|req=required value|reqoffset=where is it required?}}</nowiki>
  
 
Returns the corresponding entry of the first tag of that type encountered.
 
Returns the corresponding entry of the first tag of that type encountered.
 
[[category:raw templates]]</noinclude>
 
[[category:raw templates]]</noinclude>

Revision as of 15:15, 30 April 2010

not found

{{tagentry|raw data|tag|offset|notfound=notfoundmessage|req=required value|reqoffset=where is it required?}}

Returns the corresponding entry of the first tag of that type encountered.